{"record":{"id":"fec59f0c5bce02f3","repo":"kubernetes/kops","slug":"writing-file-q-w","errorCode":null,"errorMessage":"writing file %q: %w","messagePattern":"writing file %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/dump/podlogs.go","lineNumber":149,"sourceCode":"\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tresults <- podLogDumpResult{err: podErr}\n\t}\n}\n\nfunc writeContainerLogs(filePath string, contents []byte) error {\n\tresFile, err := os.Create(filePath)\n\tdefer func(resFile *os.File) {\n\t\t_ = resFile.Close()\n\t}(resFile)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"creating file %q: %w\", filePath, err)\n\t}\n\t_, err = resFile.Write(contents)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"writing file %q: %w\", filePath, err)\n\t}\n\treturn nil\n}\n","sourceCodeStart":131,"sourceCodeEnd":153,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/dump/podlogs.go#L131-L153","documentation":"Writing the fetched log bytes into the already-created output file failed mid-write; ENOSPC or an I/O error on the local artifacts filesystem.","triggerScenarios":"Thrown at pkg/dump/podlogs.go:149 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Free disk space in the artifacts location","Check for I/O errors on the target filesystem","Re-run the dump"],"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-12T12:17:11.808Z"}