diff --git a/backend/services/deploy-mining.sh b/backend/services/deploy-mining.sh index 067bafab..b1f34862 100755 --- a/backend/services/deploy-mining.sh +++ b/backend/services/deploy-mining.sh @@ -333,8 +333,9 @@ run_psql() { ensure_kafka_image() { local image="confluentinc/cp-kafka:7.5.0" if ! docker image inspect "$image" &>/dev/null; then - log_info "Pulling Kafka CLI image: $image (first time only)..." - docker pull "$image" + # Output to stderr so it's visible even when called inside $(...) command substitution + echo -e "${BLUE}[INFO]${NC} Pulling Kafka CLI image: $image (first time only)..." >&2 + docker pull "$image" >&2 fi } @@ -1277,6 +1278,9 @@ full_reset() { docker compose $COMPOSE_ARGS up -d postgres-2 redis-2 2>/dev/null || true docker compose $COMPOSE_ARGS up -d --wait postgres-2 redis-2 2>/dev/null || sleep 15 log_success "Standalone infrastructure is up" + + # Pre-pull Kafka CLI image (needed for cross-server kafka commands) + ensure_kafka_image fi log_step "Step 1/19: Stopping 2.0 services..."