{"record":{"id":"d70ea9f2d92d2d59","repo":"kubernetes/kops","slug":"timeout-waiting-for-instance-q-to-be-running-sta","errorCode":null,"errorMessage":"timeout waiting for instance %q to be running, state was %q","messagePattern":"timeout waiting for instance %q to be running, state was %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_apitarget.go","lineNumber":145,"sourceCode":"\n\t\tif instance == nil {\n\t\t\t// TODO: Wait if we _just_ created the instance?\n\t\t\treturn fmt.Errorf(\"instance not found while waiting for instance to be running\")\n\t\t}\n\n\t\tstate := \"?\"\n\t\tif instance.State != nil {\n\t\t\tstate = string(instance.State.Name)\n\t\t}\n\t\tif state == \"running\" {\n\t\t\treturn nil\n\t\t}\n\t\tklog.Infof(\"Waiting for instance %q to be running (current state is %q)\", instanceID, state)\n\n\t\ttime.Sleep(10 * time.Second)\n\t\tattempt++\n\t\tif attempt > 30 {\n\t\t\treturn fmt.Errorf(\"timeout waiting for instance %q to be running, state was %q\", instanceID, state)\n\t\t}\n\t}\n}\n","sourceCodeStart":127,"sourceCodeEnd":149,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_apitarget.go#L127-L149","documentation":"The instance did not reach the 'running' state within the polling budget (30 attempts, 10s apart); it is stuck in a transitional state (pending, stopping) or blocked by capacity/boot problems.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_apitarget.go:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the instance's state and system log in the AWS console","Address capacity or AMI/userdata issues and re-run the operation","Retry — some instances take longer under heavy load"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}