fix(deploy): stage smoke binaries on the dataset (TrueNAS /tmp is noexec) 🐳
Some checks are pending
CI / vet-build-test (push) Waiting to run

The auth smoke ran the new binary from /tmp, but TrueNAS mounts /tmp noexec —
'Permission denied' on exec. Stage binaries under $DEST/.staging (the app dataset,
exec-ok) instead. The fail-safe worked perfectly: it aborted with prod untouched.
Then ran for real — live hub migrated v1→v3, all data preserved, P2 fixes + TLS live.
This commit is contained in:
shoemoney 2026-06-24 17:45:22 -05:00
parent d672dd2fda
commit ad7ed674fe

View file

@ -31,8 +31,12 @@ say "🧪 migration dry-run on a COPY of live data (live hub untouched)"
scripts/verify-hub-migration.sh
say "🧪 auth smoke the NEW binary on the NAS (throwaway instance, prod untouched)"
scp -q /tmp/dh-hub /tmp/dh-client scripts/hub-auth-smoke.sh "$HUB:/tmp/"
ssh "$HUB" 'bash /tmp/hub-auth-smoke.sh /tmp/dh-hub /tmp/dh-client 8388'
# /tmp is noexec on TrueNAS — stage the binaries on the app dataset so they can run.
ssh "$HUB" "mkdir -p '$DEST/.staging'"
scp -q /tmp/dh-hub /tmp/dh-client scripts/hub-auth-smoke.sh "$HUB:$DEST/.staging/"
ssh "$HUB" "chmod +x '$DEST/.staging/dh-hub' '$DEST/.staging/dh-client' && \
bash '$DEST/.staging/hub-auth-smoke.sh' '$DEST/.staging/dh-hub' '$DEST/.staging/dh-client' 8388; \
rc=\$?; rm -rf '$DEST/.staging'; exit \$rc"
say "🔢 pre-deploy counts"
PRE="$(counts)"; echo "${PRE:-<hub not answering>}"