i got a error when i set a auto archiving to a site which has 1million action every day ?how to solve this error?
sometimes it would work if i set --force-date-last-n=1 ,but sometimes it doesn’t work .
this is the achiving response:
INFO [2018-06-27 07:18:34] 18572 ---------------------------
INFO [2018-06-27 07:18:34] 18572 INIT
INFO [2018-06-27 07:18:34] 18572 Running Matomo 3.5.1 as Super User
INFO [2018-06-27 07:18:34] 18572 ---------------------------
INFO [2018-06-27 07:18:34] 18572 NOTES
INFO [2018-06-27 07:18:34] 18572 - Reports for today will be processed at most every 3600 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2018-06-27 07:18:34] 18572 - Reports for the current week/month/year will be requested at most every 3600 seconds.
INFO [2018-06-27 07:18:34] 18572 - Archiving was last executed without error 2 小时 15 分 ago
INFO [2018-06-27 07:18:34] 18572 - Will process 1 websites (–force-idsites)
INFO [2018-06-27 07:18:34] 18572 ---------------------------
INFO [2018-06-27 07:18:34] 18572 START
INFO [2018-06-27 07:18:34] 18572 Starting Matomo reports archiving…
INFO [2018-06-27 07:18:34] 18572 Will pre-process for website id = 14, period = day, date = last1
INFO [2018-06-27 07:18:34] 18572 - pre-processing all visits
ERROR [2018-06-27 07:19:38] 18572 Got invalid response from API request: ?module=API&method=API.get&idSite=14&period=day&date=last1&format=php&trigger=archivephp. Response was ’ 500 Internal Server Error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
’ERROR [2018-06-27 07:19:38] 18572 Empty or invalid response ‘’ for website id 14, Time elapsed: 64.168s, skipping
INFO [2018-06-27 07:19:38] 18572 Done archiving!
INFO [2018-06-27 07:19:38] 18572 ---------------------------
INFO [2018-06-27 07:19:38] 18572 SUMMARY
INFO [2018-06-27 07:19:38] 18572 Total visits for today across archived websites: 0
INFO [2018-06-27 07:19:38] 18572 Archived today’s reports for 0 websites
INFO [2018-06-27 07:19:38] 18572 Archived week/month/year for 0 websites
INFO [2018-06-27 07:19:38] 18572 Skipped 17 websites
INFO [2018-06-27 07:19:38] 18572 - 0 skipped because no new visit since the last script execution
INFO [2018-06-27 07:19:38] 18572 - 0 skipped because existing daily reports are less than 3600 seconds old
INFO [2018-06-27 07:19:38] 18572 - 0 skipped because existing week/month/year periods reports are less than 3600 seconds old
INFO [2018-06-27 07:19:38] 18572 - 1 skipped because got an error while querying reporting API
INFO [2018-06-27 07:19:38] 18572 Total API requests: 0
INFO [2018-06-27 07:19:38] 18572 done: 0/1 0%, 0 vtoday, 0 wtoday, 0 wperiods, 0 req, 64206 ms, 2 errors.
INFO [2018-06-27 07:19:38] 18572 Time elapsed: 64.207s
INFO [2018-06-27 07:19:38] 18572 ---------------------------
INFO [2018-06-27 07:19:38] 18572 SCHEDULED TASKS
INFO [2018-06-27 07:19:38] 18572 Starting Scheduled tasks…
INFO [2018-06-27 07:19:38] 18572 done
INFO [2018-06-27 07:19:38] 18572 ---------------------------
INFO [2018-06-27 07:19:38] 18572 ---------------------------
INFO [2018-06-27 07:19:38] 18572 SUMMARY OF ERRORS
INFO [2018-06-27 07:19:38] 18572 Error: Got invalid response from API request: ?module=API&method=API.get&idSite=14&period=day&date=last1&format=php&trigger=archivephp. Response was ’ 500 Internal Server Error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
’INFO [2018-06-27 07:19:38] 18572 Error: Empty or invalid response ‘’ for website id 14, Time elapsed: 64.168s, skipping
ERROR [2018-06-27 07:19:38] 18572 2 total errors during this script execution, please investigate and try and fix these errors.