gilsurf

Q: SUS on 10.6 server for 10.8 clients?

With the move of software update to the Mac App store in Mountain Lion, will SUS on 10.6 server update 10.8 clients?

X Serve, Mac OS X (10.6.8)

Posted on Jun 13, 2012 5:37 PM

Close

Q: SUS on 10.6 server for 10.8 clients?

  • All replies
  • Helpful answers

Previous Page 2
  • by Sebastien S.,

    Sebastien S. Sebastien S. Aug 12, 2012 3:05 AM in response to xiao zhong
    Level 1 (39 points)
    iPhone
    Aug 12, 2012 3:05 AM in response to xiao zhong

    Yes I should add that I tested with adding the missing text so the line is the same than previous but with a different index location. But it was not working.

    But now you wrote a reply I tested again and it works !

    It's strange but maybe I should had restarted the mac before (with the edit of the plist).

    So it works and I had the HP printer updates correctly took from my server !

     

    Thanks !

  • by Mark23,

    Mark23 Mark23 Sep 9, 2012 11:43 PM in response to gilsurf
    Level 3 (975 points)
    Sep 9, 2012 11:43 PM in response to gilsurf

    Look here: Point clients to a Software Update server and look in the sidebar for more SUS info...

  • by NightFlash,

    NightFlash NightFlash Sep 28, 2012 3:11 AM in response to gilsurf
    Level 1 (0 points)
    Sep 28, 2012 3:11 AM in response to gilsurf

    I changed all this told to do in this post.

    Everything on the server seems fine, the lines are still in the files and when I check the SUS service I can see that the 10.8.* updates has been downloaded on the server.

     

    But the clients still says cannot connect to the server error 1004

    hde tried multiple computers and all OS's except 10.8 is working.

     

    I can still update 10.6 and 10.7 clients.

     

    have also tried to login and logout on apple store accoutns no luck there either.

    have restarted the server and reinstalled clients. Not much more I can test that I know of.

     

    Anyone got any suggestions?

  • by Sebastien S.,

    Sebastien S. Sebastien S. Sep 28, 2012 3:18 AM in response to NightFlash
    Level 1 (39 points)
    iPhone
    Sep 28, 2012 3:18 AM in response to NightFlash

    If you made the correct rewrite rules but with the 10.7 server needs another format (as tols before)

    RewriteCond %{HTTP_USER_AGENT} Darwin/12

        RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-mountainlion-lion-snow leopard-leopard.merged-1.sucatalog

     

    And be carefull that the client points to …:8088/index.sucatalog only via WorkGroup Manager or Profile Manager settings. If you made it manually, then the URL is

    http://SERVER.local:8088/index-mountainlion-lion-snowleopard-leopard.merged-1.su catalog

     

    If on the client you put this URL in your Safari, do you see the calatog ? (replace of course SEVER by your server and SERVER.local by your full server name if needed).

  • by NightFlash,

    NightFlash NightFlash Sep 28, 2012 3:52 AM in response to gilsurf
    Level 1 (0 points)
    Sep 28, 2012 3:52 AM in response to gilsurf

    The server is 10.6.8 sho shall I still use the revised RewriteRule on the 10.8 line

     

        RewriteCond %{HTTP_USER_AGENT} Darwin/10

        RewriteRule ^/index\.sucatalog$ /index-leopard-snowleopard.merged-1.sucatalog

        RewriteCond %{HTTP_USER_AGENT} Darwin/11

        RewriteRule ^/index\.sucatalog$ /index-lion-leopard-snowleopard.merged-1.sucatalog

        RewriteCond %{HTTP_USER_AGENT} Darwin/12

        RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-mountainlion-l ion-snow leopard-leopard.merged-1.sucatalog

     

    like this?

     

    I'm using a DNS server to send all clients to the correct update server.

     

    Still same error with revies line.

     

    And if I try to go to the link with safari I get page cannot be viewed on all versions not only the 10.8. <-ignore I forgot the port 8088 =)

  • by NightFlash,

    NightFlash NightFlash Sep 28, 2012 4:24 AM in response to gilsurf
    Level 1 (0 points)
    Sep 28, 2012 4:24 AM in response to gilsurf

    Seems like 10.8 is ignoring the port and the http thingie cause the logs on the 10.8 computer is saying cannot find

     

    https://swscan.apple.com/content/catalogs/other/index-mountainlion-lion-snowleop ard-leopard.merged.1-sucatalog

     

    instead of

     

    http://swscan.apple.com:8088/content/catalogs/other/index-mountainlion-lion-snow leopard-leopard.merged.1-sucatalog

     

    As the 10.6 computer does.

     

    So of cource it can't find the files but how do I change so it looks at the right place.

  • by xiao zhong,

    xiao zhong xiao zhong Sep 28, 2012 2:19 PM in response to NightFlash
    Level 1 (0 points)
    Sep 28, 2012 2:19 PM in response to NightFlash

    On one your Mountain Lion client, try run:

     

    sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL “ http://updateserverIPorDNS:8088/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog”

    sudo chown root:wheel /Library/Preferences/com.apple.SoftwareUpdate.plist

    sudo chmod 644 /Library/Preferences/com.apple.SoftwareUpdate.plist

    sudo rm -rf /Library/Preferences/com.apple.SoftwareUpdate.plist.lockfile &>/dev/null

    sudo defaults write /Library/Preferences/com.apple.appstore restrict-store-softwareupdate-only -bool yes

  • by Jascha Lee,

    Jascha Lee Jascha Lee Dec 21, 2012 8:38 AM in response to gilsurf
    Level 1 (5 points)
    Dec 21, 2012 8:38 AM in response to gilsurf

    Here's what worked for me:

     

    Use Server Admin to stop the Software Update service

     

    edit /etc/swupd/swupd.plist, add the following line:

     

    <string>index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string>

     

    between the <array> </array> delimiters

     

    edit /etc/swupd/swupd.conf, add the following two lines to the existing list in the <IfModule mod_rewrite.c>: stanza

     

    RewriteCond %{HTTP_USER_AGENT} Darwin/12

    RewriteRule ^/index\.sucatalog$ /index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog

     

    From the terminal, run:

     

    sudo chflags uchg /etc/swupd/swupd.conf


    Start Software Update Service, and you are done!


  • by Daniel Ball,

    Daniel Ball Daniel Ball Jan 14, 2013 1:55 PM in response to Jascha Lee
    Level 2 (230 points)
    Jan 14, 2013 1:55 PM in response to Jascha Lee

    Thats what I did and have 200 clients, some work and some don't.  The ones that don't work may work on another day or may not.  Its mixed at times.  Makes no sense!

  • by Jascha Lee,

    Jascha Lee Jascha Lee Jan 14, 2013 2:00 PM in response to Daniel Ball
    Level 1 (5 points)
    Jan 14, 2013 2:00 PM in response to Daniel Ball

    Not sure this will help, but I also changed from using a host name to using an IP address for OD binding, SUS, etc.  Seems to have increased reliability.

  • by Daniel Ball,

    Daniel Ball Daniel Ball Jan 14, 2013 2:37 PM in response to Jascha Lee
    Level 2 (230 points)
    Jan 14, 2013 2:37 PM in response to Jascha Lee

    I did try changing the config file on the client to the IP instead of a FQDN, but no changes.  Still fails here.  Very odd, how it can work one time and not the next.

  • by xiao zhong,

    xiao zhong xiao zhong Jan 14, 2013 5:58 PM in response to Daniel Ball
    Level 1 (0 points)
    Jan 14, 2013 5:58 PM in response to Daniel Ball

    How is run:

     

    sudo softwareupdate -i -a

     

    /Wade

  • by Daniel Ball,

    Daniel Ball Daniel Ball Jan 14, 2013 8:23 PM in response to xiao zhong
    Level 2 (230 points)
    Jan 14, 2013 8:23 PM in response to xiao zhong

    Yes, using Apple Remote Desktop and sending a Unix command of pretty much what you said, run as root with command: softwareupdate -i -a

     

    Can take a lab of say 100 that are exactly the same in hardware and OS image installed and probably 10 maybe 15 will fail.  Come back the next day and try them again and another 10 or 15 will fail or maybe all of them.  Very odd.

  • by Daniel Ball,

    Daniel Ball Daniel Ball Jun 18, 2013 3:41 PM in response to Daniel Ball
    Level 2 (230 points)
    Jun 18, 2013 3:41 PM in response to Daniel Ball

    Ahhh feel stupid....I see what is happening finally!   If there are no updates to download then I get an error on the clients.  If there are updates available then everything works fine. 

     

    The server just must not be responding correctly when no updates are available and it simply throws an error instead of something readable like no updates are available now or something like that.

  • by Jascha Lee,

    Jascha Lee Jascha Lee Jun 18, 2013 3:58 PM in response to Daniel Ball
    Level 1 (5 points)
    Jun 18, 2013 3:58 PM in response to Daniel Ball

    I don't think it's that.  I suspect the error results when the server is in the process of downloading updates.  It does something with the URLs or something.  If you have a slow connection and a large update downloading from Apple, this error state can last for a while.

     

    Once you are out of the error condition, you won't get an errror on the clients when there are no updates available.

Previous Page 2