From ad7ed674fe9ea864b9fcaecf05afbc2d29a538f2 Mon Sep 17 00:00:00 2001 From: shoemoney Date: Wed, 24 Jun 2026 17:45:22 -0500 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20stage=20smoke=20binaries=20on=20?= =?UTF-8?q?the=20dataset=20(TrueNAS=20/tmp=20is=20noexec)=20=F0=9F=90=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- deploy/redeploy-hub.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy/redeploy-hub.sh b/deploy/redeploy-hub.sh index c184d4b..8e41da3 100755 --- a/deploy/redeploy-hub.sh +++ b/deploy/redeploy-hub.sh @@ -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:-}"