ERROR: Hash value integrity check failed

2,111 views
Skip to first unread message

Brian S

unread,
Jun 27, 2012, 4:41:14 PM6/27/12
to munk...@googlegroups.com
Hello all,

I'm relatively new to munki and still working through how to get things setup, organized, fixed, etc.  

Right now we're populating a number of packages into the repo.  I am now getting a "hash value integrity check failed error" on a package.  I've not only removed it from the repository and re-added, but I've downloaded the package form the vendor fresh and I still get this error.  If I download the dmg to a client and install it works fine, just not through munki.

Any suggestions?

Brian S.

Nate

unread,
Jun 27, 2012, 4:42:27 PM6/27/12
to munk...@googlegroups.com
Is it a writable .dmg?  I suspect it is.  Make a copy of it, mount the copy and try dropping a file in there.  If it works, you have yourself a read-write .dmg and need to convert it to read-only.

Nate

Brian S

unread,
Jun 27, 2012, 4:48:24 PM6/27/12
to munk...@googlegroups.com
You're right!  It's writeable.  So munki only works with read-only dmg's or is this just sometimes a problem if they are writeable.  

Thanks!

Brian

... off to convert my dmg to ro


Nate

unread,
Jun 27, 2012, 4:50:32 PM6/27/12
to munk...@googlegroups.com
Every time you mount a rw .dmg, the hash for the file changes, so munki will always think it is invalid due to the hash changing.  Its great fun!

Nate

Brian S

unread,
Jun 27, 2012, 4:57:13 PM6/27/12
to munk...@googlegroups.com
Thanks for the tip.  I just converted to read-only and it's installing now after being reimported.  I will file this one away.  I wouldn't think the hash would change unless you change something, but it makes sense that any kind of touch might change the hash.

Thanks again!

Greg Neagle

unread,
Jun 27, 2012, 7:08:27 PM6/27/12
to munk...@googlegroups.com
Since this pops up from time to time, I've committed a change such that makepkginfo will now print a warning if given a read/write disk image:

% ./makepkginfo /Users/gneagle/Downloads/foo_rw.dmg
WARNING: /Users/gneagle/Downloads/foo_rw.dmg is a writable disk image. Checksum verification is not supported.
WARNING: Consider converting /Users/gneagle/Downloads/foo_rw.dmg to a read-only disk image.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <---etc--->


-Greg
Reply all
Reply to author
Forward
0 new messages