{"record":{"id":"bc4bca9289b8928d","repo":"CanineHQ/canine","slug":"bootstrap-returned-an-error-pods-may-still-be-sta","errorCode":null,"errorMessage":"Bootstrap returned an error (pods may still be starting): #{e.message}","messagePattern":"Bootstrap returned an error \\(pods may still be starting\\): #(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/services/k8/build_cloud_manager.rb","lineNumber":194,"sourceCode":"      command += [ \"--driver\", \"kubernetes\" ]\n      command += [ \"--driver-opt\", \"namespace=#{build_cloud.namespace}\" ]\n      command += [ \"--driver-opt\", \"replicas=#{build_cloud.replicas}\" ]\n      command += [ \"--driver-opt\", \"requests.cpu=#{integer_to_compute(build_cloud.cpu_requests)}\" ]\n      command += [ \"--driver-opt\", \"requests.memory=#{integer_to_memory(build_cloud.memory_requests)}\" ]\n      command += [ \"--driver-opt\", \"limits.cpu=#{integer_to_compute(build_cloud.cpu_limits)}\" ]\n      command += [ \"--driver-opt\", \"limits.memory=#{integer_to_memory(build_cloud.memory_limits)}\" ]\n\n      runner.call(command, envs: { \"KUBECONFIG\" => kubeconfig_file.path })\n\n      # Bootstrap the builder to create the pods (don't wait for it to finish — we poll ourselves)\n      build_cloud.info(\"Bootstrapping builder pods...\")\n      Cli::RunAndReturnOutput.new.call(\n        %w[docker buildx inspect --bootstrap] + [ build_cloud.name ],\n        envs: { \"KUBECONFIG\" => kubeconfig_file.path }\n      )\n    rescue Cli::CommandFailedError => e\n      # Bootstrap may fail with a timeout, but pods could still be starting\n      build_cloud.warn(\"Bootstrap returned an error (pods may still be starting): #{e.message}\")\n    end\n\n    # Wait for builder to be ready\n    build_cloud.info(\"Waiting for builder to become ready...\")\n    wait_for_builder_ready!\n  end\n\n  def wait_for_builder_ready!\n    attempts = 0\n    logged_warnings = Set.new\n\n    while attempts < READY_MAX_ATTEMPTS\n      if builder_ready?\n        build_cloud.success(\"Builder is ready! All pods are running.\")\n        return true\n      end\n\n      # Periodically log pod status and check for warnings","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/CanineHQ/canine/blob/ba4ee3968d8513ee27d8583fbd3e854a8dd053f3/app/services/k8/build_cloud_manager.rb#L176-L212","documentation":"Error \"Bootstrap returned an error (pods may still be starting): #{e.message}\" thrown in CanineHQ/canine.","triggerScenarios":"Thrown at app/services/k8/build_cloud_manager.rb:194 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ba4ee3968d8513ee27d8583fbd3e854a8dd053f3","analyzedAt":"2026-08-23T17:49:27.834Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}