5 Replies Latest reply: Jul 8, 2012 11:24 PM by DeeBeeMac
BiscuitBarrel Level 1 Level 1 (0 points)

Dear Macsters

 

I have recently set up Lion Server Software Update service. It is running and downloading away quite happily. I am trying to get my unmanaged Lion clients to pick up their updates from the server, but without success. All Macs inclduing the server are running 10.7.4, and are on the same network (but are not managed by the server).

 

I have attempted to get the clients to talk to the server by editing the com.apple.SoftwareUpdate.plist file with the following Terminal command:

 

sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://MiniServer.local:8088/index.sucatalog

 

My Mini server is called 'MiniServer' - not exactly imaginative eh?

 

Question: Is this the correct CatalogURL to use? I have checked the /var/swupd/html folder, and there are three aliases called index-leopard-snowleopard.merged-1.sucatalog, index-leopard.merged-1.sucatalog, index-lion-snowleopard-leopard.merged-1.sucatalog. Should there be an alias called index.sucatalog?

 

 

I have confirmed that the com.apple.SoftwareUpdate.plist file has picked up this edit correctly.

 

When I run the software update on the client, it scans for a few seconds and tells me I am up to date, even though I know there are updates on the Server for it.

 

The Software Update Access Log shows that software update on the client is talking to the MiniServer with the following:

 

fe80::223:6cff:fe94:bdb - - [01/Jun/2012:19:15:29 +0200] 80 GET "/index.sucatalog" 302 384 "-" "Software%20Update/359 CFNetwork/520.4.3 Darwin/11.4.0 (x86_64) (MacBookPro5%2C1)"

fe80::223:6cff:fe94:bdb - - [01/Jun/2012:19:15:29 +0200] 80 GET "/cgi-bin/SoftwareUpdateServerGetCatalog" 200 57847 "-" "Software%20Update/359 CFNetwork/520.4.3 Darwin/11.4.0 (x86_64) (MacBookPro5%2C1)"

fe80::223:6cff:fe94:bdb - - [01/Jun/2012:19:15:29 +0200] 80 GET "/content/downloads/28/10/041-5297/KmrkhBJdf3vgrvm2KYr4Q6BbLk63BdFVP5/041-5297. English.dist" 200 1334 "-" "Software%20Update/359 CFNetwork/520.4.3 Darwin/11.4.0 (x86_64) (MacBookPro5%2C1)"

 

However, the error log shows there is a problem:

 

[Fri Jun 01 19:15:29 2012] [error] [client fe80::223:6cff:fe94:bdb] Jun  1 19:15:29 miniserver.home.private SoftwareUpdateServerGetCatalog[2484] <Debug>: REQUEST FOR CATALOG: /index-lion-snowleopard-leopard.merged-1.sucatalog

[Fri Jun 01 19:15:29 2012] [error] [client fe80::223:6cff:fe94:bdb] Jun  1 19:15:29 miniserver.home.private SoftwareUpdateServerGetCatalog[2484] <Debug>: HTTP HOST: miniserver.local:8088

[Fri Jun 01 19:15:29 2012] [error] [client fe80::223:6cff:fe94:bdb] Jun  1 19:15:29 miniserver.home.private SoftwareUpdateServerGetCatalog[2484] <Debug>: DOCUMENT ROOT: /var/db/swupd/html

[Fri Jun 01 19:15:29 2012] [error] [client fe80::223:6cff:fe94:bdb] Jun  1 19:15:29 miniserver.home.private SoftwareUpdateServerGetCatalog[2484] <Debug>: LINES WRITTEN: 1242

 

I have restarted the Software Update Service, repaired permissions, restarted the server without any success.

 

I have really run out of ideas on this - any inputs would be much appreciated.

 

 

I'm being greedy now, but in the event I get this thing running, how would I point my Software Update Server at itself to get its own updates?

 

Thanks in advance and regards,

 

BB

  • 1. Re: Can not get Lion clients to access Lion SUS
    BiscuitBarrel Level 1 Level 1 (0 points)

    Just an update on some more of my twiddlings. I now have my machines talking to the software update server without generating errors. I used the terminal command:

     

    sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURLhttp://MiniServer.local:8088/index-lion-snowleopard-leopard.merged-1.sucatalog

     

    Software update on the client, which now shows the (miniserver.local) in its title bar, takes only about 1s to come back with no updates available. The only problem is that I know there are updates waiting.

  • 2. Re: Can not get Lion clients to access Lion SUS
    DeeBeeMac Level 1 Level 1 (0 points)

    I seem to be facing a similar issue, although i know there are updates waiting, the client always returns no updates available.

     

    Did you manage to sort this issue out?

     

    These are the errors i am getting in the software update error log

     

    [Wed Jun 20 11:58:47 2012] [error] [client xxx.xxx.x.xx] Attempt to serve directory: /var/db/swupd/html/content/downloads

    [Wed Jun 20 14:04:38 2012] [error] [client xxx.xxx.x.xx] Jun 20 14:04:38 <FQDN Address> SoftwareUpdateServerGetCatalog[11916] <Debug>: REQUEST FOR CATALOG: /index-lion-snowleopard-leopard.merged-1.sucatalog

    [Wed Jun 20 14:04:38 2012] [error] [client xxx.xxx.x.xx] Jun 20 14:04:38 <FQDN Address> SoftwareUpdateServerGetCatalog[11916] <Debug>: HTTP HOST:  <FQDN Address>:8088

    [Wed Jun 20 14:04:38 2012] [error] [client xxx.xxx.x.xx] Jun 20 14:04:38 <FQDN Address> SoftwareUpdateServerGetCatalog[11916] <Debug>: DOCUMENT ROOT: /var/db/swupd/html

    [Wed Jun 20 14:04:38 2012] [error] [client xxx.xxx.x.xx] Jun 20 14:04:38 <FQDN Address> SoftwareUpdateServerGetCatalog[11916] <Debug>: LINES WRITTEN: 1646

  • 3. Re: Can not get Lion clients to access Lion SUS
    BiscuitBarrel Level 1 Level 1 (0 points)

    Dear DeeBeeMac

     

    Unfortunately, no. In the end it all appeared to run OK. When I would run Software Update on a client pointed at my server it would show the server as the source (in the title bar). I would not get any errors in the Software Update Server error log, and the client would appear to be accessing the catalog at the URL you specified under the access log. The only problem was that it simply would not detect any updates. I suspect that there are some corrupted permissions somewhere, since everytime I repair permissions, some of the software update folders are coming back with the wrong permissions. I fix them and next time software update runs they are unfixed again. I do not know why you are still getting errors with the URL you are using - I presume you are using Lion as your server - there are different URLs for 10.5, 6 and 7? I have spent days on this and have now given up. Several commentators have said that this service is really brittle. It only took me ten minutes to set this up under 10.4 on an XServer, so I don't think it is me. I could suggest lots of things for you to try, but I fear I would waste your time, since nothing worked for me. If you do manage to get your service working, please post back with any tips.

    Thanks and regards, BB

  • 4. Re: Can not get Lion clients to access Lion SUS
    BiscuitBarrel Level 1 Level 1 (0 points)

    Just an update on my SUS problems. Well I fixed it - only took three days of faffing about. I did so many things to it, that I am unsure of what actually pushed it over the line. However, I think my last actions were key. I followed the procedure set out in the apple knowlege-base article: http://support.apple.com/kb/HT4069 and then I configured the software update server to download all new updates and both copy and enable said updates. Originally, I'd attempted to avoid doing this, and had been picking and choosing updates manually, as otherwise, it would download at lot of stuff I didn't want/need, and my interweb connection comes via a piece of wet string. I think this was the cause of the problem as I read a post where someone solved their problems doing the above. Five days on I am still downloading stuff from the Apple servers, but at least my clients are now picking up updates. So my advice to anyone encountering difficulties with updates or possibly a fritzed update server  - follow the knowledge-base article above, configure the Software Update Server as per my settings, sit back and wait. This procedure will cause everything to download again - so you'll burn through a lot of download. I know 10-20 GB is a mere bagatelle to folks in Western countries, but here in South Africa a 1GB per month plan is considered ostentatious and my download speed is 1Mb/s - it is ADSL, but not as most folks know it.

     

    I am running a Lion server and all my clients are Lion, so I have configured my clients to look for the SUS catalog using the following command line at the Terminal (enter it as a single line);

     

    sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://miniserver.local:8088/index-lion-snowleopard-leopard.merged-1.sucatalog

     

    Note miniserver.local is the name of my server (edit to suit yours) and 8088 is the default port which is set by the Software Update Server. This catalogURL is different for 10.5, 10.6 and 10.7 clients - twould be nice if Apple standardised it.

    Regards, BB

  • 5. Re: Can not get Lion clients to access Lion SUS
    DeeBeeMac Level 1 Level 1 (0 points)

    That's Great @BiscuitBarrel, i long gave up on the Apple SUS and moved over to Reposado running out of Fusion on the Mac Server. I just can't keep faith with that one service on Lion Server. The only downside to Reposado is downloading every update on the server which may not work for you (About 100GB).

     

    Regards,

    DBM