hashicorp/packer · error
%w. Is the checksum file correct ? Is the binary file correc
Error message
%w. Is the checksum file correct ? Is the binary file correct ?
What it means
Plugin installation error from InstallLatest: the downloaded zip failed checksum verification against the release's checksum file — either the checksum file or the binary doesn't match. Installation continues with other candidates and reports the mismatch.
Source
Thrown at packer/plugin-getter/plugins.go:844
}()
// write binary to tmp file
_, err = io.Copy(tmpFile, remoteZipFile)
_ = remoteZipFile.Close()
if err != nil {
err := fmt.Errorf("Error getting plugin, trying another getter: %w", err)
errs = multierror.Append(errs, err)
continue
}
if _, err := tmpFile.Seek(0, 0); err != nil {
err := fmt.Errorf("Error seeking beginning of temporary file for checksumming, continuing: %w", err)
errs = multierror.Append(errs, err)
continue
}
// verify that the checksum for the zip is what we expect.
if err := checksum.Checksummer.Checksum(checksum.Expected, tmpFile); err != nil {
err := fmt.Errorf("%w. Is the checksum file correct ? Is the binary file correct ?", err)
errs = multierror.Append(errs, err)
continue
}
zr, err := zip.OpenReader(tmpFile.Name())
if err != nil {
errs = multierror.Append(errs, fmt.Errorf("zip : %v", err))
return nil, errs
}
var copyFrom io.ReadCloser
for _, f := range zr.File {
if f.Name != expectedBinaryFilename {
continue
}
copyFrom, err = f.Open()
if err != nil {
errs = multierror.Append(errs, fmt.Errorf("failed to open temp file: %w", err))
return nil, errsView on GitHub (pinned to eb36e3c3e4)
Solutions
- Retry the install — a corrupted download is the most common cause
- Verify the release's checksum file matches its assets on the plugin's release page
- Check for MITM/proxy tampering if mismatches persist
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at packer/plugin-getter/plugins.go:844 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hashicorp/packer@eb36e3c3e4 (2026-09-05).
Data as JSON: /api/errors/b2cae9c1b2274c7a.
Report an issue: GitHub.