{"record":{"id":"f76fa18627321acd","repo":"ipfs/kubo","slug":"no-binary-found-in-archive","errorCode":null,"errorMessage":"no binary found in archive","messagePattern":"no binary found in archive","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"repo/fsrepo/migrations/unpack.go","lineNumber":62,"sourceCode":"\n\tlookFor := root + \"/\" + name\n\tfor {\n\t\tth, err := tarr.Next()\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\treturn fmt.Errorf(\"cannot read archive: %w\", err)\n\t\t}\n\n\t\tif th.Name == lookFor {\n\t\t\tbin = tarr\n\t\t\tbreak\n\t\t}\n\t}\n\n\tif bin == nil {\n\t\treturn errors.New(\"no binary found in archive\")\n\t}\n\n\treturn writeToPath(bin, out)\n}\n\nfunc unpackZip(arcPath, root, name, out string) error {\n\tzipr, err := zip.OpenReader(arcPath)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error opening zip reader: %w\", err)\n\t}\n\tdefer zipr.Close()\n\n\tlookFor := root + \"/\" + name\n\tvar bin io.ReadCloser\n\tfor _, fis := range zipr.File {\n\t\tif fis.Name == lookFor {\n\t\t\trc, err := fis.Open()\n\t\t\tif err != nil {","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/repo/fsrepo/migrations/unpack.go#L44-L80","documentation":"Fired by unpackTgz when the whole tar.gz was scanned and no entry matching <root>/<name> (the expected migration binary path) exists. The archive is valid but does not contain the binary the migration expects, so nothing is written to the output path.","triggerScenarios":"Thrown at repo/fsrepo/migrations/unpack.go:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry with a different/newer release; archive layout may differ from what was expected","Verify the download matches the expected release","Extract the binary manually from the official archive"],"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"}