{"record":{"id":"5c3e0ae130ac0b60","repo":"kubernetes/kops","slug":"checking-user-data-differences-in-server-s-s","errorCode":null,"errorMessage":"checking user-data differences in server %s (%s): %w","messagePattern":"checking user-data differences in server (.+?) \\((.+?)\\): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/instance.go","lineNumber":118,"sourceCode":"\t\tif server.CommercialType != *s.CommercialType {\n\t\t\tneedsUpdate = append(needsUpdate, server.ID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Check image differences\n\t\tdiff, err := checkImageDifferences(c, cloud, server, fi.ValueOf(s.Image))\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"checking image differences in server %s (%s): %w\", server.Name, server.ID, err)\n\t\t}\n\t\tif diff {\n\t\t\tneedsUpdate = append(needsUpdate, server.ID)\n\t\t\tcontinue\n\t\t}\n\n\t\t// Check user-data differences\n\t\tdiff, err = checkUserDataDifferences(c, cloud, server, s.UserData)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"checking user-data differences in server %s (%s): %w\", server.Name, server.ID, err)\n\t\t}\n\t\tif diff {\n\t\t\tneedsUpdate = append(needsUpdate, server.ID)\n\t\t}\n\t}\n\n\tserver := servers[0]\n\tigName := scaleway.InstanceGroupNameFromTags(server.Tags)\n\trole := scaleway.InstanceRoleFromTags(server.Tags)\n\n\timageLabel, err := imageLabelFromID(c, cloud, server.Image.ID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &Instance{\n\t\tName:           new(igName),\n\t\tLifecycle:      s.Lifecycle,","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/instance.go#L100-L136","documentation":"In the instance task's Find phase, checkUserDataDifferences failed: reading the server's current 'cloud-init' user-data (or comparing it with the expected resource) errored, so drift for user-data cannot be determined for that server. The server name/ID identify the machine whose user-data could not be fetched.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the GetServerUserData failure","Verify the server is in a state that exposes user-data","Retry the diff/apply 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"}