{"record":{"id":"40cd5b86b57cb647","repo":"kubernetes/kops","slug":"error-reading-addons-file-s-v-40cd5b","errorCode":null,"errorMessage":"error reading addons file %s: %v","messagePattern":"error reading addons file (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/client/simple/vfsclientset/addons.go","lineNumber":107,"sourceCode":"\t}\n\n\trs := bytes.NewReader(b)\n\tif err := configPath.WriteFile(ctx, rs, acl); err != nil {\n\t\treturn fmt.Errorf(\"error writing addons file %s: %v\", configPath, err)\n\t}\n\n\treturn nil\n}\n\nfunc (c *vfsAddonsClient) List(ctx context.Context) (kubemanifest.ObjectList, error) {\n\tconfigPath := c.basePath.Join(\"default\")\n\n\tb, err := configPath.ReadFile(ctx)\n\tif err != nil {\n\t\tif os.IsNotExist(err) {\n\t\t\treturn nil, nil\n\t\t}\n\t\treturn nil, fmt.Errorf(\"error reading addons file %s: %v\", configPath, err)\n\t}\n\n\tobjects, err := kubemanifest.LoadObjectsFrom(b)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn objects, nil\n}\n","sourceCodeStart":89,"sourceCodeEnd":117,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/client/simple/vfsclientset/addons.go#L89-L117","documentation":"Reading the addons manifest from the state store failed with an error other than not-exist (which is handled by returning nil); i.e. a permission or I/O problem on the VFS path during List.","triggerScenarios":"Thrown at pkg/client/simple/vfsclientset/addons.go:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check read permissions on the state store path","Verify the file is accessible (e.g. not blocked by bucket KMS/encryption policy)","Retry after ruling out transient network issues"],"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"}