From 685a64bb5b5bdbae89464e1c395b63192ccf19be Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Wed, 27 May 2026 16:52:49 +0800 Subject: [PATCH] fix: increase health check timeout from 60s to 180s for slow HDD The NAS HDD is slow enough that container startup can exceed 60 seconds. The app was starting successfully (Uvicorn running) but the health check timed out just before the container became healthy. Increased to 90 iterations at 2s = 180s max wait. 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 0f298fd..8e73bf5 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..30}; do + for i in {1..90}; 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/30) Status: $STATUS" + echo "Waiting... ($i/90) Status: $STATUS" sleep 2 done STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "unknown")