From 4c3f7f27a508dcd3976748f2efd773918b4cc34d Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Wed, 14 May 2025 10:02:21 +0530 Subject: [PATCH] fix: update API service startup check to use HTTP request instead of logs (#7054) --- deploy/selfhost/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/selfhost/install.sh b/deploy/selfhost/install.sh index 5ce2d5964..6e37b0aff 100755 --- a/deploy/selfhost/install.sh +++ b/deploy/selfhost/install.sh @@ -366,7 +366,7 @@ function startServices() { local api_container_id=$(docker container ls -q -f "name=$SERVICE_FOLDER-api") local idx2=0 - while ! docker logs $api_container_id 2>&1 | grep -m 1 -i "Application startup complete" | grep -q "."; + while ! docker exec $api_container_id python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/')" > /dev/null 2>&1; do local message=">> Waiting for API Service to Start" local dots=$(printf '%*s' $idx2 | tr ' ' '.')