in order to prevent getting SegVaults from the archive.sh cron script we use the archive.php cron script. But here comes an other error:
[2011-12-05 11:39:25] [6567943f] [8.42 Mb] Error: Got invalid response from API request: http://MYDOMAIN/index.php?module=API&method=VisitsSummary.getVisits&idSite=ID_SITE&period=day&date=last52&format=php&token_auth=TOKEN_AUTH&trigger=archivephp. Response was 'curl_exec: Empty reply from server'
[2011-12-05 11:39:25] [6567943f] [8.42 Mb] Error: Got invalid response from API request: http://MYDOMAIN/index.php?module=API&method=VisitsSummary.getVisits&idSite=ID_SITE&period=day&date=last52&format=php&token_auth=TOKEN_AUTH&trigger=archivephp. Response was 'curl_exec: Empty reply from server'
[2011-12-05 11:39:25] [6567943f] [8.42 Mb] 2 total errors during this script execution, please investigate and try and fix these errors
After php has processed the script we restarted it and it completes the missing sites without errors.
There are no error messages in the webserver error_logs. The access_logs shows http status 200 with sended content.
In avarage we have 600 queries per second. So there is much data to procress.
Yes, we have a Piwik cluster and I checked one server out of it so there was no traffic but mine. Only 200 responses and no error messages. All responses with 2 KB of content and above.
[quote=matt]
Do you get these errors logged after each archive.php run ?[/quote]
The problem is that errors only thrown from archive.php. All webserver logs look fine (status 200 with some KB of content).
[quote=matt]
Then email me the log file after 1 day and possibly 24 executions?[/quote]
Is in the making, I am on vacation tomorrow. My college will send you the logs in 24 hours from now on.
Thanks for the log. Unfortunately I don’t know what the error could be. Can you please gather multiple archive runs (change in the cron from > /tmp/archive.php to >> /tmp/archive.log) so that all archive runs are appended in this file.
Then after 20 or 30 runs, could you please send me the new log file? Maybe we will be able to note some patterns in the errors (for example, do they all fail when it goes over 10 s ?)
This happened for all monitored domains for some cron runs. It looks like a webserver problem but at the same time i could not find any problems related to this error message. The error has gone without investigation.
like you can read out of the error message your webserver was sending out an invalid SSL certificate or had some tempoary problems (to high load, memory failure, CA crl/ocsp failure, etc.) with it. It’s NOT related to this issue nor thread nor Piwik.
[2012-02-27 17:05:35] [8c93602d] SUMMARY OF ERRORS
[2012-02-27 17:05:35] [8c93602d] Error: Got invalid response from API request: http://stats.XXX.com/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=day&date=last2&format=php&token_auth=XXX&trigger=archivephp. Response was 'curl_exec: Empty reply from server'
[2012-02-27 17:05:35] [8c93602d] 1 total errors during this script execution, please investigate and try and fix these errors
[2012-02-27 17:05:35] [8c93602d] ERROR: 1 total errors during this script execution, please investigate and try and fix these errors. First error was: Got invalid response from API request: http://stats.XXX.com/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=day&date=last2&format=php&token_auth=XXX&trigger=archivephp. Response was 'curl_exec: Empty reply from server'
Fatal error: 1 total errors during this script execution, please investigate and try and fix these errors. First error was: Got invalid response from API request: http://stats.XXX.com/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=day&date=last2&format=php&token_auth=XXX&trigger=archivephp. Response was 'curl_exec: Empty reply from server' in /var/www/stats.XXX.com/html/misc/cron/archive.php on line 519
When Calling http://stats.XXX.com/index.php?module=API&method=VisitsSummary.getVisits&idSite=1&period=day&date=last2&format=php&token_auth=XXX&trigger=archivephp manually i get: a:2:{s:10:"2012-02-26";d:8801;s:10:"2012-02-27";d:4185;}
The error.log of this vhost is empty
In the global apache2 error.log i found