fix(sandbox): add .openclaw/memory dir and symlink to base image#1061
fix(sandbox): add .openclaw/memory dir and symlink to base image#1061cv merged 3 commits intoNVIDIA:mainfrom
Conversation
The sandbox Dockerfile.base was missing the memory directory from the .openclaw-data writable state layout. OpenClaw stores its SQLite memory index under ~/.openclaw/memory, but this path was neither created nor symlinked during image build. Since .openclaw is locked read-only (Landlock + DAC) at runtime, the sandbox user (uid 998) could not create ~/.openclaw/memory on the fly, causing every agent message to fail with: 400 No connected db Fix: add /sandbox/.openclaw-data/memory to the mkdir -p block and add the corresponding symlink /sandbox/.openclaw/memory -> .openclaw-data/memory, consistent with all other writable OpenClaw state directories. Tested: docker run on node:22-slim confirmed memory symlink is created and sandbox user can write files through it. Fixes NVIDIA#1053
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded a writable memory subdirectory Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@jneeee Thanks for the fix here. I checked the change against To be able to merge this PR, you need to fix the verified signatures on your commits. Once the branch is updated with fully verified signed commit(s), this can be re-reviewed. |
The sandbox Dockerfile.base was missing the memory directory from the .openclaw-data writable state layout. OpenClaw stores its SQLite memory index under ~/.openclaw/memory, but this path was neither created nor symlinked during image build.
Since .openclaw is locked read-only (Landlock + DAC) at runtime, the sandbox user (uid 998) could not create ~/.openclaw/memory on the fly, causing every agent message to fail with:
400 No connected db
Fix: add /sandbox/.openclaw-data/memory to the mkdir -p block and add the corresponding symlink /sandbox/.openclaw/memory -> .openclaw-data/memory, consistent with all other writable OpenClaw state directories.
Tested: docker run on node:22-slim confirmed memory symlink is created and sandbox user can write files through it.
Fixes #1053
Summary
Related Issue
Changes
Type of Change
Testing
npx prek run --all-filespasses (or equivalentlymake check).npm testpasses.make docsbuilds without warnings. (for doc-only changes)Checklist
General
Code Changes
npx prek run --all-filesauto-fixes formatting (ormake formatfor targeted runs).Doc Changes
update-docsagent skill to draft changes while complying with the style guide. For example, prompt your agent with "/update-docscatch up the docs for the new changes I made in this PR."Summary by CodeRabbit