Reposado catalog crashes 10.6 software update

73 views
Skip to first unread message

Francis Beaumier

unread,
Mar 14, 2013, 3:49:38 PM3/14/13
to reposado
Hi folks,

I tried to search the archives, but I didn't see any post about this.
We have a reposado server that is just setup to mirror Apple software
updates. When I tell munki or softwareupdate to use the following
URL:

http://server.example.com/reposado/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog

... on a freshly imaged 10.6.8 machine, Software update crashes when
trying to list the updates. It would appear that it's choking on the
iTunes 11.0.2 update, since it stopped crashing after installing that
one via Apple's software update server. Has anyone seen this?


--Francis

Mike Solin

unread,
Mar 14, 2013, 4:39:35 PM3/14/13
to repo...@googlegroups.com
This is probably not related, but...I see you're not using any branches. Could using Apple's catalogs directly cause any issues?

I'm curious, because that's how I used it initially. Now, I have a single branch, and use this after repo_sync:

repoutil --add-product all BRANCH_NAME

then, use this to delete all old updates, since I'm just mirroring Apple's current updates at the moment:

repoutil --purge-product all-deprecated

It's a couple extra steps, but seems to be the intended use.

More related to your question, does the softwareupdate command line tool also crash when checking for updates? I had a similar issue a few days ago where the GUI didn't list any updates on a fresh 10.8.2 install, but softwareupdate did.

Mike

mi...@mikesolin.com / @flammable
http://mikesolin.com
> --
> You received this message because you are subscribed to the Google Groups "reposado" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to reposado+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Francis Beaumier

unread,
Mar 14, 2013, 4:49:23 PM3/14/13
to repo...@googlegroups.com
Hi Mike,

Thanks for your reply. I was under the impression that I didn't need
a branch, but I can certainly try what you suggest and see if that
solves the issue.

> does the softwareupdate command line tool also crash when checking for updates?

softwareupdate also crashes in this case.

Sincerely,
Francis Beaumier


2013/3/14 Mike Solin <mi...@mikesolin.com>:

Gregory Neagle

unread,
Mar 14, 2013, 4:50:05 PM3/14/13
to repo...@googlegroups.com

On Mar 14, 2013, at 1:49 PM, Francis Beaumier <francis....@gmail.com> wrote:

> Hi Mike,
>
> Thanks for your reply. I was under the impression that I didn't need
> a branch,

You don't.

Gregory Neagle

unread,
Mar 14, 2013, 4:51:22 PM3/14/13
to repo...@googlegroups.com
We still have a fair number of 10.6.8 machines, and have been offering the iTunes 11.0.2 update for a few weeks, and have not seen that issue here.

-Greg

Francis Beaumier

unread,
Mar 14, 2013, 5:10:18 PM3/14/13
to repo...@googlegroups.com
> We still have a fair number of 10.6.8 machines, and have been offering the iTunes 11.0.2 update for a few weeks, and have not seen that issue here.

Very odd! Any other troubleshooting steps you can think of?

Sincerely,
Francis Beaumier


2013/3/14 Gregory Neagle <gregn...@mac.com>:

Greg Neagle

unread,
Mar 14, 2013, 5:12:25 PM3/14/13
to repo...@googlegroups.com
Have you been looking at the logs?

Have you done anything to confirm that the iTunes 11.0.2 update is the trigger?
Have you created a branch with _just_ the iTunes 11.0.2 update and pointed a test client at it?

-Greg

Mike Solin

unread,
Mar 14, 2013, 5:13:18 PM3/14/13
to repo...@googlegroups.com
Thanks Greg, good to know!

Francis Beaumier

unread,
Mar 15, 2013, 5:18:48 PM3/15/13
to repo...@googlegroups.com
Hi Greg,

Today I tried a new fresh 10.6.8 install. I set the CatalogURL to the
aforementioned URL and it crashed. I then manually installed iTunes
11.0.2 and reran Software Update. No crash. I will try your other
suggests next week. That's as far as I could get before we had to
shut down reposado as part of a planned outage.

Sincerely,
Francis Beaumier


2013/3/14 Greg Neagle <greg....@disneyanimation.com>:

Greg Neagle

unread,
Mar 17, 2013, 2:32:55 PM3/17/13
to repo...@googlegroups.com
Interested to see what you discover, especially since we have not seen this issue here, nor have I seen any other reports of it.

-Greg

Francis Beaumier

unread,
Mar 18, 2013, 5:50:47 PM3/18/13
to repo...@googlegroups.com
I really wanted to work on this today, but other things pulled rank.
The suspense is killing me, at least :-)

Sincerely,
Francis Beaumier


2013/3/17 Greg Neagle <greg....@disneyanimation.com>:

Gregory Neagle

unread,
Mar 18, 2013, 7:13:47 PM3/18/13
to repo...@googlegroups.com
And a bit of proof that we are not seeing this issue -- I found a few machines here still running 10.6.8 and still running older versions of iTunes:

hostname1:~ root# sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.8
BuildVersion: 10K549
hostname1:~ root# softwareupdate -l http://su.XXXXXX.com/index_release.sucatalog
Software Update Tool
Copyright 2002-2009 Apple

Software Update found the following new or updated software:
* JavaForMacOSX10.6-14.0
Java for Mac OS X 10.6 Update 14 (14.0), 70742K [recommended]
* SecUpd2013-001-1.0
Security Update 2013-001 (1.0), 325470K [recommended] [restart]
* iTunesXPatch-11.0.2
iTunes (11.0.2), 52873K [recommended]
hostname1:~ root# exit

"hostname1" has iTunes 11.0.1 installed and therefore is offered "iTunesXPatch-11.0.2".


hostname2:~ root# sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.8
BuildVersion: 10K549
hostname2:~ root# softwareupdate -l http://su.XXXXXX.com/index_release.sucatalog
Software Update Tool
Copyright 2002-2009 Apple

Software Update found the following new or updated software:
* JavaForMacOSX10.6-14.0
Java for Mac OS X 10.6 Update 14 (14.0), 70742K [recommended]
* iTunesX-11.0.2
iTunes (11.0.2), 190168K [recommended]
* SecUpd2013-001-1.0
Security Update 2013-001 (1.0), 325470K [recommended] [restart]
hostname2:~ root#

"hostname2" has iTunes 11.0 installed and s offered "iTunesX-11.0.2".

iTunesXPatch vs. iTunesX can be thought as similar to OS X "Delta" and "Combo" updates.

-Greg

Ken Elliott

unread,
Mar 18, 2013, 10:03:15 PM3/18/13
to repo...@googlegroups.com
Confirmed reposdao is not at fault.

Yesterday
Installed 10.6.3, on MacBookPro4,1
updated via reposado using "Software Update…" (under Apple Menu)
all Apple updates, including 10.6.8 & iTunes 11.0.2

Francis Beaumier

unread,
Mar 19, 2013, 5:31:06 PM3/19/13
to repo...@googlegroups.com
Hi folks,

I found the problem! Teacher always said show your work, so here's what I did:

> Have you done anything to confirm that the iTunes 11.0.2 update is the trigger?

I did two tests of that. I installed updates while connected to
Apple's servers until the problem went away when connected to
reposado. Then on Friday I installed just iTunes 11.0.2 and the
problem went away with the next check of the reposado catalog. Oh but
wait ... when I set the iTunes version back to 11.0 (as Greg did here:
https://groups.google.com/group/munki-dev/msg/1e4a179c34060328 ), I
failed to replicate the crash. Curious.

> Have you created a branch with _just_ the iTunes 11.0.2 update and pointed a test client at it?

Hmmm OK fair enough; I'll do that.

First let's see what things iTunes we have ....
./repoutil --products | grep iTunes
061-3453 iTunes Producer 1.6
2007-11-29 [] (Deprecated)
041-5144 iTunes Producer
2.6.0 2012-03-28 [] (Deprecated)
zzzz041-6245 iTunes
10.6.3 2012-10-11 []
041-8613 iTunes Producer
2.8.0 2012-11-05 [] (Deprecated)
zzzz041-8972 iTunes
11.0.1 2012-12-13 [] (Deprecated)
zzzz041-9597 iTunes
2013-02-19 [] (Deprecated)
zzzz041-9596 iTunes
2013-02-19 [] (Deprecated)
zzzz041-9793 iTunes
2013-02-21 []
zzzz041-9792 iTunes
2013-02-21 []
041-8900 iTunes Producer
2.9.0 2013-03-06 []

So let's see what we have here ... zzzz041-9793 and zzzz041-9792 must
be the combo and delta for the latest iTunes 11. But we've also got
iTunes 10 there. I know full well that the combo update for iTunes
should update everything, so that extra iTunes 10 update is making me
suspicious, especially since Greg is updating from iTunes 10 (I'm
coming from iTunes 9). Oh well, let's include everything:

./repoutil --add-product zzzz041-6245 zzzz041-9793 zzzz041-9792
041-8900 justitunes

Aaaaand crash. It's really quite efficient when there's only one
thing to install!

> Have you been looking at the logs?

Well yes of course ... the logs on the Mac show me nothing but the
crash. And why would the reposado logs be of any use? -- it's just a
file on a Web server at this point. Oh wait! The apache2 error logs?

[Tue Mar 19 08:51:53 2013] [error] [client 10.0.0.1] File does not
exist: /storage/reposado/html/content/downloads/50/49/zzzz041-6245/uif0ktml8jgzve8yfgg7sra78c1hx8mlmx/iTunesX.pkm

Well son of a gun! So what if I try to download that file from Apple?
It's an empty file. That means that the solution is so close, I can
touch it!

touch /storage/reposado/html/content/downloads/50/49/zzzz041-6245/uif0ktml8jgzve8yfgg7sra78c1hx8mlmx/iTunesX.pkm

Hey! No more crashing!

So the question now is: Is the a curl issue with zero-length files, a
reposado issue, or the side-effect of SuSE plus the other two? I'd be
interested to see whether or not others have that file. I will try to
fit in some more investigating.

Fun!

Sincerely,
Francis Beaumier


2013/3/18 Ken Elliott <ken...@gmail.com>:

Greg Neagle

unread,
Mar 19, 2013, 5:38:32 PM3/19/13
to repo...@googlegroups.com
Interesting. That file is definitely not zero-length here:

# cat ../swupd/html/content/downloads/50/49/zzzz041-6245/uif0ktml8jgzve8yfgg7sra78c1hx8mlmx/iTunesX.pkm
<?xml version="1.0"?>
<pkg-info format-version="2" relocatable="true" deleteObsoleteLanguages="true" identifier="com.apple.pkg.iTunesX" overwrite-permissions="no" auth="root" postinstall-action="none" version="10.6.3.0.1.1188253749">
<payload installKBytes="271974" numberOfFiles="7697"/>
<scripts>
<preinstall file="./preinstall"/>
<postinstall file="./postinstall"/>
</scripts>
<groups>
<group>com.apple.findsystemfiles</group>
</groups>
<bundle-version>
<bundle CFBundleVersion="10.6.3" CFBundleShortVersionString="10.6.3" SourceVersion="10632501" id="com.apple.iTunes" path="./Applications/iTunes.app"/>
<bundle CFBundleVersion="165" CFBundleShortVersionString="165" SourceVersion="1650000" id="com.apple.iTunes.help" path="./Applications/iTunes.app/Contents/Resources/iTunes.help"/>
<bundle CFBundleVersion="10.4" CFBundleShortVersionString="10.4" SourceVersion="10632501" id="com.apple.iTunes.iPodUpdater" path="./Applications/iTunes.app/Contents/Frameworks/iPodUpdater.framework"/>
<bundle CFBundleVersion="10.6.3" CFBundleShortVersionString="10.6.3" SourceVersion="10632501" id="com.apple.iTunesHelper" path="./Applications/iTunes.app/Contents/MacOS/iTunesHelper.app"/>
</bundle-version>
</pkg-info>

-Greg

Francis Beaumier

unread,
Mar 19, 2013, 5:41:24 PM3/19/13
to repo...@googlegroups.com
But it is from Apple at the moment, right?

http://swcdn.apple.com/content/downloads/50/49/zzzz041-6245/uif0ktml8jgzve8yfgg7sra78c1hx8mlmx/iTunesX.pkm

.. I'm not completely crazy?

Sincerely,
Francis Beaumier


2013/3/19 Greg Neagle <greg....@disneyanimation.com>:

A.E. van Bochoven

unread,
Mar 19, 2013, 5:46:15 PM3/19/13
to repo...@googlegroups.com
File exists and looks the same as Greg's here (nl). Could be a CDN issue, that sure happened before.

-Arjen

Greg Neagle

unread,
Mar 19, 2013, 5:58:51 PM3/19/13
to repo...@googlegroups.com
% curl http://swcdn.apple.com/content/downloads/50/49/zzzz041-6245/uif0ktml8jgzve8yfgg7sra78c1hx8mlmx/iTunesX.pkm
<?xml version="1.0"?>
<pkg-info format-version="2" relocatable="true" deleteObsoleteLanguages="true" identifier="com.apple.pkg.iTunesX" overwrite-permissions="no" auth="root" postinstall-action="none" version="10.6.3.0.1.1188253749">
<payload installKBytes="271974" numberOfFiles="7697"/>
<scripts>
<preinstall file="./preinstall"/>
<postinstall file="./postinstall"/>
</scripts>
<groups>
<group>com.apple.findsystemfiles</group>
</groups>
<bundle-version>
<bundle CFBundleVersion="10.6.3" CFBundleShortVersionString="10.6.3" SourceVersion="10632501" id="com.apple.iTunes" path="./Applications/iTunes.app"/>
<bundle CFBundleVersion="165" CFBundleShortVersionString="165" SourceVersion="1650000" id="com.apple.iTunes.help" path="./Applications/iTunes.app/Contents/Resources/iTunes.help"/>
<bundle CFBundleVersion="10.4" CFBundleShortVersionString="10.4" SourceVersion="10632501" id="com.apple.iTunes.iPodUpdater" path="./Applications/iTunes.app/Contents/Frameworks/iPodUpdater.framework"/>
<bundle CFBundleVersion="10.6.3" CFBundleShortVersionString="10.6.3" SourceVersion="10632501" id="com.apple.iTunesHelper" path="./Applications/iTunes.app/Contents/MacOS/iTunesHelper.app"/>
</bundle-version>
</pkg-info>

Sorry!

-Greg

Francis Beaumier

unread,
Mar 19, 2013, 6:00:31 PM3/19/13
to repo...@googlegroups.com
Crazy! I'm gettin' nuttin

Gregory Neagle

unread,
Mar 19, 2013, 6:01:15 PM3/19/13
to repo...@googlegroups.com
% host swcdn.apple.com
swcdn.apple.com is an alias for swcdn.apple.com.akadns.net.
swcdn.apple.com.akadns.net is an alias for swcdn.apple.com.edgesuite.net.
swcdn.apple.com.edgesuite.net is an alias for a950.gi3.akamai.net.
a950.gi3.akamai.net has address 165.254.157.155
a950.gi3.akamai.net has address 165.254.157.195

Yours are probably different.

-Greg

Francis Beaumier

unread,
Mar 19, 2013, 6:04:53 PM3/19/13
to repo...@googlegroups.com
Yorp. No love from Apple here!

$ host swcdn.apple.com
a950.gi3.akamai.net has address 205.213.110.15
a950.gi3.akamai.net has address 205.213.110.16

Sincerely,
Francis Beaumier


2013/3/19 Gregory Neagle <gregn...@mac.com>:

Francis Beaumier

unread,
Mar 20, 2013, 12:28:56 PM3/20/13
to repo...@googlegroups.com
So is it customary to file a bug report at this point or do you
usually just wait for the CDN to fix itself?

Sincerely,
Francis Beaumier


2013/3/19 Francis Beaumier <francis....@gmail.com>:
Reply all
Reply to author
Forward
0 new messages