{"record":{"id":"fd42847e8b332397","repo":"kubernetes/kops","slug":"error-powering-on-instance-s-of-group-q-w","errorCode":null,"errorMessage":"error powering on instance %s of group %q: %w","messagePattern":"error powering on instance (.+?) of group %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/instance.go","lineNumber":274,"sourceCode":"\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,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error powering on instance %s of group %q: %w\", srv.Server.ID, fi.ValueOf(expected.Name), err)\n\t\t}\n\n\t\t// We wait for the instance to be ready\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\t}\n\n\t// If newInstanceCount < 0, we need to delete instances of this group\n\tif newInstanceCount < 0 {\n\n\t\tigInstances, err := t.Cloud.GetClusterServers(t.Cloud.ClusterName(actual.Tags), actual.Name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error deleting instance: %w\", err)","sourceCodeStart":256,"sourceCodeEnd":292,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/instance.go#L256-L292","documentation":"In RenderScw, the ServerAction 'poweron' call failed for a newly created server whose cloud-init user-data was just set. The server exists with user-data but is not running; the server ID and group name identify the machine that failed to start.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:274 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error (server may be in an invalid state for power-on)","Delete the orphaned server manually or let the next apply reconcile","Retry the apply operation"],"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"}