Repository navigation
docs: clarify container SQLite storage and safe upgrades - #178794
Conversation
Document local SQLite storage, single-replica stop-first rollouts, and Doctor ownership during container upgrades. Explain that the Kubernetes command bypasses the image entrypoint. Fixes #177288. Supersedes #177367. Co-authored-by: Akshit Khokhani <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6706402a30
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Keep `replicas: 1` and the provided `Recreate` strategy so replacements stop the | ||
| old pod before starting another Gateway against the same state. The PVC must |
There was a problem hiding this comment.
Restrict the Recreate guarantee to managed rollouts
When a pod is manually deleted or evicted, the Deployment's Recreate strategy does not serialize the replacement; the ReplicaSet may create a successor while the old pod is still terminating. If both pods land on the same node, ReadWriteOnce also permits them to access the same PVC, so this text incorrectly promises stop-before-start behavior for common restart scenarios. Qualify the guarantee to Deployment rollouts and retain explicit shutdown or ownership guidance for other replacements.
AGENTS.md reference: AGENTS.md:L9-L9
Useful? React with 👍 / 👎.
…aw#178794) Fixes openclaw#177288. Docker and Kubernetes docs now explain that OpenClaw state must live on a local volume (not NFS/SMB; Doctor warns, openclaw#178672), that a single replica with stop-first rollouts is required, and how upgrade/Doctor ownership works, including Kubernetes entrypoint bypass. Supersedes openclaw#177367, thanks @akshitkhokhani. Co-authored-by: Akshit Khokhani <[email protected]>
What Problem This Solves
Container operators are not clearly told to keep SQLite state on local storage or stop the old Gateway before a replacement starts against the same volume.
Fixes #177288
User Impact
Operators get explicit local-storage requirements, one-replica guidance, and stop-first upgrade/recovery instructions for Compose, Swarm, and Kubernetes. This changes documentation only.
Why This Change Was Made
The existing owners already enforce SQLite journaling and exclusive startup repair. The docs now explain those requirements at storage selection and upgrade time, link Doctor's advisory network-storage warning (#178672), and retain the existing backup/rollback guidance. The Kubernetes page also explains that its explicit
commandbypasses the image entrypoint and therefore needs a separate Doctor pass when upgrading retained state.Supersedes #177367, thanks @akshitkhokhani. Related: #177789.
Release-note context: clarify container SQLite storage and upgrade ownership, including Swarm/Kubernetes rollouts; thanks @akshitkhokhani.
Evidence
docker-entrypoint.mjs, SQLite filesystem/journaling policy, current Doctor network-storage finding, Compose operations, and the Kubernetes manifest (replicas: 1,Recreate, explicit command).pnpm docs:listpassed; targetednode scripts/check-docs-mdx.mjspassed for all four pages.node scripts/docs-link-audit.mjschecked 15,758 internal links with zero broken links. Changed-file oxfmt andgit diff --checkpassed.node scripts/check-changed.mjs --base HEADpassed all ten selected docs-only checks. It selected no SQLite inventory, typecheck, runtime test, or import-graph lane; no production files or test consumers changed.2026.10.5, pinned toghcr.io/openclaw/openclaw@sha256:f40d1e66fd14d8c5b49c832f4100f83b53fdc01f5108f7db11de38fd0ee6dbe5. Fresh task-owned HOME/state, synthetic token authentication, plugins and Control UI disabled, loopback-only host port publishing. The entrypoint printedDoctor complete.before Gateway startup;/healthzreturned{"ok":true,"status":"live"}and/startupzreturned{"ok":true,"status":"started"}. Stopped the container (exit 0), removed it, then started a replacement with the same mounts: Doctor and both probes passed again. Stopped and removed the replacement (exit 0).Live proof commands
The two bind sources were fresh task-owned directories; the state fixture selected local Gateway mode and synthetic token authentication.