From 9fc912f731f4f54c53b3435ca468bab3ef13cd7b Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Wed, 27 May 2026 20:11:07 +0800 Subject: [PATCH] fix: increase health check timeout to 240s for HDD startup delay The container takes ~183s to become healthy on the slow NAS HDD. 90 iterations at 2s (180s) kept timing out by ~3 seconds. Increased to 120 iterations (240s) for safety margin. Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8e73bf5..e11de18 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -326,13 +326,13 @@ jobs: # Wait for container to be healthy echo "Waiting for container to be healthy..." - for i in {1..90}; do + for i in {1..120}; do STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "starting") if [ "$STATUS" = "healthy" ]; then echo "✅ Container is healthy" break fi - echo "Waiting... ($i/90) Status: $STATUS" + echo "Waiting... ($i/120) Status: $STATUS" sleep 2 done STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "unknown")