-
Notifications
You must be signed in to change notification settings - Fork 41
cacher.py Traceback errors on 10.11.6 server 5.2 #40
Comments
Also @elflames can you try https://github.com/erikng/Cacher/pull/37/commits? |
will need the logs to check. 10.11 doesnt have the metrics sql db so that commit above you'll need to change the flag to use the logs for getting metric information
|
will the last 500 lines of the current debug log be enough? |
More than likely not. Some days cacher would look through 20,000+ lines. It just takes one bad line to cause this error.
On a side note I may need to stuff the main function into a try and print out the bad log line to help debugging.
Thanks,
Erik Gomez
…________________________________
From: D.Cooper <[email protected]>
Sent: Tuesday, April 25, 2017 10:28:28 PM
To: erikng/Cacher
Cc: Erik Gomez; Comment
Subject: Re: [erikng/Cacher] cacher.py Traceback errors on 10.11.6 server 5.2 (#40)
will the last 500 lines of the current debug log be enough?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#40 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFa_GCADBlY07l6rdlsbLjW-naOphTTPks5rztX8gaJpZM4NIXYo>.
|
Just zip up the entire logs directory and send |
logs attached in first message. please advise once you have them. |
Why are all your values in bytes?
|
It should look like this
This is why its tripping, its expecting a bandwidth type after the number ie MB after 2.3 but yours are all in bytes already ie
instead of what it should be like
And this is why the line split is tripping up. |
I am not suer why mine has defaulted to bytes. checking the server admin settings now.. Cacher has retrieved the following stats for 2017-04-24: 7.5 GB of bandwith served to client devices. IP Addresses hit the Caching Server on 2017-04-24 consisting of: A total of 77 iOS downloads were requested from the Caching Server on 2017-04-24 consisting of: A total of 861 OS downloads were requested from the Caching Server on 2017-04-24 consisting of: A total of 861 files were downloaded from the Caching Server on 2017-04-24 consisting of: A total of 558 unique files were downloaded from the Caching Server on 2017-04-24 consisting of: Cacher version: 3.0.5 |
Please confirm what OS version and what version of Server app you using. and what region are you from or using? US English? |
macOS: 10.11.6 |
Are you sure its 5.2? 5.1.7 is the latest for 10.11.6 5.2 won't install/run on 10.11.6 I have a 10.11.6 caching server here with the latest version of server 5.1.7 and i am not seeing the output you are. Perhaps you have manually or through some kind of automation have installed 5.2 on 10.11.6 somehow and thats causing you issues. |
My apologies, just built a 10.11.6 caching server here and 5.2 came down from the app store. ¯_(ツ)_/¯ Running a quick test not seeing the values in bytes here..... Must be something on your machine |
I will rebuilding the server and see what I get.. Thank you for the quick replies and your continued development of this tool. |
Prolly an id10t error. |
G'day eriking,
I have tried to use you cacher.py script on my caching server as I too need a nice way to to show this is saving us bandwidth.
Ever time i call cacher.py in terminal, i get the following output;
Traceback (most recent call last):
File "/usr/local/bin/cacher.py", line 913, in
main()
File "/usr/local/bin/cacher.py", line 896, in main
cacherdata = cacher(rawLog.readlines(), targetDate, friendlyNames)
File "/usr/local/bin/cacher.py", line 167, in cacher
frompeers_size = linesplit[17]
IndexError: list index out of range
python is not my strong suit and I hope this error is a simple misconfig on my behalf.
Any input from yourself would be greatly appreciated.
cheers Damien C
The text was updated successfully, but these errors were encountered: