Skip to content

R2 synced but all memory is lost #102

@atyachin

Description

@atyachin

Here's the analysis by the Clawdbot itself:

Found the problem! Here's the full diagnosis:


✅ What's Working

Item Status Notes
R2 mounted /data/moltbot/ via s3fs
Sync running Last sync: 09:01:04 (minutes ago)
clawdbot.json Your identity "Friendly Bot" 🔍 is preserved
Device pairings /data/moltbot/clawdbot/devices/
Skills cloudflare-browser skill synced

❌ What's NOT Working

Item Status Problem
Workspace files /root/clawd/ (IDENTITY.md, USER.md, MEMORY.md, memory/) not synced
Avatar file Config references assets/my-logo.png but folder doesn't exist

Root Cause

Moltworker only syncs /root/.clawdbot/ (the gateway config directory).

It does NOT sync /root/clawd/ (the agent workspace where your memories, identity files, and avatar live).

The R2 mount structure:

/data/moltbot/
├── clawdbot/      → syncs with /root/.clawdbot/  ✅
└── skills/        → syncs with /root/clawd/skills/  ✅

/root/clawd/       → NOT SYNCED  ❌
├── IDENTITY.md
├── USER.md  
├── MEMORY.md
├── memory/
└── assets/

The Fix

The moltworker project needs to also sync the workspace directory. This would require either:

  1. Add workspace to R2 sync — modify the sync script to include /root/clawd/
  2. Symlink workspace into R2 mount — e.g., /data/moltbot/workspace//root/clawd/

Would you like me to look at the moltworker source to see exactly how the sync works so we can figure out the right fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions