diff --git a/koyeb/lib/common.sh b/koyeb/lib/common.sh index 6efd1144..203867e4 100644 --- a/koyeb/lib/common.sh +++ b/koyeb/lib/common.sh @@ -192,13 +192,18 @@ _koyeb_wait_for_service() { fi if [[ "$status" == "error" || "$status" == "failed" ]]; then - log_error "Service deployment failed (status: $status)" + log_error "Service deployment failed with status: $status" log_error "" log_error "Common causes:" - log_error " - Docker image pull failure" + log_error " - Docker image pull failure (check image name and registry access)" log_error " - Insufficient resources for the selected instance type" log_error " - Health check failure (service crashed on startup)" - log_error "View deployment logs: https://app.koyeb.com/" + log_error " - Application error in startup command" + log_error "" + log_error "Debugging steps:" + log_error " 1. View deployment logs at: https://app.koyeb.com/" + log_error " 2. Check service details: koyeb service get $service_id" + log_error " 3. Try a different region or instance type" return 1 fi diff --git a/northflank/lib/common.sh b/northflank/lib/common.sh index cfa6fb91..1173006d 100644 --- a/northflank/lib/common.sh +++ b/northflank/lib/common.sh @@ -91,12 +91,19 @@ _northflank_wait_for_service() { attempt=$((attempt + 1)) done - log_error "Service did not start after ${max_attempts} attempts" + log_error "Service did not reach 'running' status after ${max_attempts} attempts" log_error "" - log_error "The service may still be starting. You can:" + log_error "Last status: ${status:-unknown}" + log_error "" + log_error "Possible causes:" + log_error " - Container image pull is taking longer than expected" + log_error " - Application failing to start (check startup command)" + log_error " - Resource limits preventing container from starting" + log_error "" + log_error "Debugging steps:" log_error " 1. Check service status: northflank get service --name ${name} --project ${project_name}" log_error " 2. View logs in the dashboard: https://app.northflank.com/" - log_error " 3. Re-run the command to try again" + log_error " 3. Service may still be starting - check dashboard before retrying" return 1 }