-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
[Bug]: Gateway crashes with EBUSY errors when .openclaw is synced via cloud storage #39446
Copy link
Copy link
Open
techfitmaster/openclaw
#1Labels
bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangs
Description
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
~/.openclawdirectory 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 1Impact and severity
No response
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangs
Type
Fields
Give feedbackNo fields configured for issues without a type.