{"record":{"id":"1d6f3335cc89198c","repo":"hashicorp/packer","slug":"could-not-get-binary-for-s-version-s-is-the-fil","errorCode":null,"errorMessage":"could not get binary for %s version %s. Is the file present on the release and correctly named ? %s","messagePattern":"could not get binary for (.+?) version (.+?)\\. Is the file present on the release and correctly named \\? (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packer/plugin-getter/plugins.go","lineNumber":811,"sourceCode":"\t\t\t\t\t\t\t\tlog.Printf(\"[INFO] %s v%s plugin is already correctly installed in %q\", pr.Identifier, version, outputFileName)\n\t\t\t\t\t\t\t\treturn nil, nil // success\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// start fetching binary\n\t\t\t\t\tremoteZipFile, err := getter.Get(\"zip\", GetOptions{\n\t\t\t\t\t\tPluginRequirement:         pr,\n\t\t\t\t\t\tBinaryInstallationOptions: opts.BinaryInstallationOptions,\n\t\t\t\t\t\tversion:                   version,\n\t\t\t\t\t\texpectedZipFilename:       expectedZipFilename,\n\t\t\t\t\t})\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\tif errors.Is(err, HTTPFailure) {\n\t\t\t\t\t\t\treturn nil, err\n\t\t\t\t\t\t}\n\t\t\t\t\t\terrs = multierror.Append(errs,\n\t\t\t\t\t\t\tfmt.Errorf(\"could not get binary for %s version %s. Is the file present on the release and correctly named ? %s\",\n\t\t\t\t\t\t\t\tpr.Identifier, version, err))\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\t// create temporary file that will receive a temporary binary.zip\n\t\t\t\t\ttmpFile, err := tmp.File(\"packer-plugin-*.zip\")\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\terr = fmt.Errorf(\"could not create temporary file to download plugin: %w\", err)\n\t\t\t\t\t\terrs = multierror.Append(errs, err)\n\t\t\t\t\t\treturn nil, errs\n\t\t\t\t\t}\n\t\t\t\t\tdefer func() {\n\t\t\t\t\t\ttmpFilePath := tmpFile.Name()\n\t\t\t\t\t\ttmpFile.Close()\n\t\t\t\t\t\tos.Remove(tmpFilePath)\n\t\t\t\t\t}()\n\n\t\t\t\t\t// write binary to tmp file\n\t\t\t\t\t_, err = io.Copy(tmpFile, remoteZipFile)","sourceCodeStart":793,"sourceCodeEnd":829,"githubUrl":"https://github.com/hashicorp/packer/blob/eb36e3c3e48a036f3e8cc94087636ee72e1303c9/packer/plugin-getter/plugins.go#L793-L829","documentation":"Plugin installation error from InstallLatest: the plugin's zip binary for the selected version could not be fetched from the release — the asset is missing or misnamed. Installation falls back to other getters before failing.","triggerScenarios":"Thrown at packer/plugin-getter/plugins.go:811 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the release contains a zip for your OS/arch (e.g. packer-plugin-x_v1.0.0_linux_amd64.zip)","Retry, or use a mirror that mirrors the full release assets"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eb36e3c3e48a036f3e8cc94087636ee72e1303c9","analyzedAt":"2026-09-05T13:20:43.127Z","contentChangedAt":"2026-09-05T13:20:43.127Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}