Bug type
Crash (process/app exits or hangs)
Summary
OpenClaw Gateway crashes with unhandled EBUSY, EACCES, or EPERM errors when the .openclaw configuration directory is synced across devices using cloud storage services (Baidusyncdist, OneDrive, Dropbox, Google Drive).
Steps to reproduce
- Configure cloud sync service (e.g., Baidu Netdisk, OneDrive) to sync
~/.openclaw directory across multiple devices
- Start OpenClaw Gateway on Device A:
openclaw gateway start
- Send messages or perform actions that trigger file writes (session logs, config updates, cron state)
- Cloud sync service locks files temporarily during upload/download
- OpenClaw attempts to write to locked files
Expected behavior
Gateway should handle file lock errors gracefully:
- Retry the operation after a short delay
- Log a warning if retries fail
- Continue running without crashing
Actual behavior
Gateway crashes immediately with unhandled exception:
Error: EBUSY: resource busy or locked, open '/Users/xxx/.openclaw/agents/main/sessions/xxx.jsonl'
at Object.openSync (node:fs:...)
at Object.writeFileSync (node:fs:...)
The Gateway process exits completely, requiring manual restart.
OpenClaw version
2026.3.2
Operating system
macOS 14.x (Sonoma), Windows 11, Ubuntu 24.04 (any OS with cloud sync)
Install method
No response
Logs, screenshots, and evidence
[2026-03-06 07:51:23] Writing session update...
Error: EBUSY: resource busy or locked, open '/Users/xxx/.openclaw/agents/main/sessions/telegram_7840327506.jsonl'
at Object.openSync (node:fs:601:3)
at Object.writeFileSync (node:fs:2349:35)
at SessionStore.append (/path/to/openclaw/dist/session-store.js:...)
at AgentRunner.saveMessage (/path/to/openclaw/dist/agent-runner.js:...)
Process exited with code 1
Impact and severity
No response
Additional information
No response
Bug type
Crash (process/app exits or hangs)
Summary
OpenClaw Gateway crashes with unhandled
EBUSY,EACCES, orEPERMerrors when the.openclawconfiguration directory is synced across devices using cloud storage services (Baidusyncdist, OneDrive, Dropbox, Google Drive).Steps to reproduce
~/.openclawdirectory across multiple devicesopenclaw gateway startExpected behavior
Gateway should handle file lock errors gracefully:
Actual behavior
Gateway crashes immediately with unhandled exception:
The Gateway process exits completely, requiring manual restart.
OpenClaw version
2026.3.2
Operating system
macOS 14.x (Sonoma), Windows 11, Ubuntu 24.04 (any OS with cloud sync)
Install method
No response
Logs, screenshots, and evidence
[2026-03-06 07:51:23] Writing session update... Error: EBUSY: resource busy or locked, open '/Users/xxx/.openclaw/agents/main/sessions/telegram_7840327506.jsonl' at Object.openSync (node:fs:601:3) at Object.writeFileSync (node:fs:2349:35) at SessionStore.append (/path/to/openclaw/dist/session-store.js:...) at AgentRunner.saveMessage (/path/to/openclaw/dist/agent-runner.js:...) Process exited with code 1Impact and severity
No response
Additional information
No response