Software update on server just says 'waiting'

Hi all,


I have set up a software update server on my ML server. It's set to Automatic.


Problem is that when I go to the Updates tab, all the updates released since 27th November just says 'waiting'. It's been saying that for a while. Any ideas why please?

OS X Mountain Lion (10.8.2)

Posted on Dec 3, 2012 1:53 PM

Reply
14 replies

Dec 19, 2012 5:52 AM in response to Newham Bridge Administrator

Actually, that seems to have done the trick. I turned off the SU service in server app and deleted the Software Update folder at /Library/Server/Software Update and I also deleted the swupd folder at /etc/swupd/


Reopened Server app and turned the service on without any errors. Software update had a message saying the the list was being built (can't remember the exact message). The message was on for a while before I went for lunch so an hour and a little while later I came back and the list was populated with software updates with the status of 'waiting' which prompted me to make my last post.


I then tinkered with a few settings, set SU to manual mode and noticed that updates in the list became available, this raised my hopes. I clicked 'download and enable' on a few recent updates and the status changed back to "waiting". This made me sad.


A few seconds later the update at the top of this list changed its status to downloading and it's been working its way through the download list nicely for the last few minutes.

Jun 7, 2013 2:27 PM in response to takh

One thing to check is the log file. It likely indicates why the updates have stopped downloading.

/var/log/swupd/swupd_syncd_log


I suspect there is a good chance that there is not enough free space according to the parameters.


For example:

<Warning>: Download cancelled for product 091-5293 (Chinese Word list Update 1.7)

<Warning>: There is insufficient free space to host additional downloads.

<Warning>: The volume for /Library/Server/Software Update/Data/

<Warning>: has reached the mimimum free space reserved for this volume type

<Warning>: * volume reserve (system) : 20%

<Warning>: * updates volume free space : 17%

Sep 3, 2013 2:27 AM in response to Newham Bridge Administrator

Is it a case of editing the /Library/Server/Software Update/Config/swupd.plist?


There's a line here...



<key>portToUse</key>

<integer>8088</integer>

<key>serviceState</key>

<true/>

<key>syncBandwidth</key>

<integer>0</integer>

<key>systemVolumeReserve</key>

<integer>20</integer>

<key>updatesDocRoot</key>

<string>/Library/Server/Software Update/Data/</string>

<key>valueBandwidth</key>

<integer>0</integer>

<key>volumeReserve</key>

<integer>5</integer>


Looks like that line points to the storage area. Is it as simple as changing that line and hey presto?

Sep 3, 2013 7:45 AM in response to Newham Bridge Administrator

This is a handy command to issue, shows more detailed status of the Software Update processes and the configuration. It lists many of the parameters, I suspect many can then be modified with the serveradmin command line utility.


sudo serveradmin fullstatus swupdate


I had previously copied all my data to a larger secondary volume. Then simply used the ln command to link it from the default location to the new location. That worked for a while but then quit for some reason.


Actually changing the parameter using serveradmin seems to be the proper way to do it.


i.e.: sudo serveradmin settings swupdate:updatesDocRoot = "/Volumes/Data/SoftwareUpdate/Data/"


In this example we have a volume labeled 'Data'. And on that volume is folder called "SoftwareUpdate". We wanted the update data stored there.

Sep 6, 2013 3:31 AM in response to Newham Bridge Administrator

Seems to be ticking away now downloading following your instructions, thank you!


Something to note. I found that the docroot attribute got reset occasionally.

What worked was turning the service off. Changing the attribute and turning it back on. I checked the /Library/Server/Software Update/Config/swupd.plist to make sure the settings had stuck and also check in terminal.


Thank you once again. Not my post so can't mark this as helping me.

Dec 10, 2015 8:17 AM in response to Newham Bridge Administrator

Indirectly, you solved this issue for me. On my server, Software Update was 'waiting' because there was less than 20% (95GB on a 500GB volume) free. Reserving 100GB seems a bit excessive, so I...

1) Shut down Software Update

2) Edited /Library/Server/Software Update/Config/swupd.plist to change the systemVolumeReserve to 10 (10% == 50GB)

3) Restarted Software Update

Now the downloads have resumed.

Thanks!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Software update on server just says 'waiting'

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.