Re: [munki-dev] Apple Software Update failing - 10.8.1

482 views
Skip to first unread message

Greg Neagle

unread,
Sep 4, 2012, 1:33:26 PM9/4/12
to munk...@googlegroups.com
We've successfully updated machines to 10.8.1 via Munki here (pointed to a local Reposado server), so I know it's not a generic issue with that update.

This is the bit I'm looking at:

Sep  4 17:11:09 Mac-70cd60f2e479 Software Update[225]: Can't instantiate distribution fromfile://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
}

It sounds like for some reason it is downloading/caching an empty file for this distribution file, and the softwareupdate process is complaining, yet still exiting with a 0 exit code.

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?

-Greg

On Sep 4, 2012, at 10:21 AM, John Staplehurst wrote:

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: Starting
Sep  4 17:10:57 Mac-70cd60f2e479 installd[168]: installd: uid=0, euid=0
Sep  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.sucatalog
Sep  4 17:11:00 Mac-70cd60f2e479 Software Update[167]: JS: 10.8
Sep  4 17:11:01 Mac-70cd60f2e479 Software Update[167]: JS: model = iMac12,1
Sep  4 17:11:06 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 167, 0
Sep  4 17:11:06 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 167, 0
Sep  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.sucatalog
Sep  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, 0
Sep  4 17:11:09 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 225, 0
Sep  4 17:11:09 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 225, 0
Sep  4 17:11:09 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 225, 0
Sep  4 17:11:11 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 239, 0
Sep  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.sucatalog
Sep  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, 0
Sep  4 17:11:12 Mac-70cd60f2e479 suhelperd[172]: Acquired Lock: 0, 239, 0
Sep  4 17:11:12 Mac-70cd60f2e479 suhelperd[172]: Releasing Lock: 0, 239, 0
Sep  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.0

Anyone help with this? I'm a bit stuck…
---john---

John Staplehurst

unread,
Sep 4, 2012, 2:00:44 PM9/4/12
to munk...@googlegroups.com

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?

I'm not sure how I tell if it's valid, but I can download a file from that URL which has contents that appear appropriate. 

Does your site require the use of a web proxy to reach outside?
No. Direct connection.

The swupd folder does not exist in /Library/Managed Installs/ when I checked.

---john---

Greg Neagle

unread,
Sep 4, 2012, 2:05:39 PM9/4/12
to munk...@googlegroups.com
That directory is removed after an install session, so that's not unexpected.

If you run Managed Software Update and download, but do not install the 10.8.1 update, we'll have more useful data to work with.

-Greg


---john---

John Staplehurst

unread,
Sep 4, 2012, 2:26:38 PM9/4/12
to munk...@googlegroups.com
Mac-70cd60f2e479:~ admin$ sudo /usr/local/munki/managedsoftwareupdate --checkonly
Managed Software Update Tool
Copyright 2010-2012 The Munki Project

Starting...
Checking for available updates...
    No changes to managed software are available.
Checking Apple Software Update catalog...
Checking for available Apple Software Updates...
    Caching metadata for product ID 041-6566...
    Caching package metadata for product ID 041-6566...
    Caching package metadata for product ID 041-6566...
    Caching ro distribution for product ID 041-6566...
    Caching tr distribution for product ID 041-6566...
    Caching ca distribution for product ID 041-6566...
    Caching el distribution for product ID 041-6566...
    Caching fi distribution for product ID 041-6566...
    Caching sv distribution for product ID 041-6566...
    Caching German distribution for product ID 041-6566...
    Caching zh_TW distribution for product ID 041-6566...
    Caching hu distribution for product ID 041-6566...
    Caching cs distribution for product ID 041-6566...
    Caching he distribution for product ID 041-6566...
    Caching English distribution for product ID 041-6566...
    Caching zh_CN distribution for product ID 041-6566...
    Caching da distribution for product ID 041-6566...
    Caching uk distribution for product ID 041-6566...
    Caching ar distribution for product ID 041-6566...
    Caching French distribution for product ID 041-6566...
    Caching ko distribution for product ID 041-6566...
    Caching no distribution for product ID 041-6566...
    Caching pt_PT distribution for product ID 041-6566...
    Caching ru distribution for product ID 041-6566...
    Caching Italian distribution for product ID 041-6566...
    Caching Dutch distribution for product ID 041-6566...
    Caching sk distribution for product ID 041-6566...
    Caching Japanese distribution for product ID 041-6566...
    Caching th distribution for product ID 041-6566...
    Caching pt distribution for product ID 041-6566...
    Caching hr distribution for product ID 041-6566...
    Caching Spanish distribution for product ID 041-6566...
    Caching pl distribution for product ID 041-6566...
Downloading available Apple Software Updates...
    Done.
    The following Apple Software Updates are available to install:
        + OS X Update-10.8.1
           *Restart required

Run managedsoftwareupdate --installonly to install the downloaded updates.
Finishing...
Done.

From install.log:
Sep  4 19:17:53 Mac-70cd60f2e479 installd[427]: installd: Starting
Sep  4 19:17:53 Mac-70cd60f2e479 installd[427]: installd: uid=0, euid=0
Sep  4 19:17:53 Mac-70cd60f2e479 Software Update[426]: SoftwareUpdate: Scan for client pid 426 (/usr/sbin/softwareupdate) parent pid 424 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python)
Sep  4 19:17:53 Mac-70cd60f2e479 Software Update[426]: SoftwareUpdate: Using catalog file://localhost/Library/Managed%20Installs/swupd/content/catalogs/apple_index.sucatalog
Sep  4 19:17:56 Mac-70cd60f2e479 Software Update[426]: JS: 10.8
Sep  4 19:17:56 Mac-70cd60f2e479 Software Update[426]: JS: model = iMac12,1
Sep  4 19:17:59 Mac-70cd60f2e479 suhelperd[431]: Acquired Lock: 0, 426, 0
Sep  4 19:17:59 Mac-70cd60f2e479 suhelperd[431]: Releasing Lock: 0, 426, 0
Sep  4 19:18:00 Mac-70cd60f2e479 Software Update[447]: SoftwareUpdate: Scan for client pid 447 (/usr/sbin/softwareupdate) parent pid 445 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python)
Sep  4 19:18:00 Mac-70cd60f2e479 Software Update[447]: SoftwareUpdate: Using catalog file://localhost/Library/Managed%20Installs/swupd/content/catalogs/local_download.sucatalog
Sep  4 19:18:01 Mac-70cd60f2e479 Software Update[447]: 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=0x7fe913602cd0 {NSLocalizedDescription=Line 1: Document is empty
}
Sep  4 19:18:01 Mac-70cd60f2e479 suhelperd[431]: Acquired Lock: 0, 447, 0
Sep  4 19:18:01 Mac-70cd60f2e479 suhelperd[431]: Releasing Lock: 0, 447, 0
Sep  4 19:18:01 Mac-70cd60f2e479 suhelperd[431]: Acquired Lock: 0, 447, 0
Sep  4 19:18:01 Mac-70cd60f2e479 suhelperd[431]: Releasing Lock: 0, 447, 0
Sep  4 19:18:13 Mac-70cd60f2e479 installd[427]: installd: Exiting.



The folder structure now exists in /swupd/ and there is a file with the appropriate name/location, but with a '.gz' extension.

---john---

Greg Neagle

unread,
Sep 4, 2012, 2:31:11 PM9/4/12
to munk...@googlegroups.com

On Sep 4, 2012, at 11:26 AM, John Staplehurst wrote:

> Mac-70cd60f2e479:~ admin$ sudo /usr/local/munki/managedsoftwareupdate --checkonly
> Managed Software Update Tool
> Copyright 2010-2012 The Munki Project
> http://code.google.com/p/munki
>
> Starting...
> Checking for available updates...
> No changes to managed software are available.
> Checking Apple Software Update catalog...
> Checking for available Apple Software Updates...
> <snip>
Can you be more specific about the filename/filepath?
Are you saying there is _no_:

/Library/Managed Installs/swupd/content/downloads/05/01/041-6566/ao2z6l1pxi4w85h4ugpswbqzmmtacuuefd/041-6566.English.dist

but there _is_ a:

/Library/Managed Installs/swupd/content/downloads/05/01/041-6566/ao2z6l1pxi4w85h4ugpswbqzmmtacuuefd/041-6566.English.dist.gz

?

I may not be seeing this because I use Reposado...

-Greg


>
> ---john---

John Staplehurst

unread,
Sep 4, 2012, 3:46:43 PM9/4/12
to munk...@googlegroups.com
Correct: the file
/Library/Managed Installs/swupd/content/downloads/05/01/041-6566/ao2z6l1pxi4w85h4ugpswbqzmmtacuuefd/041-6566.English.dist.gz
does exist.

/Library/Managed Installs/swupd/content/downloads/05/01/041-6566/ao2z6l1pxi4w85h4ugpswbqzmmtacuuefd/041-6566.English.dist
does not exist.

So I am seeing a file with ".gz" appended - in fact all the .dist files in the folder end in .gz
---john---

Rob Middleton

unread,
Sep 4, 2012, 9:05:20 PM9/4/12
to munk...@googlegroups.com
Could you send your:
/Library/Managed Installs/swupd/content/catalogs/apple_index.sucatalog file?

That will contain detail of the files we are then going to attempt to cache.

Rob.

Rob Middleton

unread,
Sep 4, 2012, 9:10:57 PM9/4/12
to munk...@googlegroups.com
Oh - skip that. I see the difference in contents of:

vs

Reposado must use the .sucatalog one

An immediate workaround would be to use the .sucatalog file as the 10.8 default, but I'd then like to support .dist.gz. (near the top of the appleupdates.py file)

Rob.

John Staplehurst

unread,
Sep 5, 2012, 4:11:09 AM9/5/12
to munk...@googlegroups.com
Is this a change in functionality from munkitools 0.8.2 to 0.8.3 or a change in the way Apple are providing the swscan catalog for 10.8? If the latter, do we think it's an error or a permanent change?

Rob mentions a workaround - would changing the swscan URL for 10.8 in appleupdates.py to the non-.gz version cause any functional problems for munkitools-0.8.3?

---john---

Rob Middleton

unread,
Sep 5, 2012, 5:56:31 AM9/5/12
to munk...@googlegroups.com
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.

Rob.

Greg Neagle

unread,
Sep 5, 2012, 11:09:20 AM9/5/12
to munk...@googlegroups.com

On Sep 5, 2012, at 1:11 AM, John Staplehurst wrote:

> Is this a change in functionality from munkitools 0.8.2 to 0.8.3 or a change in the way Apple are providing the swscan catalog for 10.8? If the latter, do we think it's an error or a permanent change?
>
> Rob mentions a workaround - would changing the swscan URL for 10.8 in appleupdates.py to the non-.gz version cause any functional problems for munkitools-0.8.3?

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

>
> ---john---

John Staplehurst

unread,
Sep 5, 2012, 11:10:52 AM9/5/12
to munk...@googlegroups.com
On Wednesday, 5 September 2012 10:56:38 UTC+1, Rob Middleton wrote:
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.

Is there a way (by script/whatever) to change the 10.8 catalog URL line in appleupdates.py other than editing the file on each deployed mac?

---john---

Greg Neagle

unread,
Sep 5, 2012, 11:13:29 AM9/5/12
to munk...@googlegroups.com
See my previous reply.

actually avoids the issue.

-Greg

John Staplehurst

unread,
Sep 5, 2012, 11:30:54 AM9/5/12
to munk...@googlegroups.com
Will be able to confirm (or not) that manually setting the SoftwareUpdateServerURL avoids the problem in approx 20 minutes. 

John Staplehurst

unread,
Sep 5, 2012, 11:55:02 AM9/5/12
to munk...@googlegroups.com

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

I can confirm that setting the preference as above solves the problem for now. I've submitted a bug report, so hopefully a change will be able to be made in the next revision of munkitools.

Thanks All! It's a good day at last, especially since Apple have announced the availability of their Education & Business VPP outside of the USA today.

---john--- 

Greg Neagle

unread,
Sep 5, 2012, 12:09:21 PM9/5/12
to munk...@googlegroups.com

On Sep 5, 2012, at 2:56 AM, Rob Middleton wrote:

> 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

And that's what I don't understand about this issue; we aren't handling .dist or .dis.gz files at all -- /usr/sbin/softwareupdate is.

And the Lion catalog also ends in .gz, and no-one has reported a similar issue with Munki and Lion. (this doesn't mean one doesn't exist...)

So there's something I still am not understanding about this issue. It's almost as if /usr/sbin/softwareupdate is not paying attention to the actual URLs in the catalog, but "translating" them based on some rule -- like "if the catalog URL doesn't end with .'gz', remove '.gz' from the end of .dist URLs".

-Greg

Greg Neagle

unread,
Sep 6, 2012, 1:04:37 AM9/6/12
to munk...@googlegroups.com
I was able to reproduce this today (using the latest Java update from Apple), but probably won't have time to look at it in detail until after I return from MacSysAdmin 2012...

If anyone else has time to look at this, I'd appreciate the help.

-Greg

Rob Middleton

unread,
Sep 6, 2012, 1:59:05 AM9/6/12
to munk...@googlegroups.com
Greg, you had the failure with .sucatalog.gz ? What version of the OS were you running at the time 10.8 or 10.8.1?

I haven't reproduced -- munki happily downloaded and installed updates on a 10.8.1 system with the default sucatalog.gz. I think there is an apple bug in the mix somewhere - from the first logs in this thread it looked to be without softwareupdate not within a preflight/postflight script of the package itself.

Munki should be able to handle the dist.gz with the exception of "GetDistributionForProductKey" (used for blocking apps) - but that will fail cleanly until it supports reading a gz compressed file.

I was running:
10.8.1
0.8.3.1634

I'm happy to fix if I can reproduce the error. Anyone else with input on how to reliably reproduce the error please chime in too!

Cheers,
Rob.

Gregory Neagle

unread,
Sep 6, 2012, 8:42:07 AM9/6/12
to munk...@googlegroups.com
On Sep 5, 2012, at 10:59 PM, Rob Middleton <rrmid...@gmail.com> wrote:

> Greg, you had the failure with .sucatalog.gz ?

Yes.

> What version of the OS were you running at the time 10.8 or 10.8.1?
>
10.8.1.

Greg Neagle

unread,
Sep 17, 2012, 3:18:14 PM9/17/12
to munk...@googlegroups.com
Now that I'm back from Sweden, I might have time to look at this again.

It's really looking like there's some bad logic in softwareupdate such that it can't properly handle non-gz-compressed catalogs that contain references to gz-compressed .dist files.

IOW, if the catalog does not end with .gz, then the .dist files cannot either.

But if I gzip a catalog and pass it to softwareupdate, I get this:

# softwareupdate -l --CatalogURL "file://localhost/Library/Managed%20Installs/swupd/content/catalogs/local_download.sucatalog.gz"
Software Update Tool
Copyright 2002-2010 Apple

The operation couldn’t be completed. (NSURLErrorDomain error -1011.)

So fixing this is not as simple as just gzipping the final cached catalog used with installing updates.

A fix that will work for now is to change the default CatalogURLs to the non-gz versions and to document that Munki (for now) should not be pointed at the gz versions of catalogs.

-Greg

Rob Middleton

unread,
Sep 17, 2012, 7:00:02 PM9/17/12
to munk...@googlegroups.com

On 18/09/2012, at 5:18 AM, Greg Neagle wrote:

> Now that I'm back from Sweden, I might have time to look at this again.
>
> It's really looking like there's some bad logic in softwareupdate such that it can't properly handle non-gz-compressed catalogs that contain references to gz-compressed .dist files.
>
> IOW, if the catalog does not end with .gz, then the .dist files cannot either.

This was not strictly the case. I could not reproduce the fault even though the local catalogs were not gzipped while referencing dist.gz.

(that's why I haven't fixed it -- "works for me")

So there is something else going on - what I'm unsure. Perhaps something odd like "missing files don't make softwareupdate fail for .dist but make it crash for .dist.gz" (I don't think it is that, but it seems to be something with a little more complexity).

Rob.
Reply all
Reply to author
Forward
0 new messages