{"record":{"id":"29f6926a8cb2e148","repo":"kubernetes/kops","slug":"error-waiting-for-instance-s-of-group-q-w","errorCode":null,"errorMessage":"error waiting for instance %s of group %q: %w","messagePattern":"error waiting for instance (.+?) of group %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/instance.go","lineNumber":253,"sourceCode":"\t\t\t\t\"0\": {\n\t\t\t\t\tBoot:       new(true),\n\t\t\t\t\tSize:       new(scw.Size(fi.ValueOf(expected.VolumeSize)) * scw.GB),\n\t\t\t\t\tVolumeType: instance.VolumeVolumeTypeBSSD,\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\n\t\t// We create the instance and wait for it to be ready\n\t\tsrv, err := instanceService.CreateServer(&createServerRequest)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating instance of group %q: %w\", fi.ValueOf(expected.Name), err)\n\t\t}\n\t\t_, err = instanceService.WaitForServer(&instance.WaitForServerRequest{\n\t\t\tServerID: srv.Server.ID,\n\t\t\tZone:     zone,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error waiting for instance %s of group %q: %w\", srv.Server.ID, fi.ValueOf(expected.Name), err)\n\t\t}\n\n\t\t// We load the cloud-init script in the instance user data\n\t\terr = instanceService.SetServerUserData(&instance.SetServerUserDataRequest{\n\t\t\tServerID: srv.Server.ID,\n\t\t\tZone:     srv.Server.Zone,\n\t\t\tKey:      \"cloud-init\",\n\t\t\tContent:  bytes.NewBuffer(userData),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error setting 'cloud-init' in user-data for instance %s of group %q: %w\", srv.Server.ID, fi.ValueOf(expected.Name), err)\n\t\t}\n\n\t\t// We start the instance\n\t\t_, err = instanceService.ServerAction(&instance.ServerActionRequest{\n\t\t\tZone:     zone,\n\t\t\tServerID: srv.Server.ID,\n\t\t\tAction:   instance.ServerActionPoweron,","sourceCodeStart":235,"sourceCodeEnd":271,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/instance.go#L235-L271","documentation":"In RenderScw, after successfully creating a server, WaitForServer timed out or errored before the server reached a ready state. The server exists but may be stuck provisioning; the server ID and group name identify it.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:253 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for timeout details","Inspect the server state in the Scaleway console (image pull, capacity issues)","Retry the apply; an already-created server is handled by the actual/expected diff on re-run"],"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"}