Skip to content

docs: explain container SQLite storage and upgrade ownership - #177367

Closed
akshitkhokhani wants to merge 1 commit into
openclaw:mainfrom
akshitkhokhani:codex/docs-container-sqlite-storage
Closed

akshitkhokhani wants to merge 1 commit into
openclaw:mainfrom
akshitkhokhani:codex/docs-container-sqlite-storage

Conversation

@akshitkhokhani

Copy link
Copy Markdown
Contributor

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

  • Checked the complete filesystem-policy and SQLite journal-mode owners, current Compose ownership recovery, and Litestream backup guidance.
  • Targeted repository formatting, MDX validation, internal-link audit (15,722 links; zero broken), and git diff --check passed.
  • Independent autoreview, with both source owners and Compose operations supplied as context, found no accepted P0–P2 findings.
  • Simplification pass kept two short additions in the existing upgrade/storage section. Production/test code is unchanged; no live NAS, corruption, or overlapping-container failure was reproduced or claimed.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation docker Docker and sandbox tooling size: XS labels Oct 19, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:docs Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:docs Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The 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.

  • Before: The upgrade section leaves stop-before-start sequencing and automatic rollback journaling implicit.
  • After: The guide explicitly says to stop the previous Gateway, explains journal_mode=DELETE, and links ownership recovery guidance.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, source-verified documentation with no findings; runtime proof is outside this docs-only change.
Proof confidence 🌊 off-meta tidepool Not applicable: Every changed file is under docs/; the operational claims were checked against source and existing guidance, so contributor runtime proof is not required.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Docs · Worth it: Yes · Fix scope: Complete
User problem: Container operators must piece together storage restrictions and upgrade ownership guidance from separate pages.
Reason: The additions make existing operational requirements discoverable without changing product behavior or promising unavailable capabilities.

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
Reviewed head: 1bb0682975918ec0cd179be92ec662df96f115f8

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Container activation and maintenance ownership keeps the original intent (2a1402c: Doctor owns retained-state repair before official-image Gateway activation.)
  • Container capture lifecycle keeps the original intent (0492dc8: Avoid repeated full captures on restarts while retaining Doctor repair and repair-specific backups.)
  • Filesystem locking and ownership recovery keeps the original intent (8b16e53: SQLite owns transaction exclusion while maintenance retains exclusive state ownership.)

Security

None.

Evidence

What I checked:

PR surface

Docs +16. Total +16 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 16 0 +16
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 16 0 +16

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #177288
Summary: This PR addresses the linked deployment documentation gap; the companion runtime feature requests remain separate.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a bounded documentation improvement explaining existing safeguards, with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 19, 2026, 10:18 AM ET / 14:18 UTC.

steipete added a commit that referenced this pull request Oct 20, 2026
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]>
@steipete

Copy link
Copy Markdown
Contributor

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.

@steipete steipete closed this Oct 20, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants