bruceb108

Q: Caching Server does not cache its own Installs from App Store

I set up the OS X Server App 5.1.5 (15S7047) on an iMac running El Capitan 10.11.5 (Build 15F34). The iMac has 8 GB of Ram and an i5 processor. It is Mid 2011.

 

It is part of a Windows Domain and has a Time Capsule set to Bridge Mode.

 

On the iMac here are the settings, etc.:

Server Overview:

Internet: Reachable at 202.etc., no services available

Public Host Name: None

Network Interface: Ethernet, Ip Address 192.168.0.70 (DHCP assigned - not static, but it never changes)

Accounts: All Users, All Groups (populated by the Windows Domain Controller - Active Directory for the Windows Domain.)

 

Only the Caching Service is ON.

The Caching service Status says "Available - Devices on your local network will automatically use this service.

Permissions: Only local subnets

Serve clients with public addresses: matching this server's network.

 

iCloud Data: unchecked to cache personal iCloud data

 

Cache available: 150GB

Cache used: None

 

When installing from the App Store, the cache is unchanged - always None.

 

I have also downloaded from a MacBook Pro and nothing is cached as well.

 

I am new to Macs and must have missed some setting, but have read lots on various Forums. I suspect the Reachability saying "no services available" may be part of the problem.

 

I have checked the logs - the service log for Caching may help. The first install of the Server App was about a week ago, and it shows a problem with "Request for blacklist..." (see below)

 

Around 12:15pm today, I uninstalled the Server App by moving it to Trash, deleted the Library\Server, etc. then installed the Server App again. Now the failing activity is not being logged.

 

PART OF THE FIRST INSTALL OF SERVER APP'S CACHING LOG FOR TODAY:

Jun 20 11:14:10 dlserver AssetCache[351]: Caching Server shutting down (15)

Jun 20 11:14:10 dlserver com.apple.xpc.launchd[1] (com.apple.AssetCache[351]): Service exited with abnormal code: 15

Jun 20 11:14:34 dlserver AssetCache[1110]: Caching Server version 149.4 started

Jun 20 11:14:37 dlserver AssetCache[1110]: Registration succeeded.  Resuming server.

Jun 20 11:41:56 dlserver AssetCache[321]: Caching Server version 149.4 started

Jun 20 11:41:57 dlserver AssetCache[321]: Request for configuration from http://suconfig.apple.com/resource/registration/v1/config.plist failed: The Internet connection appears to be offline.

Jun 20 11:41:57 dlserver AssetCache[321]: Reverting to last accepted configuration

Jun 20 11:41:57 dlserver AssetCache[321]: Request for blacklist from http://suconfig.apple.com/resource/registration/v1/blacklist.plist failed: The Internet connection appears to be offline.

Jun 20 11:41:57 dlserver AssetCache[321]: 1 consecutive cleanup failure(s).  Will retry in 16 seconds.

Jun 20 11:42:18 dlserver AssetCache[321]: Registration succeeded.  Resuming server.

Jun 21 08:55:28 dlserver AssetCache[319]: Caching Server version 149.4 started

Jun 21 08:55:28 dlserver AssetCache[319]: Request for configuration from http://suconfig.apple.com/resource/registration/v1/config.plist failed: The Internet connection appears to be offline.

Jun 21 08:55:28 dlserver AssetCache[319]: Reverting to last accepted configuration

Jun 21 08:55:43 dlserver AssetCache[319]: Registration succeeded.  Resuming server.

Jun 21 10:07:47 dlserver AssetCache[334]: Caching Server version 149.4 started

Jun 21 10:07:49 dlserver AssetCache[334]: Request for configuration from http://suconfig.apple.com/resource/registration/v1/config.plist failed: The Internet connection appears to be offline.

Jun 21 10:07:49 dlserver AssetCache[334]: Reverting to last accepted configuration

Jun 21 10:07:52 dlserver AssetCache[334]: Request for blacklist from http://suconfig.apple.com/resource/registration/v1/blacklist.plist failed: The Internet connection appears to be offline.

Jun 21 10:07:52 dlserver AssetCache[334]: 1 consecutive cleanup failure(s).  Will retry in 63 seconds.

Jun 21 10:09:07 dlserver AssetCache[334]: Registration succeeded.  Resuming server.

Jun 21 10:15:53 dlserver AssetCache[307]: Caching Server version 149.4 started

Jun 21 10:15:53 dlserver AssetCache[307]: Request for configuration from http://suconfig.apple.com/resource/registration/v1/config.plist failed: The Internet connection appears to be offline.

Jun 21 10:15:53 dlserver AssetCache[307]: Reverting to last accepted configuration

Jun 21 10:15:57 dlserver AssetCache[307]: Request for blacklist from http://suconfig.apple.com/resource/registration/v1/blacklist.plist failed: The Internet connection appears to be offline.

Jun 21 10:15:57 dlserver AssetCache[307]: 1 consecutive cleanup failure(s).  Will retry in 60 seconds.

Jun 21 10:17:00 dlserver AssetCache[307]: Registration succeeded.  Resuming server.

Jun 21 12:05:11 dlserver AssetCache[287]: Caching Server version 149.4 started

Jun 21 12:05:13 dlserver AssetCache[287]: Request for configuration from http://suconfig.apple.com/resource/registration/v1/config.plist failed: The Internet connection appears to be offline.

Jun 21 12:05:13 dlserver AssetCache[287]: Reverting to last accepted configuration

Jun 21 12:05:13 dlserver AssetCache[287]: Request for blacklist from http://suconfig.apple.com/resource/registration/v1/blacklist.plist failed: The Internet connection appears to be offline.

Jun 21 12:05:13 dlserver AssetCache[287]: 1 consecutive cleanup failure(s).  Will retry in 72 seconds.

Jun 21 12:06:30 dlserver AssetCache[287]: Registration succeeded.  Resuming server.

Jun 21 12:14:36 dlserver AssetCache[287]: Caching Server shutting down (15)

Jun 21 12:14:36 dlserver com.apple.xpc.launchd[1] (com.apple.AssetCache[287]): Service exited with abnormal code: 15

 

(THIS IS THE POINT WHEN THE SERVER APP WAS RE-INSTALLED)

 

Jun 21 14:55:50 dlserver AssetCache[2986]: Caching Server version 149.4 started

Jun 21 14:55:54 dlserver AssetCache[2986]: Registration succeeded.  Resuming server.

 

BUT STILL NO CACHING OF ITS OWN INSTALLS FROM THE APP STORE.

 

I have also tried it with OS X Firewall off, Avira Real-Time Protection off, but to no avail.

 

I suspect the No services available status for the Internet setting, mentioned at the very beginning of this post, to be significant but have not found out what is missing.

 

Thank you very much for any help.

iMac, OS X Server

Posted on Jun 21, 2016 12:09 AM

Close

Q: Caching Server does not cache its own Installs from App Store

  • All replies
  • Helpful answers

first Previous Page 3 of 3
  • by bruceb108,

    bruceb108 bruceb108 Jun 24, 2016 3:13 PM in response to Linc Davis
    Level 1 (8 points)
    Servers Enterprise
    Jun 24, 2016 3:13 PM in response to Linc Davis

    dlserver:~ mac-bruce$ sudo serveradmin settings caching

    Password:

    caching:ListenRangesOnly = yes

    caching:ServerGUID = "2791E1FF-…

    caching:ListenRanges = _empty_array

    caching:ReservedVolumeSpace = 25000000000

    caching:ServerRoot = "/Library/Server"

    caching:CacheLimit = 150000000000

    caching:PublicRanges = _empty_array

    caching:LocalSubnetsOnly = yes

    caching:DataPath = "/Library/Server/Caching/Data"

    caching:AllowPersonalCaching = no

    caching:Port = 0

    dlserver:~ mac-bruce$

  • by Linc Davis,

    Linc Davis Linc Davis Jun 24, 2016 3:40 PM in response to bruceb108
    Level 10 (207,963 points)
    Applications
    Jun 24, 2016 3:40 PM in response to bruceb108

    Screen Shot 2016-06-24 at 15.40.25.png

  • by bruceb108,

    bruceb108 bruceb108 Jun 24, 2016 3:40 PM in response to Linc Davis
    Level 1 (8 points)
    Servers Enterprise
    Jun 24, 2016 3:40 PM in response to Linc Davis

    I also checked for an INVALID_DEVICE in the Caching debug.log - there were no instances of this.

     

    Just the usual messages about Request for configuration and Request for blacklist from suconfig.apple.com failed.

  • by bruceb108,

    bruceb108 bruceb108 Jun 24, 2016 4:02 PM in response to Linc Davis
    Level 1 (8 points)
    Servers Enterprise
    Jun 24, 2016 4:02 PM in response to Linc Davis

    I cannot read what you say under the screenshot.

     

    Most of my testing had that setting for Cache content for clients connecting from: "only local subnets" - was actually set for "all networks". I think it reverted yesterday when I reinstalled it from Trash.

     

    Regardless, I assume it would make no difference to get the Caching Server to cache its own downloads?

  • by Linc Davis,

    Linc Davis Linc Davis Jun 24, 2016 6:36 PM in response to bruceb108
    Level 10 (207,963 points)
    Applications
    Jun 24, 2016 6:36 PM in response to bruceb108

    Please back up all data, stop the service, then delete the following file:

     

    /Library/Server/Caching/Config/Config.plist

     

    Restart the service, configure, and test.

  • by bruceb108,

    bruceb108 bruceb108 Jun 24, 2016 8:43 PM in response to Linc Davis
    Level 1 (8 points)
    Servers Enterprise
    Jun 24, 2016 8:43 PM in response to Linc Davis

    Did this but still no caching. Here is the Log from the Caching Server:

     

    Jun 25 15:06:14 dlserver AssetCache[1244]: Caching Server version 149.4 started

    Jun 25 15:06:19 dlserver AssetCache[1244]: Registration succeeded.  Resuming server.

    Jun 25 15:26:09 dlserver AssetCache[333]: Caching Server version 149.4 started

    Jun 25 15:26:09 dlserver AssetCache[333]: Request for configuration from http://suconfig.apple.com/resource/registration/v1/config.plist failed: The Internet connection appears to be offline.

    Jun 25 15:26:09 dlserver AssetCache[333]: Reverting to last accepted configuration

    Jun 25 15:26:17 dlserver AssetCache[333]: Request for blacklist from http://suconfig.apple.com/resource/registration/v1/blacklist.plist failed: A server with the specified hostname could not be found.

    Jun 25 15:26:17 dlserver AssetCache[333]: 1 consecutive cleanup failure(s).  Will retry in 68 seconds.

    Jun 25 15:27:29 dlserver AssetCache[333]: Registration succeeded.  Resuming server.

     

    The Request for blacklist gave a different reason for failing this time.

  • by Linc Davis,

    Linc Davis Linc Davis Jun 25, 2016 5:43 AM in response to bruceb108
    Level 10 (207,963 points)
    Applications
    Jun 25, 2016 5:43 AM in response to bruceb108

    Has this setup ever worked?

  • by bruceb108,

    bruceb108 bruceb108 Jun 25, 2016 1:12 PM in response to Linc Davis
    Level 1 (8 points)
    Servers Enterprise
    Jun 25, 2016 1:12 PM in response to Linc Davis

    It has worked rarely. A few times it cached some Mac software (mostly from others on the network, not by me intentionally), and several times iOS Device installs by others on the network were also cached.

     

    It has never tested consistently when trying to install/cache to itself from the App Store by my getting/installing applications via the Store. In fact that has only worked once, I think, if even that.

     

    I only installed El Capitan a few weeks ago and then the Server App 5.1.5 - and this is the first time I have ever used the Server App.

     

    Currently, I am installing El Capitan on a MacBook and then the Server App - will see how that goes on a freshly installed and different machine. Unfortunately I will have to re-install the Server App via a download from the App Store, which is 190 MB and not re-usable (until it is cached). Given our bandwidth limitations here, this will take a while to do.

     

    Are there other options to bypass the download of the Server App - such as using the Server App from the iMac I have been testing from - by dumping the Server app in the Trash and copying it from there to the MacBook?

     

    And thank you for your persistence - much appreciated.

  • by Linc Davis,

    Linc Davis Linc Davis Jun 25, 2016 2:29 PM in response to bruceb108
    Level 10 (207,963 points)
    Applications
    Jun 25, 2016 2:29 PM in response to bruceb108

    It seems that the problem is caused by something in your network configuration, but I'm not sure what it is—the AD binding? I have no experience with that. Maybe Apple Enterprise Support could tell you more, but I wouldn't count on it.

     

    You can copy the Server app from one system to another.

  • by bruceb108,

    bruceb108 bruceb108 Jun 26, 2016 11:22 AM in response to Linc Davis
    Level 1 (8 points)
    Servers Enterprise
    Jun 26, 2016 11:22 AM in response to Linc Davis

    I tried copying the Server app but it gave me an error and would not complete:

     

    "The finder can't complete the operation because some data in "Server" can't be read or written. (Error code -36)"

     

    Error code -36 is defined as:

     

    ioErr = -36, /*I/O error (bummers)*/

     

    So I ended up installing the Server app through the App Store - after installing El Capitan and an update to bring it to 10.11.5 - on a MacBook Pro (Early 2011)

     

    I tried copying the Server app again before doing any installation setup of Server, but the same error code came up.

     

    I read up on AD and did not activate that with the new Server App. I just went with the defaults, turned on the Caching, and only changed Caching Content for Clients Connecting from: only local subnets TO all networks.

     

    Still the Server will not cache its own installs.

  • by Linc Davis,

    Linc Davis Linc Davis Jun 26, 2016 12:49 PM in response to bruceb108
    Level 10 (207,963 points)
    Applications
    Jun 26, 2016 12:49 PM in response to bruceb108

    You may be up against regional restrictions on caching:

     

    Content types supported by the Caching service in OS X Server - Apple Support

     

    Apple doesn't disclose all the details. In any case, I don't have any other suggestions, except that you contact Apple Enterprise Support. Good luck.

  • by bruceb108,

    bruceb108 bruceb108 Jul 12, 2016 9:07 PM in response to Linc Davis
    Level 1 (8 points)
    Servers Enterprise
    Jul 12, 2016 9:07 PM in response to Linc Davis

    Thank you again, Linc.

     

    After working with Apple Enterprise Support they confirmed that this was a regional issue due to a mismatch between the Caching Server's Region and the Apple ID's Region.

     

    I originally had tried to create an Apple ID for Fiji but I only have a US-based credit card, so I put that in. This approach apparently links me automatically to a US-based iTunes Store rather than letting me use a US credit card at a Fiji iTunes Store. Strange logic, it seems to me.

     

    But taking into account yours and Apple Enterprise Support's feedback, I re-visited my Fiji-based Apple ID and created another on the client that is again linked to Fiji but has NO Payment information set up (by clicking NONE in terms of method of payment - at the end of the string of accepted credit cards).

     

    This approach allowed the Apple ID to stay linked to Fiji and now caching is working fine.

     

    I have tested various scenarios. E.g., the server, also using the same new Fiji-based Apple ID with payment method = NONE but with a Fiji address, allows the server to cache its own downloads.

     

    Also the client, using the same Fiji-based Apple ID, is now having its downloads/installs cached, and using the cache for any downloads it needs that the server already has.

     

    Multiple profiles on the client appear to make use of the server's cached content regardless of iCloud's Apple ID being based in the US or Fiji - but only if you change the download store to Fiji at the bottom of the App Store screen, and also use the Apple ID associated with Fiji when prompted immediately prior to the get/download/install click. Doing this once then associates the Fiji Apple Store with the caching server and makes use of the cached content on the server.

     

    In addition, on the client, ONLY a Fiji-based Apple ID with NONE for payment method actually gets the Server to cache the client's unique downloads/installs. Again, this is because the Apple ID and the Caching Server's Region (the latter based on the location of the Public IP Address's origin, i.e., the ISP) must match.

     

    So my only questions at this point concern whether there is a way to set up payment information on the Fiji-based Apple ID when I don't have a Fiji-based credit card?

     

    I wonder if I can buy an iTunes Gift Card online and use it to build a credit in the Fiji Store? I can look into this more if someone doesn't already know or perhaps has a better approach. I can also look to get a prepaid Visa card in Fiji the next time someone goes to another island that has that kind of vendor/store.

     

    Thank you for all your help.

first Previous Page 3 of 3