#error when launching

1 messages ยท Page 1 of 1 (latest)

vagrant hound
#

Getting this error when messaging my bot:

Embedded agent failed before reply: session file locked (timeout 10000ms): pid=663 /Users/clawd/.clawdbot/agents/main/sessions/0483ef4d-b8f1-44ba-afd0-a36f5402cac4.jsonl.lock

grizzled coralBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

shut pollenBOT
# vagrant hound Getting this error when messaging my bot: Embedded agent failed before reply: s...

This is a stale lock file from a crashed or killed agent process. The lock wasn't cleaned up properly.

Fix: Delete the lock file

rm /Users/clawd/.clawdbot/agents/main/sessions/0483ef4d-b8f1-44ba-afd0-a36f5402cac4.jsonl.lock

Or from your terminal:

rm ~/.clawdbot/agents/main/sessions/*/*.jsonl.lock

To prevent this in the future:

  • Don't kill agent processes with Ctrl+C during message processing
  • If using clawdbot gateway restart, it handles cleanup properly