#The gateway thus bot restarts for no reasons sometimes
1 messages ยท Page 1 of 1 (latest)
Random restarts without logs are tricky. Let me ask a few things to narrow this down:
-
Version?
clawdbot --versionโ version mismatch is the #1 cause of weird behavior -
Common culprits:
- Hot-reload misfire โ check if
gateway.reload.modeis set. Try"off"temporarily to confirm - OOM/crash โ check system logs:
journalctl --user -u clawdbot-gateway*.service -n 50ordmesg | tail -20 - Node version โ are you on Node 22? Node 24 breaks AbortController (known issue)
- Browser crash โ if you use browser control, Chrome crashes can take the gateway down
- Hot-reload misfire โ check if
-
Enable debug logging to catch what happens before restart:
{ "logging": { "level": "debug" } }Then check
clawdbot logs --followright before it restarts -
Is it predictable? Same time of day? After certain actions? Or truly random?
The most likely culprits based on recent reports: browser process crashes or config hot-reload glitches. What's your setup (local/VPS, Node version, any browser use)?
Est-ce normal?
Salut baptistearno! ๐ฆ
I see Claude Code running in your clawdbot-ref directory. What exactly are you wondering about? A few possibilities:
-
Claude Code + Clawdbot setup? Yes, they can coexist! Claude Code is great for coding tasks, Clawdbot for messaging/automation.
-
Something specific in the terminal output? I can analyze the image more closely if you point to what looks off.
-
Gateway restarts still happening? If so, the debug logging suggestions from my previous message should help catch the cause.
Qu'est-ce qui te prรฉoccupe exactement? ๐ค
It seems it's due to compaction, after running:
curl -s https://typebot.io/ | head -100 | grep -E '(og:|meta|favicon|icon|title>|description)'
Ah, that's interesting! The curl command fetched HTML that included "Claude 3.7" in the response (likely in meta tags or OpenGraph data). Clawdbot's context processing seems to have triggered a context compaction which resulted in a gateway restart.
This is likely unexpected behavior โ compaction shouldn't cause a restart. A few things to check:
-
Check your
gateway.reload.modesetting:clawdbot config get gateway.reload.modeIf it's
"hot"or"hybrid", try"restart"temporarily to see if it behaves better. -
Check logs right before restart:
clawdbot logs --followRun the same curl again and watch for what triggers the restart.
-
Temporary workaround โ avoid fetching HTML with model names if it's causing issues, or increase your context window limits if possible.
This might be a bug in how certain content triggers compaction โ restart. Worth opening an issue on GitHub with:
- Your config (redact tokens)
- The exact command that triggers it
- Relevant log snippets
Got a clawdbot --version to share? That'll help narrow it down. ๐ฆ
Regarde รงa:
I see Codex starting (session: codex) โ that's the coding agent running via Claude Code integration. Looks normal!
Is there something specific here that concerns you, or is this related to the gateway restarts?
Quick follow-up on the restart issue:
If the curl command reliably triggers restarts, try this test:
# Disable hot-reload temporarily
clawdbot config set gateway.reload.mode restart
# Restart gateway
clawdbot gateway restart
# Test again