The timeout is too short. Getting a lot timeouts. But during development, it’s actually very good for testing.
[hr]
The following log has some problems.
2015-09-11 00:20:27,220 - sdwdate_log - INFO - Signal SIGTERM received. Exiting.
2015-09-11 00:20:43,074 - sdwdate_log - INFO - Fetching remote times, start 1441930843.07
2015-09-11 00:20:43,076 - sdwdate_log - INFO - The clock is sane<br> Current time "Fri Sep 11 00:20:43 UTC 2015"
2015-09-11 00:20:43,076 - sdwdate_log - INFO - Running sdwdate loop, iteration 1
2015-09-11 00:20:43,076 - sdwdate_log - INFO - Requested urls ['33y6fjyhs3phzfjj.onion', 'abkjckdgoabr7bmm.onion', 'bitmailendavkbec.onion']
2015-09-11 00:20:47,646 - sdwdate_log - INFO - Returned urls "['abkjckdgoabr7bmm.onion', 'bitmailendavkbec.onion', '33y6fjyhs3phzfjj.onion']"
2015-09-11 00:20:47,646 - sdwdate_log - INFO - Remote status "abkjckdgoabr7bmm.onion", True
2015-09-11 00:20:47,646 - sdwdate_log - INFO - Remote status "bitmailendavkbec.onion", True
2015-09-11 00:20:47,646 - sdwdate_log - INFO - Remote status "33y6fjyhs3phzfjj.onion", False: 0x04: Host unreachable
2015-09-11 00:20:47,646 - sdwdate_log - INFO - Pool two: last_url abkjckdgoabr7bmm.onion, web_time 1441930850
2015-09-11 00:20:47,646 - sdwdate_log - INFO - Pool three: last_url bitmailendavkbec.onion, web_time 1441930849
2015-09-11 00:20:47,646 - sdwdate_log - INFO - Running sdwdate loop, iteration 2
2015-09-11 00:20:47,647 - sdwdate_log - INFO - Requested urls ['y6xjgkgwj47us5ca.onion']
2015-09-11 00:20:53,081 - sdwdate_log - INFO - Returned urls "['y6xjgkgwj47us5ca.onion']"
2015-09-11 00:20:53,081 - sdwdate_log - INFO - Remote status "y6xjgkgwj47us5ca.onion", False: Timeout
2015-09-11 00:20:53,081 - sdwdate_log - INFO - Running sdwdate loop, iteration 3
2015-09-11 00:20:53,081 - sdwdate_log - INFO - Requested urls ['v6gdwmm7ed4oifvd.onion']
2015-09-11 00:20:53,081 - sdwdate_log - INFO - Returned urls "['v6gdwmm7ed4oifvd.onion']"
2015-09-11 00:20:53,082 - sdwdate_log - INFO - Remote status "v6gdwmm7ed4oifvd.onion", False: Timeout
2015-09-11 00:20:53,082 - sdwdate_log - INFO - Running sdwdate loop, iteration 4
2015-09-11 00:20:53,082 - sdwdate_log - INFO - Requested urls ['33y6fjyhs3phzfjj.onion']
2015-09-11 00:20:57,825 - sdwdate_log - INFO - Returned urls "['33y6fjyhs3phzfjj.onion']"
2015-09-11 00:20:57,826 - sdwdate_log - INFO - Remote status "33y6fjyhs3phzfjj.onion", False: 0x04: Host unreachable
2015-09-11 00:20:57,826 - sdwdate_log - INFO - Running sdwdate loop, iteration 5
2015-09-11 00:20:57,826 - sdwdate_log - INFO - Requested urls ['hkjpnjbvhrxjvikd.onion']
2015-09-11 00:21:07,836 - sdwdate_log - WARNING - No values returned from url_to_unixtime.<br> Retrying...
2015-09-11 00:21:07,837 - sdwdate_log - INFO - Sleeping for 0.1 minutes
2015-09-11 00:21:13,846 - sdwdate_log - INFO - Fetching remote times, start 1441930873.85
2015-09-11 00:21:13,847 - sdwdate_log - INFO - The clock is sane<br> Current time "Fri Sep 11 00:21:13 UTC 2015"
2015-09-11 00:21:13,847 - sdwdate_log - INFO - Running sdwdate loop, iteration 1
2015-09-11 00:21:13,847 - sdwdate_log - INFO - Requested urls ['znig4bc5rlwyj4mz.onion', '5r4bjnjug3apqdii.onion', 'timaq4ygg2iegci7.onion']
2015-09-11 00:21:18,870 - sdwdate_log - INFO - Returned urls "['znig4bc5rlwyj4mz.onion', 'timaq4ygg2iegci7.onion', '5r4bjnjug3apqdii.onion']"
2015-09-11 00:21:18,871 - sdwdate_log - INFO - Remote status "znig4bc5rlwyj4mz.onion", True
2015-09-11 00:21:18,876 - sdwdate_log - INFO - Remote status "timaq4ygg2iegci7.onion", True
2015-09-11 00:21:18,876 - sdwdate_log - INFO - Remote status "5r4bjnjug3apqdii.onion", True
2015-09-11 00:21:18,877 - sdwdate_log - INFO - Pool one: last_url znig4bc5rlwyj4mz.onion, web_time 1441930879
2015-09-11 00:21:18,877 - sdwdate_log - INFO - Pool two: last_url 5r4bjnjug3apqdii.onion, web_time 1441930883
2015-09-11 00:21:18,877 - sdwdate_log - INFO - Pool three: last_url timaq4ygg2iegci7.onion, web_time 1441930879
2015-09-11 00:21:18,878 - sdwdate_log - INFO - Valid urls:
znig4bc5rlwyj4mz.onion: "ExposeFacts https://exposefacts.org znig4bc5rlwyj4mz.onion"
timaq4ygg2iegci7.onion: "https://github.com/meejah/txtorcon http://txtorcon.readthedocs.org"
5r4bjnjug3apqdii.onion: "Irpileaks[29][30] 2013-October-7 Investigative Journalism 5r4bjnjug3apqdii.onion https://5r4bjnjug3apqdii.tor2web.org/ Italy"
2015-09-11 00:21:18,878 - sdwdate_log - INFO - Bad urls:
2015-09-11 00:21:18,878 - sdwdate_log - INFO - Fetching remote times, end 1441930878.88
2015-09-11 00:21:18,896 - sdwdate_log - INFO - Pool differences, sorted: [1, 1, 5]
2015-09-11 00:21:18,897 - sdwdate_log - INFO - Median time difference: 1
2015-09-11 00:21:18,897 - sdwdate_log - INFO - Seconds to add: - 0.573118188
2015-09-11 00:21:18,897 - sdwdate_log - INFO - New time difference: 0.426881812
2015-09-11 00:21:18,897 - sdwdate_log - INFO - Setting time using date.
2015-09-11 00:21:18,897 - sdwdate_log - INFO - Old unixttime: 1441930878.9
2015-09-11 00:21:18,897 - sdwdate_log - INFO - New unixtime 1441930879.32
2015-09-11 00:21:19,321 - sdwdate_log - INFO - Sleeping for 10 minutes
- “WARNING - No values returned from url_to_unixtime.” - How can this happen?
- It already had two of three valid ones. But then gave up, started fresh and got three fresh ones.
- Didn’t list any bad urls. But that’s probably just a follow up error.
Other issues:
- no way to see which time server returned which time diff