From a0c1db71a35919479716c5a9047c8283332ead5d Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Wed, 22 May 2024 21:31:14 +0530 Subject: [PATCH] fix: debugging 502s in pinging (7) --- .github/workflows/quick-testing.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/quick-testing.yml b/.github/workflows/quick-testing.yml index 6c53238d..af8924d3 100644 --- a/.github/workflows/quick-testing.yml +++ b/.github/workflows/quick-testing.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 - name: Set up opensearch directory - run: mkdir shuffle-database && chown -R 1000:1000 shuffle-database + run: mkdir shuffle-database && chmod -R 755 shuffle-database - name: Build the stack run: docker-compose up -d @@ -19,9 +19,11 @@ jobs: - name: Wait for 30 seconds run: sleep 30 - - name: Check for restarting containers in a loop and fixing perms again once + - name: Check for restarting containers in a loop and fixing perms again run: | - chown -R 1000:1000 shuffle-database + echo "Changing permissions on shuffle-database directory again" + chmod -R 755 shuffle-database + ATTEMPTS=30 # Total time = ATTEMPTS * 5 seconds = 30 seconds for i in $(seq 1 $ATTEMPTS); do RESTARTING_CONTAINERS=$(docker ps --filter "status=restarting" --format "{{.Names}}")