Your agent's memory lives in a SQLite database at ~/.openclaw/agents/<agentId>/memory.sqlite. Two errors come up here.
If you see "Database is locked", another process holds the file lock. Stop OpenClaw and restart the gateway to release it. This usually happens after a crash that didn't exit cleanly.
If you see "Database is not open", that's a Node compatibility issue. Node 's experimental SQLite support conflicts with OpenClaw. Downgrade to Node . That's the minimum required version and doesn't have this conflict.
After either fix, run openclaw health to confirm your database is accessible again.