Phil-CB

Q: Software Update service - Cannot remove / disable specific updates

Hi,

I am facing an issue with the Software Update service: the Server app does not take into account my requests to remove or disable an update.

 

What happens:


1. In the Server app -> Software Update -> Updates tab, if I select an "Enabled" update and select "Disable", the update is set to "Disabled". Then it switches back to "Enabled" next time I open the Server app.


2. In the Server app -> Software Update -> Updates tab, if I select an "Enabled" update and select "Remove", the update disappears from the list ... to reappear as "Enabled" the next time I open the Server app.

 

So I cannot remove old updates we do not need anymore, making impossible to recover storage space on the drive we use to store updates.

 

Info & Settings:

- Mac Pro (Early 2009)

- OS X 10.11.3


- using Server app 5.0.15


- Software Update service set to "Manual" (we do not wish to reflect all Apple updates to clients, only the ones we need)


- Service has a green dot "Available on your local network at *servername*"


- Clients do receive the enabled updates


- In Updates tab, some updates are Available (available from the Apple Updates Server, but not downloaded), some are Enabled (what we want)

- In Updates tab, option "Automatically download new updates" is not checked (what we also want)


 

What I tried:

1. Restart server app does not help (as explained above)

 

2. Restart server computer -> same issue

 

3. Issue occurred while running a previous version of the Server app; so updated Server.app to latest version (5.0.15) but this did not help.

 

4. Turned Software Update service to OFF, tried to Disable / Remove, then turn Software Update service back ON -> seems to work for some updates (when I tried to remove OS X 10.4.11 update and OS X 10.11.1 update, they remain in the list as "Available" as I was used to). But this does not solve the issue because these updates still behaves as described above (whatever I disable or remove those, they reappear as "Enabled" the next morning).

 

5. Spotted the issue while server was running OS X 10.11.2. Updated to OS X 10.11.3 ->  still same issue.


 

6. Enabled the PurgeUnused setting using Terminal command:

    sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin settings swupdate:PurgeUnused = yes

   Unfortunately issue remains.

 

7. Checked swupdate logs at /Library/Server/Software Update/Logs/

 

swupd_syncd.log shows the following when checking for new updates

 

Jan 29 15:59:35  swupd_syncd[29221] <Info>: Updating local catalog: index-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog

Jan 29 16:02:49  swupd_syncd[29221] <Info>: * Auto-copy options are OFF. No products were changed.

Jan 29 16:02:49  swupd_syncd[29221] <Info>: * Auto-enable option is OFF. No products were changed.

 

followed by a list of lines like this (where Product xxx-xxxxx are all different):

Jan 29 16:02:49  swupd_syncd[29221] <Info>: Product 031-1946 is no longer available and has no replacement.

 

and sometimes a line like this one

Jan 29 16:02:50  swupd_syncd[29221] <Info>: Previously copied product 031-42281 missing from local storage. This product will be re-download.

 

Then after all catalogs were checked and updated, swupd_syncd.log states

Jan 29 16:17:29  swupd_syncd[29221] <Info>: Updating product updates information

Jan 29 16:17:31  swupd_syncd[29221] <Info>: Starting product update downloads

 

Seems like OS X Server still has a list of "previously copied products" I can't get rid of.

 

8. Running the following command in Terminal provides Software Update settings, but cannot spot anything weird there. (Except that the setting I added in step 6 (PurgedUnused) does not appear. But should it ?)

 

sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin fullstatus swupdate

 

swupdate:state = "RUNNING"

swupdate:lastChecktime = 2016-02-01 02:00:04 +0000

swupdate:autoMirrorOnlyNew = no

swupdate:syncServiceState = "RUNNING"

swupdate:startTime = 2016-01-29 13:08:54 +0000

swupdate:lastProductsUpdate = 2016-02-01 02:14:52 +0000

swupdate:logPaths:swupdateServiceLog = "/Library/Server/Software Update/Log/swupd_syncd.log"

swupdate:logPaths:swupdateErrorLog = "/Library/Server/Software Update/Log/swupd_error.log"

swupdate:logPaths:swupdateAccessLog = "/Library/Server/Software Update/Log/swupd_access.log"

swupdate:pluginVers = "10.11.111 (111)"

swupdate:checkError = no

swupdate:autoEnable = no

swupdate:updatesDocRoot = "/Library/Server/Software Update/Data/"

swupdate:hostServiceState = "RUNNING"

swupdate:autoMirror = no

swupdate:numOfEnabledPkg = 807

swupdate:servicePortsAreRestricted = "NO"

swupdate:numOfMirroredPkg = 807

swupdate:setStateVersion = 1

swupdate:syncStatus = "DONE"

swupdate:readWriteSettingsVersion = 1

 


9. Ran out of ideas, and decided to call for help with this post ... Message in a bottle ?

Deleting all updates and resetting the service would be a pain ... as we would need to redownload all updates.

 

Thanks in advance to anyone posting something ... anything helpful

Posted on Feb 1, 2016 7:06 AM

Close

Q: Software Update service - Cannot remove / disable specific updates

  • All replies
  • Helpful answers

  • by MrHoffman,

    MrHoffman MrHoffman Feb 1, 2016 8:48 AM in response to Phil-CB
    Level 6 (15,612 points)
    Mac OS X
    Feb 1, 2016 8:48 AM in response to Phil-CB

    Use the Feedback link in the Server menus, and send a bug report.

  • by Phil-CB,

    Phil-CB Phil-CB Mar 9, 2016 2:09 AM in response to MrHoffman
    Level 1 (107 points)
    Mar 9, 2016 2:09 AM in response to MrHoffman

    Thanks for the tip, but bug report feature allowed me to copy / paste only 20% of my above post. I did so on Feb 3rd, and haven't heard from it yet.

  • by MrHoffman,

    MrHoffman MrHoffman Mar 9, 2016 5:16 AM in response to Phil-CB
    Level 6 (15,612 points)
    Mac OS X
    Mar 9, 2016 5:16 AM in response to Phil-CB

    That's pretty much dealing with Apple in my experience, unless you have the ability to open an incident or other support report.  Some of my more arcane bug reports have stayed open for years, others have been fixed in the next release.

  • by jayenashar,

    jayenashar jayenashar Sep 5, 2016 4:46 PM in response to Phil-CB
    Level 1 (8 points)
    Servers Enterprise
    Sep 5, 2016 4:46 PM in response to Phil-CB

    Not sure if it helps, but I have Software Update OFF and either manual or automatic, it seems to download updates.  I DO have caching ON so maybe that is triggering it?

  • by MrHoffman,

    MrHoffman MrHoffman Sep 6, 2016 11:04 AM in response to jayenashar
    Level 6 (15,612 points)
    Mac OS X
    Sep 6, 2016 11:04 AM in response to jayenashar

    jayenashar wrote:

     

    Not sure if it helps, but I have Software Update OFF and either manual or automatic, it seems to download updates.  I DO have caching ON so maybe that is triggering it?

     

    Caching server captures patches entirely separately from Software Update Server, and AFAIK doesn't have a way to disable which specific OS X patches and updates are offered from the cache.   Software Update Server does.

     

    Software Update Server should not be downloading patches if it's disabled.   If it is, that's a bug in OS X Server, or some sort of odd local corruption.

     

    Unless the settings in Software Update Server are getting toggled for a particular patch — which is what the OP was reporting — what you're describing seems to be a different issue, particularly given that your local Software Update Server is disabled.

     

    It's probably better starting your own thread here in the forums, providing details your software and configuration, and whatever version of OS X Server is in use.

  • by jayenashar,

    jayenashar jayenashar Sep 6, 2016 5:20 PM in response to MrHoffman
    Level 1 (8 points)
    Servers Enterprise
    Sep 6, 2016 5:20 PM in response to MrHoffman

    MrHoffman wrote:

    It's probably better starting your own thread here in the forums, providing details your software and configuration, and whatever version of OS X Server is in use.

    While it does appear to be a bug/issue, I don't really care.  Was just trying to give the OP something to look at (i.e.. does it happen if he/she disables caching?)