Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Help: Software Update for OS X Lion Server

After having a problem with my software update service for some time now, I thought I would implement the fix at


http://support.apple.com/kb/TS3867


entitled " Lion Server: Software Update Server may not provide Mac OS X v10.7 software updates after upgrade"

Unfortunately it seems to have broken the service!

I now get the error

<Error>: Unable to retrieve catalog(s) from the Apple server


and


Syntax error on line 288 of /etc/swupd/swupd.conf:

DocumentRoot must be a directory


The offending script is in the apple support document which I copy and pasted.

Xserve, Mac OS X (10.7.3)

Posted on Mar 25, 2012 6:34 PM

Reply
Question marked as Best reply

Posted on Mar 26, 2012 10:53 AM

Just fixed this myself.


SWUPD is expecting a directory within the one you chose, called "html".

Example: /Volumes/XSAN/SWUPD/html


It will not create "html" if the directory doesn't exist.


Create the folder "html" then in terminal do this:


sudo chown -R _softwareupdate:_softwareupdate /path/to/the/folder


Example: sudo chown -R _softwareupdate:_softwareupate /Volumes/XSAN/SWUPD

##do not include/html. the -R means recursive and forces the same ownership on all contained directories.

2 replies
Question marked as Best reply

Mar 26, 2012 10:53 AM in response to traceee

Just fixed this myself.


SWUPD is expecting a directory within the one you chose, called "html".

Example: /Volumes/XSAN/SWUPD/html


It will not create "html" if the directory doesn't exist.


Create the folder "html" then in terminal do this:


sudo chown -R _softwareupdate:_softwareupdate /path/to/the/folder


Example: sudo chown -R _softwareupdate:_softwareupate /Volumes/XSAN/SWUPD

##do not include/html. the -R means recursive and forces the same ownership on all contained directories.

Mar 26, 2012 4:57 PM in response to kdglover

Hi kdglover


Your post helped me even though it wasn't a fix because it helped me see what I had done wrong which was name the wrong location for the swupd, which is kind of weird because I had used a screen shot taken just before to rekey those details. So now my update server is talking to apple again, but I am still not getting all the updates. It now acknowledges the lion updates in the update list, (new since I implemented the fix) but won't copy or enable them.


The log still says missing version string for a range of products.

Help: Software Update for OS X Lion Server

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