{"record":{"id":"807da79bc62813fe","repo":"ipfs/kubo","slug":"s-not-found-in-tar-gz","errorCode":null,"errorMessage":"%s not found in tar.gz","messagePattern":"(.+?) not found in tar\\.gz","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/commands/update.go","lineNumber":792,"sourceCode":"\t\thdr, err := tr.Next()\n\t\tif errors.Is(err, io.EOF) {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif hdr.Name == lookFor {\n\t\t\tresult, readErr := io.ReadAll(io.LimitReader(tr, maxBinarySize+1))\n\t\t\tif readErr != nil {\n\t\t\t\treturn nil, readErr\n\t\t\t}\n\t\t\tif int64(len(result)) > maxBinarySize {\n\t\t\t\treturn nil, fmt.Errorf(\"extracted binary exceeds maximum size of %d bytes\", maxBinarySize)\n\t\t\t}\n\t\t\treturn result, nil\n\t\t}\n\t}\n\treturn nil, fmt.Errorf(\"%s not found in tar.gz\", lookFor)\n}\n\nfunc extractFromZip(data []byte, binName string) ([]byte, error) {\n\tzr, err := zip.NewReader(bytes.NewReader(data), int64(len(data)))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tlookFor := \"kubo/\" + binName\n\tfor _, f := range zr.File {\n\t\tif f.Name != lookFor {\n\t\t\tcontinue\n\t\t}\n\t\trc, err := f.Open()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tresult, err := io.ReadAll(io.LimitReader(rc, maxBinarySize+1))","sourceCodeStart":774,"sourceCodeEnd":810,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/core/commands/update.go#L774-L810","documentation":"Fired by the kubo self-update flow in extractFromTarGz when the downloaded tar.gz archive was scanned end-to-end but no entry named <root>/<binName> (the expected platform binary path inside the release archive) was found. Indicates a release archive layout mismatch or corrupted/unexpected asset.","triggerScenarios":"Thrown at core/commands/update.go:792 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry in a few hours; release artifacts may still be uploading","Verify your platform has an official release","Download and install the binary manually from dist.ipfs.tech"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"329838acdfafae224582930457efe80aa217afc0","analyzedAt":"2026-09-03T18:30:52.135Z","contentChangedAt":"2026-09-03T18:30:52.135Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}