Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

macOS High Sierra support #47

Open
nstrauss opened this issue Sep 18, 2017 · 9 comments
Open

macOS High Sierra support #47

nstrauss opened this issue Sep 18, 2017 · 9 comments

Comments

@nstrauss
Copy link

Since the caching service was removed from Server in 10.13 log location has moved as well, breaking Cacher. Any plans to update Cacher for 10.13? Thanks!

@erikng
Copy link
Owner

erikng commented Sep 18, 2017

Ah yes that is right. It will probably take a decent amount of work, and at the moment I don’t have any time to commit.

I welcome any help if possible.

@grahamr
Copy link
Contributor

grahamr commented Oct 6, 2017

I have not upgraded any servers to HS - Does it still use the SQLLite DB for data storage and reporting? or is it a straight up log change?

@erikng
Copy link
Owner

erikng commented Oct 6, 2017

I don’t use cacher right now so I would suggest testing on a machine before upgrading and report about how it works.

@grahamr
Copy link
Contributor

grahamr commented Oct 16, 2017

digging into the code a bit i see lots of little hooks that will cause issues, server.app is no longer needed being the big one. I will be doing a HS test server this week, so ill see if the log file is at least the same format - that could make it a bit easier... thought not a cake walk

@grahamr
Copy link
Contributor

grahamr commented Oct 23, 2017

I'm actually stumped on this one - I can't find any debug logs or even the metrics DB the old server used.

Best guidance I can find is this:
log show --predicate 'subsystem == "com.apple.AssetCache"'

Which is parsing out of the whole system log - I reached out to our enterprise support at apple to see what they had to say, maybe there is still hope, but it's not looking like it.

@darkmind-io
Copy link

To get debug and info logs you need to add the --debug and --info to the end of the log command
log show --predicate 'subsystem == "com.apple.AssetCache"' --debug --info

You can also stream the logs similar to the tail -f command
log stream --predicate 'subsystem == "com.apple.AssetCache"' --debug --info

@darkmind-io
Copy link

I added support for High Sierra here (https://github.com/darkmind-io/Cacher). I did not take anytime to make it compatible with the old versions of apple caching or the setup the configuration option. But it appears to be working for me. If you update your app to support Unified Logging I would be happy to remove mine. 99% of the code is still yours.

@erikng
Copy link
Owner

erikng commented Nov 16, 2017 via email

@jefzo
Copy link

jefzo commented Dec 13, 2017

Hi @erikng @darkmind-io ,

You have done a great job !!
The only point is missing regarding in my opinion is a data summary since the server started not the service...
I have tried, to play with the Metrique.sql database but it keep reseting and fake the result !

Exemple information I need in my case :

Cacher has retrieved the following stats since Production Run:
Total Download From Apple To Client : 459.9 MB
Total Download From Cache To Client : 22.9 MB

Caching Server Data: 2017-12-11
Cacher has retrieved the following stats for 2017-12-11:

192.4 MB of bandwith served to client devices.
186.0 MB of bandwith requested from Apple
0.0 bytes of bandwith requested from other Caching Servers

5 IP Addresses hit the Caching Server yesterday consisting of:
5 Unique IP Addresses.

A total of 5 iOS downloads were requested from the Caching Server yesterday consisting of:
A total of 5 iPhone downloads
1 iPhone 6
2 iPhone 6S
2 iPhone 7 [GSM]

A total of 5 OS downloads were requested from the Caching Server yesterday consisting of:
5 iOS downloads:
1 iOS 10.3.2
1 iOS 10.3.3
3 iOS 11.1.2

A total of 5 files were downloaded from the Caching Server yesterday consisting of:
3 .ipa files
2 .zip files

A total of 5 unique files were downloaded from the Caching Server yesterday consisting of:
3 .ipa files
2 .zip files

Cacher ver sion: 3. 0.4
Uptime: 12 days

Cacher has retrieved the following stats since Production Run:
Total Download From Apple To Client : 459.9 MB
Total Download From Cache To Client : 22.9 MB

Many thanks in advance for your help

Jeff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants