Repository navigation
docs: explain container SQLite storage and upgrade ownership - #177367
akshitkhokhani wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe Docker guide explains non-overlapping Gateway upgrades, network-storage rollback journaling, and WAL backup requirements. Example: An operator replaces a Gateway container using the same NFS-mounted state volume.
Review scores
ProductKind: Docs · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR adds useful, accurate deployment guidance that current main lacks, with no actionable defects found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Docker entrypoint runs Doctor before starting the Gateway; filesystem policy selects SQLite journaling for mounted state, while ownership checks prevent competing Gateways. flowchart TD
A[Container operator] --> B[Docker deployment guide]
B --> C[Stop previous Gateway]
C --> D[Replacement entrypoint]
D --> E[Doctor maintenance ownership]
E --> F[Gateway and SQLite state]
F --> G[Filesystem journal policy]
Technical reviewBest possible solution: Merge the focused guidance describing existing storage policy and upgrade ownership without advertising pending runtime features. Do we have a high-confidence way to reproduce the issue? Current-main documentation confirms the omission, and the filesystem policy, journal enforcement, and existing recovery guidance substantiate the added explanations. Is this the best way to solve the issue? Two inline paragraphs are the smallest complete clarification and preserve the existing runtime owners, safeguards, and documentation structure. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bfb316be2ab2. Provenance checked
SecurityNone. EvidenceWhat I checked:
PR surfaceDocs +16. Total +16 across 1 file. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 19, 2026, 10:18 AM ET / 14:18 UTC. |
Fixes #177288. Docker and Kubernetes docs now explain that OpenClaw state must live on a local volume (not NFS/SMB; Doctor warns, #178672), that a single replica with stop-first rollouts is required, and how upgrade/Doctor ownership works, including Kubernetes entrypoint bypass. Supersedes #177367, thanks @akshitkhokhani. Co-authored-by: Akshit Khokhani <[email protected]>
|
Thank you @akshitkhokhani! These container storage and upgrade-ownership docs were needed. We folded your content into the existing Docker/Kubernetes pages in #178794, together with the new network-storage Doctor warning and stop-first rollout guidance. It landed with you credited as co-author. Closing this one as superseded. |
…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]>
Related: #177288
What Problem This Solves
The Docker guide does not explain the SQLite implications of NAS-mounted state or explicitly tell operators to stop the previous Gateway before replacing it against the same state volume.
User Impact
Container operators can choose suitable persistent storage and plan upgrades without overlapping Gateway ownership. This changes documentation only.
Why This Change Was Made
Documents existing behavior: prefer local storage; detected NFS/SMB/CIFS storage uses rollback journaling; failure to switch modes is refused. The existing filesystem-locking requirements still apply. Links point to current ownership recovery and backup guidance.
The companion journal-mode override and Doctor finding requested in #177287 and #177286 are not implemented, so this PR does not advertise them. No new configuration or runtime behavior is introduced.
Evidence
git diff --checkpassed.