@kaeru wrote:
I’m trying to enable web cron on a shared hosting provider. I am running Matomo v3.4.0. All three sites don’t seem to process, all with the same error:
ERROR CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Empty or invalid response '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://mydomain.com/piwik/?module=API&method=API.get&idSite=1&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed">here</a>.</p> </body></html>' for website id 1, Time elapsed: 0.115s, skipping
Any thoughts on what may be causing this? I have taken a look at system check, and it tells me all is fine except:
- shell_exec
- set_time_limit
- LOAD DATA INFILE
I have tried fixing these but since I am on a shared host there isn’t much I can do… Would any of these be the cause? Or is something else going on?
Full web cron log pasted below.
INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] --------------------------- INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] INIT INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Running Matomo 3.4.0 as Super User INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] --------------------------- INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] NOTES INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - If you execute this script at least once per hour (or more often) in a crontab, you may disable 'Browser trigger archiving' in Matomo UI > Settings > General Settings. INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] See the doc at: https://matomo.org/docs/setup-auto-archiving/ INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - Reports for today will be processed at most every 150 seconds. You can change this value in Matomo UI > Settings > General Settings. INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - Reports for the current week/month/year will be requested at most every 3600 seconds. INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - Archiving was last executed without error 1 years 11 days ago INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - Will process 3 other websites because the last time they were archived was on a different day (in the website's timezone) , IDs: 1, 2, 3 INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - Will process 1 other websites because some old data reports have been invalidated (eg. using the Log Import script or the InvalidateReports plugin) , IDs: 3 INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] --------------------------- INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] START INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Starting Matomo reports archiving... INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Day has finished for website id 1 since last run INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Will pre-process for website id = 1, period = day, date = last52 INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - pre-processing all visits ERROR CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Empty or invalid response '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://mydomain.com/piwik/?module=API&method=API.get&idSite=1&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed">here</a>.</p> </body></html>' for website id 1, Time elapsed: 0.115s, skipping INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Day has finished for website id 2 since last run INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Will pre-process for website id = 2, period = day, date = last52 INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - pre-processing all visits ERROR CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Empty or invalid response '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://mydomain.com/piwik/?module=API&method=API.get&idSite=2&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed">here</a>.</p> </body></html>' for website id 2, Time elapsed: 0.110s, skipping INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Day has finished for website id 3 since last run INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] Will pre-process for website id = 3, period = day, date = last52 INFO CoreAdminHome[2018-04-07 13:00:01 UTC] [c6553] - pre-processing all visits ERROR CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Empty or invalid response '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://mydomain.com/piwik/?module=API&method=API.get&idSite=3&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed">here</a>.</p> </body></html>' for website id 3, Time elapsed: 0.109s, skipping INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Done archiving! INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] --------------------------- INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] SUMMARY INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Total visits for today across archived websites: 0 INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Archived today's reports for 0 websites INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Archived week/month/year for 0 websites INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Skipped 3 websites INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] - 0 skipped because no new visit since the last script execution INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] - 0 skipped because existing daily reports are less than 150 seconds old INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] - 0 skipped because existing week/month/year periods reports are less than 3600 seconds old INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] - 3 skipped because got an error while querying reporting API INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Total API requests: 0 INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] done: 0/3 0%, 0 vtoday, 0 wtoday, 0 wperiods, 0 req, 337 ms, 3 errors. INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Time elapsed: 0.337s INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] --------------------------- INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] SCHEDULED TASKS INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Starting Scheduled tasks... INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Scheduler: executing task Piwik\Plugins\ExamplePlugin\Tasks.myTask... INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Scheduler: finished. Time elapsed: 0.000s INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Scheduler: executing task Piwik\Plugins\CustomPiwikJs\Tasks.updateTracker... INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Scheduler: finished. Time elapsed: 0.001s INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] done INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] --------------------------- INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] --------------------------- INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] SUMMARY OF ERRORS INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Error: Empty or invalid response '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://mydomain.com/piwik/?module=API&method=API.get&idSite=1&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed">here</a>.</p> </body></html>' for website id 1, Time elapsed: 0.115s, skipping INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Error: Empty or invalid response '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://mydomain.com/piwik/?module=API&method=API.get&idSite=2&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed">here</a>.</p> </body></html>' for website id 2, Time elapsed: 0.110s, skipping INFO CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] Error: Empty or invalid response '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://mydomain.com/piwik/?module=API&method=API.get&idSite=3&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed">here</a>.</p> </body></html>' for website id 3, Time elapsed: 0.109s, skipping ERROR CoreAdminHome[2018-04-07 13:00:02 UTC] [c6553] 3 total errors during this script execution, please investigate and try and fix these errors. Error: 3 total errors during this script execution, please investigate and try and fix these errors.
Update: my host tells me a script is producing the following error:
FastCGI: server "/var/run/php71-cgi/php-cgi" stderr: PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65536 bytes) in /www/piwik/vendor/composer/ClassLoader.php on line 444
Posts: 1
Participants: 1