Q: Caching Service broken for Macs?
I have run into an issue that posted some time ago and is still an issue.
It seems that the caching server does not work for any Macs that I have when they
request updates from the MacApp Store. It does not matter whether the update is
a system update or and update for an app.
On the other hand, any request for an iOS based app, regardless of where the request
comes from, iTunes on a Mac or the iOS device itself, is recognized, downloaded and cached
and served when requested by either an iOS device or iTunes on a Mac (update apps pane in iTunes).
On RARE occasions, a MacApp Store request is posted in the Caching server log but that ends
up being the extent of it.
One of the prime reasons for using the caching server is to save download bandwidth and only
needing to download something once but this does not function for Macs (I have 5). All of the
Macs are running 10.11.4 (10.11.3 before etc.). The current version of the Server app is 5.1, but
this has been happening for some time before this update (was hoping this would finally fix it).
The Caching service was working as expected as far as I could recall back in Yosemite and
before.
So, has this functionality actually been removed? Is it broke? I have re-installed Server, cleared
caches and restarted, but had no success.
OS X El Capitan (10.11.4), Home Server
Posted on Mar 25, 2016 6:43 AM
Well it seems that I have finally tracked down the issue and seemingly have fixed it.
After reading, rereading, and reading again the documentation on the caching service
there were some "advanced" that were related to caching data and referred to to the
config file. On viewing the contents of the config file, I found that tags were completely
missing. Rather than mess with the config file directly since they were simple settings,
I executed the following from terminal:
sudo serveradmin settings caching:AllowSharedCaching = yes
sudo serveradmin settings caching:AllowPersonalCaching = yes
and shut down and restarted the service.
Somewhere along the update paths (Server or OS X), it seems these lines were eliminated
in the config file or were changed to required to be explicitly set and were removed intentionally.
The documentation led one to believe (which is how it originally worked) that one sets a place to
store the cache files and starts the service and it just works.
Anyway, for the moment, the service seems to be working again for the MacApp Store updates/downloads.
It's just odd that the iTunes/iOS apps and iCloud caching was working without these tags in the config and
enabled.
Posted on Mar 28, 2016 9:30 AM