member-suspend 401: files deploy renders the Nextcloud admin export, but the switch-exempt control plane never restarts to inherit it #863
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#863
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Failure
Droplet drive
20260825T230453Zreds 24/26-green atinvite-member:POST /api/v1/members/e2e-member/suspend→ 400act_failed:nextcloud: GET /ocs/v1.php/cloud/users/e2e-member: unauthorised (HTTP 401) — check the admin credential. First drive ever to reach this leg live (it rode in with #789's arc) — a latent wire, not a regression. #858's fix HELD:deploy-filesgreened and the control plane survived its own switch for the first time.Root cause (proven live on the kept box,
root@209.38.82.73)The Nextcloud reconciler port gets its admin credential from process env at boot (
control-plane/cmd/control-plane/main.goproductionServicePorts:IDSS_NEXTCLOUD_ADMIN_USER/_PASSWORD→nextcloud.New). That env is exported by the unit's start script, and the export only appears when the files co-host deploy re-renders the surface (EnableGatewayNextcloudExport, #790) — i.e. after the control plane booted.Before #858, the switch restarted the unit and the new process inherited the export (while dying of the cgroup kill — the #858 bug). With #858's
restartIfChanged = false; stopIfChanged = false, the switch now (correctly) leaves the unit alone — and nothing else ever restarts it, so the running process keeps its pre-Nextcloud environment and the port authenticates as("","")→ 401.Live proof on the kept box:
systemctl is-active idss-control-plane→active,ActiveEnterTimestamp23:12:15 (boot, pre-attach)/proc/<MainPID>/environ→ zeroNEXTCLOUDvarsExecStartscript/nix/store/qvhgw…-idss-control-plane-start→ 2IDSS_NEXTCLOUD_ADMINexport linesA manual
systemctl restart idss-control-planewould discharge it — which is the diagnosis, not the fix.Fix shape (suggested, not binding)
Boot-time env is the wrong lifetime for a credential minted mid-life by the process's own deploy. Prefer lazy per-call resolution: render the password as a path (
IDSS_NEXTCLOUD_ADMIN_PASSWORD_FILE→ the materialised clan-var file the start script currentlycats) and have the nextcloud port read it per call (empty/absent file → today's honestact_failed). Same trap exists for everyproductionServicePortssibling (mail/static-sites/code/…) whose service co-hosts after boot — fix the pattern, or at minimum the Nextcloud instance plus a GOTCHAS entry naming the invariant: a unit exempted from switch restarts must not carry boot-frozen credentials for services deployed after its boot. Self-restart shapes trade this 401 for #861's mid-deploy 404 — see #858's close-report.Related: #858 (the exemption), #861 (persist the run store, then detach), #789 (whose live proof — invite→FirstLogin→suspend — still rides the next green drive).
swarm-claim host=elitebook-distributed-server-03 run=10103
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #863 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
whakapapa-wears-kitred on first contact: the brand PUT answered 200 with the applied keys, but the Gramps Web door serves the DEFAULT title *and* default palette — the frontend's read offrontend.*was never verified (the "deferred clan-lab driv… #1317