START: 2026-09-22 16:05:41 +---------------------------------------------+ [TASK]: Set vars [CMD]: export HOME=/home/srhwebcloster STDOUT: STDERR: EXIT: 0 [CMD]: SCRIPTS_PATH=/home/srhwebcloster/scripts STDOUT: STDERR: EXIT: 0 [CMD]: COMPOSER_PATH=$SCRIPTS_PATH/composer STDOUT: STDERR: EXIT: 0 [CMD]: PHP_BIN=/usr/local/bin/php STDOUT: STDERR: EXIT: 0 [CMD]: REPO_PATH=/home/srhwebcloster/repositories/deshi-dht-backend STDOUT: STDERR: EXIT: 0 [CMD]: DOTFILES_PATH=/home/srhwebcloster/repositories/deshi-dht-backend-dotfiles STDOUT: STDERR: EXIT: 0 [CMD]: PROJECT_PATH=/home/srhwebcloster/api.srh.webcloster.com STDOUT: STDERR: EXIT: 0 [CMD]: SHARED_PATH=/home/srhwebcloster/shared STDOUT: STDERR: EXIT: 0 [CMD]: DEPLOY_BRANCH=main STDOUT: STDERR: EXIT: 0 +---------------------------------------------+ [TASK]: Check composer [CMD]: if [ -f "$COMPOSER_PATH" ]; then echo "Composer already exists in this directory." else echo "Downloading Composer..." $PHP_BIN -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" $PHP_BIN -r "if (hash_file('sha384', 'composer-setup.php') === 'c8b085408188070d5f52bcfe4ecfbee5f727afa458b2573b8eaaf77b3419b0bf2768dc67c86944da1544f06fa544fd47') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }" $PHP_BIN composer-setup.php $PHP_BIN -r "unlink('composer-setup.php');" mv composer.phar $COMPOSER_PATH echo "Composer downloaded as $COMPOSER_PATH" fi STDOUT: Composer already exists in this directory. STDERR: EXIT: 0 +---------------------------------------------+ [TASK]: Check init repo [CMD]: if [ -d "$REPO_PATH/.git" ]; then echo "Repo ready." else git clone \ "$DEPLOY_REPO_URL" \ "$REPO_PATH"_tmp rm -rf "$REPO_PATH" mv "$REPO_PATH"_tmp "$REPO_PATH" fi STDOUT: Repo ready. STDERR: EXIT: 0 +---------------------------------------------+ [TASK]: Check repo [CMD]: cd $REPO_PATH STDOUT: STDERR: EXIT: 0 [CMD]: git fetch --all --prune STDOUT: Fetching origin STDERR: EXIT: 0 [CMD]: git checkout $DEPLOY_BRANCH STDOUT: Fetching origin STDERR: Already on 'main' EXIT: 0 [CMD]: git reset --hard origin/$DEPLOY_BRANCH STDOUT: Fetching origin HEAD is now at fe4223f Merge branch 'development' into 'main' STDERR: Already on 'main' EXIT: 0 +---------------------------------------------+ [TASK]: Prepare shared state [CMD]: mkdir -p "$SHARED_PATH/storage" "$SHARED_PATH/logs" if [ -d "$PROJECT_PATH/storage" ] && [ ! -L "$PROJECT_PATH/storage" ]; then echo "Rescuing uploads left in the project directory..." cp -a "$PROJECT_PATH/storage/." "$SHARED_PATH/storage/" || true fi if [ -d "$PROJECT_PATH/logs" ] && [ ! -L "$PROJECT_PATH/logs" ]; then echo "Rescuing logs left in the project directory..." cp -a "$PROJECT_PATH/logs/." "$SHARED_PATH/logs/" || true fi chmod 775 "$SHARED_PATH/storage" "$SHARED_PATH/logs" STDOUT: __STDOUT_EOF__0 STDERR: [ERROR] Command timeout after 500 seconds EXIT: 124 ============================================= END. Duration: 504.86s