Quiet gunicorn's control socket error; contract doc: memory is live #13

Merged
jared merged 1 commits from quiet-gunicorn-docs into main 2026-11-27 11:55:59 -05:00
Owner

Two small follow-ups from #12. No UI change.

  • gunicorn: since the first deploy on 2026-11-26, every start of thor has logged [ERROR] Control server error: [Errno 30] Read-only file system: '/var/lib/thor/.gunicorn'.
    • gunicorn 27 opens a control socket under $HOME by default, and the unit's ProtectSystem=strict makes that path read-only.
    • Thor doesn't use the socket, so the unit now passes --no-control-socket.
    • requirements.txt now needs gunicorn>=27, because older versions reject the flag. Prod runs 27.0.1.
    • thor_deploy.sh already installs changed units and reloads systemd.
  • docs/contract.md: it said every check is in shadow "(all of phase 1)". It now says checks are set per check, and that memory has been live since 2026-11-27 while reboots, fencing and Ceph stay in shadow.

Local: flake8 and ruff are clean, and 147 passed, 7 skipped (MariaDB, run in CI). After the deploy I'll check that thor starts without the ERROR line.

🤖 Generated with Claude Code

Two small follow-ups from #12. No UI change. - **gunicorn:** since the first deploy on 2026-11-26, every start of `thor` has logged `[ERROR] Control server error: [Errno 30] Read-only file system: '/var/lib/thor/.gunicorn'`. - gunicorn 27 opens a control socket under `$HOME` by default, and the unit's `ProtectSystem=strict` makes that path read-only. - Thor doesn't use the socket, so the unit now passes `--no-control-socket`. - `requirements.txt` now needs `gunicorn>=27`, because older versions reject the flag. Prod runs 27.0.1. - `thor_deploy.sh` already installs changed units and reloads systemd. - **docs/contract.md:** it said every check is in shadow "(all of phase 1)". It now says checks are set per check, and that memory has been live since 2026-11-27 while reboots, fencing and Ceph stay in shadow. Local: flake8 and ruff are clean, and 147 passed, 7 skipped (MariaDB, run in CI). After the deploy I'll check that `thor` starts without the ERROR line. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-27 11:51:21 -05:00
Quiet gunicorn's control socket error; contract doc: memory is live
CI / Lint (flake8, house style) (pull_request) Successful in 1m1s
CI / Test (pytest) (pull_request) Successful in 1m4s
CI / Security (bandit, pip-audit) (pull_request) Successful in 1m20s
CI / Integration (MariaDB) (pull_request) Successful in 2m12s
CI / Scan (secrets, workflows, shell, patterns) (pull_request) Successful in 1m30s
CI / UI (screenshots) (pull_request) Successful in 1m20s
CI / Deploy (pull_request) Skipped
4e17dd7c2e
gunicorn 27 opens a control socket under $HOME by default, which the unit's
ProtectSystem=strict makes read-only, so every start logged "Control server
error: Read-only file system". Thor doesn't use it: --no-control-socket, and
gunicorn>=27 since older versions don't know the flag.

docs/contract.md said every check is in shadow; memory went live 2026-11-27.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jared scheduled this pull request to auto merge when all checks succeed 2026-11-27 11:51:35 -05:00
jared merged commit 50f6782087 into main 2026-11-27 11:55:59 -05:00
jared deleted branch quiet-gunicorn-docs 2026-11-27 11:56:00 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/thor#13