From caf6681e6a745ae04c60e0baceaf205e3cfba821 Mon Sep 17 00:00:00 2001 From: TheLast Date: Tue, 27 Jan 2026 21:03:26 +0200 Subject: [PATCH] HA add-on: timeout clawdbot doctor to avoid startup hangs --- papur-addon/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/papur-addon/run.sh b/papur-addon/run.sh index 319b883..d327757 100644 --- a/papur-addon/run.sh +++ b/papur-addon/run.sh @@ -84,8 +84,9 @@ MikroTik SSH: EOF echo "Running clawdbot doctor (auto-fix) ..." -# Doctor is idempotent; it will apply any needed config migrations and exit 0. -clawdbot doctor --fix --yes || true +# Doctor is idempotent; but in containers it can occasionally hang on environment checks. +# Put a hard timeout so the gateway still starts. +(timeout 60s clawdbot doctor --fix --yes) || true echo "Starting Clawdbot Gateway..." exec clawdbot gateway run