I'm using a script to set up new macs out-of-the-box, including installing and configuring Munki with the .checkandinstallatstartup method. All the managed installs are located and installed without problem, but fails when trying to install the 10.8.1 OS update. Since the install fails, the .checkandinstallatstartup file is not deleted and Munki now repeatedly fails to install and then restarts again. I can hit the 'Stop' button to terminate this, but when MSU is then run manually it still fails to install the update, although it does correctly list it as available in the GUI. Running the normal Software Update in the OS will perform the installation successfully.
Portion of ManagedSoftwareUpdate.log:
Sep 04 2012 17:10:55 +0100 ### End managed software check ###
Sep 04 2012 17:10:55 +0100 Checking Apple Software Update catalog...
Sep 04 2012 17:10:55 +0100 Caching CatalogURL http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz
Sep 04 2012 17:10:57 +0100 Checking for available Apple Software Updates...
Sep 04 2012 17:11:07 +0100 Caching metadata for product ID 041-6566
Sep 04 2012 17:11:07 +0100 Caching package metadata for product ID 041-6566
Sep 04 2012 17:11:07 +0100 Caching package metadata for product ID 041-6566
Sep 04 2012 17:11:07 +0100 Caching ro distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching tr distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching ca distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching el distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching fi distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching sv distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching German distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching zh_TW distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching hu distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching cs distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching he distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching English distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching zh_CN distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching da distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching uk distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching ar distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching French distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching ko distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching no distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching pt_PT distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching ru distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching Italian distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching Dutch distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching sk distribution for product ID 041-6566
Sep 04 2012 17:11:08 +0100 Caching Japanese distribution for product ID 041-6566
Sep 04 2012 17:11:09 +0100 Caching th distribution for product ID 041-6566
Sep 04 2012 17:11:09 +0100 Caching pt distribution for product ID 041-6566
Sep 04 2012 17:11:09 +0100 Caching hr distribution for product ID 041-6566
Sep 04 2012 17:11:09 +0100 Caching Spanish distribution for product ID 041-6566
Sep 04 2012 17:11:09 +0100 Caching pl distribution for product ID 041-6566
Sep 04 2012 17:11:09 +0100 Downloading available Apple Software Updates...
Sep 04 2012 17:11:10 +0100 Done.
Sep 04 2012 17:11:11 +0100 The following Apple Software Updates are available to install:
Sep 04 2012 17:11:11 +0100 + OS X Update-10.8.1
Sep 04 2012 17:11:11 +0100 *Restart required
Sep 04 2012 17:11:11 +0100 Installing available Apple Software Updates...
Sep 04 2012 17:11:12 +0100 Done.
Sep 04 2012 17:11:13 +0100 WARNING: Apple update OS X Update, 041-6566 failed to install. No record of success or failure.
Sep 04 2012 17:11:13 +0100 Finishing...
Sep 04 2012 17:11:13 +0100 Saving application inventory...
Sep 04 2012 17:11:35 +0100 ### Ending managedsoftwareupdate run ###
Sep 04 2012 17:11:35 +0100 Software installed or removed requires a restart.
Sep 04 2012 17:12:27 +0100 Waiting for network...
Sep 04 2012 17:12:33 +0100 ### Starting managedsoftwareupdate run: checkandinstallatstartup ###
Sep 04 2012 17:12:33 +0100 Starting...
Sep 04 2012 17:12:34 +0100 ### Beginning managed software check ###
Here's the same section from /var/log/install.log:Sep 4 17:10:57 Mac-70cd60f2e479 installd[168]: installd: StartingSep 4 17:10:57 Mac-70cd60f2e479 installd[168]: installd: uid=0, euid=0Sep 4 17:10:57 Mac-70cd60f2e479 Software Update[167]: SoftwareUpdate: Scan for client pid 167 (/usr/sbin/softwareupdate) parent pid 165 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python)Sep 4 17:10:57 Mac-70cd60f2e479 Software Update[167]: SoftwareUpdate: Using catalog file://localhost/Library/Managed%20Installs/swupd/content/catalogs/apple_index.sucatalogSep 4 17:11:00 Mac-70cd60f2e479 Software Update[167]: JS: 10.8Sep 4 17:11:01 Mac-70cd60f2e479 Software Update[167]: JS: model = iMac12,1Sep 4 17:11:06 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 167, 0Sep 4 17:11:06 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 167, 0Sep 4 17:11:09 Mac-70cd60f2e479 Software Update[225]: SoftwareUpdate: Scan for client pid 225 (/usr/sbin/softwareupdate) parent pid 223 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python)Sep 4 17:11:09 Mac-70cd60f2e479 Software Update[225]: SoftwareUpdate: Using catalog file://localhost/Library/Managed%20Installs/swupd/content/catalogs/local_download.sucatalogSep 4 17:11:09 Mac-70cd60f2e479 Software Update[225]: Can't instantiate distribution from file://localhost/Library/Managed%20Installs/swupd/content/downloads/05/01/041-6566/ao2z6l1pxi4w85h4ugpswbqzmmtacuuefd/041-6566.English.dist: Error Domain=NSXMLParserErrorDomain Code=4 "Line 1: Document is empty" UserInfo=0x7fbb84e02ef0 {NSLocalizedDescription=Line 1: Document is empty}Sep 4 17:11:09 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 225, 0Sep 4 17:11:09 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 225, 0Sep 4 17:11:09 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 225, 0Sep 4 17:11:09 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 225, 0Sep 4 17:11:11 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 239, 0Sep 4 17:11:11 Mac-70cd60f2e479 Software Update[239]: SoftwareUpdate: Scan for client pid 239 (/usr/sbin/softwareupdate) parent pid 237 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python)Sep 4 17:11:11 Mac-70cd60f2e479 Software Update[239]: SoftwareUpdate: Using catalog file://localhost/Library/Managed%20Installs/swupd/content/catalogs/local_install.sucatalogSep 4 17:11:11 Mac-70cd60f2e479 Software Update[239]: Can't instantiate distribution from file://localhost/Library/Managed%20Installs/swupd/content/downloads/05/01/041-6566/ao2z6l1pxi4w85h4ugpswbqzmmtacuuefd/041-6566.English.dist: Error Domain=NSXMLParserErrorDomain Code=4 "Line 1: Document is empty" UserInfo=0x7fb028423d10 {NSLocalizedDescription=Line 1: Document is empty}Sep 4 17:11:11 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 239, 0Sep 4 17:11:12 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 239, 0Sep 4 17:11:12 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 239, 0Sep 4 17:11:17 Mac-70cd60f2e479 installd[168]: installd: Exiting.Note: the swupd folder does not exist in /Library/Managed Installs/
Target OS: 10.8. Munki version: munkitools-0.8.3.1634.0Anyone help with this? I'm a bit stuck…---john---
Since it looks like you are pointed to Apple's SUS servers, it should be replicating that file from:Does that show up as a valid dist file for you?
Does your site require the use of a web proxy to reach outside?
---john---
Hi John,
The change is from Apple for the 10.8 sucatalog. They are somewhat fairly assuming that software understanding .sucatalog.gz (default from 10.7) will also understand .dist.gz
It substantially cuts down the size of the initial download (but probably doesn't improve end-to-end speed very much as each .dist.gz will still be requested as a separate http communication).
That workaround will continue to work so long as .sucatalog continues to reference .dist files.
You could try that, or less intrusive would be to set SoftwareUpdateServerURL in /Library/Preferences/ManagedInstalls.plist to http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog