CanineHQ/canine · error

Bootstrap returned an error (pods may still be starting): #{

Error message

Bootstrap returned an error (pods may still be starting): #{e.message}

What it means

Error "Bootstrap returned an error (pods may still be starting): #{e.message}" thrown in CanineHQ/canine.

Source

Thrown at app/services/k8/build_cloud_manager.rb:194

      command += [ "--driver", "kubernetes" ]
      command += [ "--driver-opt", "namespace=#{build_cloud.namespace}" ]
      command += [ "--driver-opt", "replicas=#{build_cloud.replicas}" ]
      command += [ "--driver-opt", "requests.cpu=#{integer_to_compute(build_cloud.cpu_requests)}" ]
      command += [ "--driver-opt", "requests.memory=#{integer_to_memory(build_cloud.memory_requests)}" ]
      command += [ "--driver-opt", "limits.cpu=#{integer_to_compute(build_cloud.cpu_limits)}" ]
      command += [ "--driver-opt", "limits.memory=#{integer_to_memory(build_cloud.memory_limits)}" ]

      runner.call(command, envs: { "KUBECONFIG" => kubeconfig_file.path })

      # Bootstrap the builder to create the pods (don't wait for it to finish — we poll ourselves)
      build_cloud.info("Bootstrapping builder pods...")
      Cli::RunAndReturnOutput.new.call(
        %w[docker buildx inspect --bootstrap] + [ build_cloud.name ],
        envs: { "KUBECONFIG" => kubeconfig_file.path }
      )
    rescue Cli::CommandFailedError => e
      # Bootstrap may fail with a timeout, but pods could still be starting
      build_cloud.warn("Bootstrap returned an error (pods may still be starting): #{e.message}")
    end

    # Wait for builder to be ready
    build_cloud.info("Waiting for builder to become ready...")
    wait_for_builder_ready!
  end

  def wait_for_builder_ready!
    attempts = 0
    logged_warnings = Set.new

    while attempts < READY_MAX_ATTEMPTS
      if builder_ready?
        build_cloud.success("Builder is ready! All pods are running.")
        return true
      end

      # Periodically log pod status and check for warnings

View on GitHub (pinned to ba4ee3968d)

When it happens

Trigger: Thrown at app/services/k8/build_cloud_manager.rb:194 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23). Data as JSON: /api/errors/bc4bca9289b8928d. Report an issue: GitHub.