{"record":{"id":"956c12dca92d357c","repo":"kubernetes/kops","slug":"error-waiting-for-backend-service-v","errorCode":null,"errorMessage":"error waiting for backend service: %v","messagePattern":"error waiting for backend service: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/backend_service.go","lineNumber":135,"sourceCode":"\t}\n\tbs := &compute.BackendService{\n\t\tName:                *e.Name,\n\t\tProtocol:            *e.Protocol,\n\t\tHealthChecks:        hcs,\n\t\tLoadBalancingScheme: *e.LoadBalancingScheme,\n\t\tBackends:            backends,\n\t}\n\n\tif a == nil {\n\t\tklog.V(2).Infof(\"Creating BackendService: %q\", bs.Name)\n\n\t\top, err := cloud.Compute().RegionBackendServices().Insert(cloud.Project(), cloud.Region(), bs)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating backend service: %v\", err)\n\t\t}\n\n\t\tif err := cloud.WaitForOp(op); err != nil {\n\t\t\treturn fmt.Errorf(\"error waiting for backend service: %v\", err)\n\t\t}\n\t} else {\n\t\treturn fmt.Errorf(\"cannot apply changes to backend service: %v\", changes)\n\t}\n\n\treturn nil\n}\n\nfunc (a *BackendService) URL(cloud gce.GCECloud) string {\n\treturn fmt.Sprintf(\"https://www.googleapis.com/compute/v1/projects/%s/regions/%s/backendServices/%s\",\n\t\tcloud.Project(),\n\t\tcloud.Region(),\n\t\t*a.Name)\n}\n\ntype terraformBackend struct {\n\tBalancingMode *terraformWriter.Literal `cty:\"balancing_mode\"`\n\tGroup         *terraformWriter.Literal `cty:\"group\"`","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/backend_service.go#L117-L153","documentation":"Wrapped error from cloud.WaitForOp after a successful RegionBackendServices.Insert submit. The create operation failed asynchronously (or polling errored); the backend service may be partially created or in a failed state.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/backend_service.go:135 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the operation error detail for the actual GCE failure reason","Verify the backend service state with gcloud compute backend-services describe before retrying","Fix the underlying cause (e.g. invalid backend group URLs) and re-run the apply"],"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"}