#Bug: Gateway restart hangs 30+ minutes due to Telegram webhook deleteWebhook retry loop

1 messages Β· Page 1 of 1 (latest)

cedar oriole
#

Bug: Gateway restart hangs 30+ minutes due to Telegram webhook deleteWebhook retry loop

Version: OpenClaw 2026.4.24 (cbcfdf6)
OS: macOS, Apple Silicon MacBook Air

Problem:
When the gateway crashes or restarts, it enters an infinite retry loop trying to clean up the Telegram webhook via deleteWebhook. Each attempt fails and retries every 2 seconds, blocking the entire boot sequence. Gateway stays unreachable for 30+ minutes. Happens multiple times per day.

Log pattern (repeating on every restart):
[telegram] deleteWebhook failed: Network request for 'deleteWebhook' failed!
[telegram] Telegram webhook cleanup failed: Network request for 'deleteWebhook' failed!; retrying in 2.04s.
[boot] agent run failed: session file locked (timeout 10000ms): sessions.json.lock

Additional issue: Cannot update OpenClaw β€” recent updates break the install and make it unusable. Stuck on 2026.4.24.

Expected: Gateway should boot even if webhook cleanup fails β€” skip or timeout after 1-2 attempts.

Workaround: Manually kill processes + clear lock file + restart via launchctl. Takes 15-20 seconds when done correctly but shouldn't be necessary.

worldly heraldBOT
#

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