I guess this is a constant archiving error now?
I applied the patch you’d posted, but I’d also deleted many of the previous logs, so I think my August stats are going to be mostly useless, but if it can self-correct, that will be fine for moving forward.
One of the things I’d done to try to get archiving to work was remove some sites, so Site 4 and Site 6 don’t exist anymore.
Since applying the patch, here’s the error I’m receiving from the archive cron:
Notes
- Reports for today will be processed at most every 7200 seconds. You can change this value in Piwik UI > Settings > General Settings.
- Reports for the current week/month/year will be refreshed at most every 3600 seconds.
- Archiving was last executed without error 10 days 2 hours ago
Will process 8 websites with new visits since 10 days 2 hours , IDs: 1, 2, 3, 5, 7, 8, 9, 10
---------------------------
START
Starting Piwik reports archiving...
Archived website id = 1, period = day, Time elapsed: 0.760s
Archived website id = 1, period = week, 387 visits, Time elapsed: 0.405s
Archived website id = 1, period = month, 1590 visits, Time elapsed: 0.495s
Archived website id = 1, period = year, 1590 visits, Time elapsed: 0.336s
Archived website id = 2, period = day, Time elapsed: 0.284s
Archived website id = 2, period = week, 833 visits, Time elapsed: 0.375s
Archived website id = 2, period = month, 3531 visits, Time elapsed: 0.327s
Archived website id = 2, period = year, 3531 visits, Time elapsed: 0.306s
Archived website id = 3, period = day, Time elapsed: 0.259s
Archived website id = 3, period = week, 112 visits, Time elapsed: 0.264s
Archived website id = 3, period = month, 415 visits, Time elapsed: 0.317s
Archived website id = 3, period = year, 415 visits, Time elapsed: 0.278s
Archived website id = 5, period = day, Time elapsed: 0.263s
Archived website id = 5, period = week, 79 visits, Time elapsed: 0.259s
Archived website id = 5, period = month, 296 visits, Time elapsed: 0.280s
Archived website id = 5, period = year, 296 visits, Time elapsed: 0.298s
Archived website id = 7, period = day, Time elapsed: 0.251s
Archived website id = 7, period = week, 131 visits, Time elapsed: 0.254s
Archived website id = 7, period = month, 515 visits, Time elapsed: 0.334s
Archived website id = 7, period = year, 515 visits, Time elapsed: 0.286s
Archived website id = 8, period = day, Time elapsed: 0.259s
Archived website id = 8, period = week, 73396 visits, Time elapsed: 0.373s
ERROR: Got invalid response from API request: module=API&method=VisitsSummary.getVisits&idSite=8&period=month&date=last12&format=php&token_auth=blahblahblah&trigger=archivephp. Response was '<br />
<b>Fatal error</b>: Out of memory (allocated 257949696) (tried to allocate 71 bytes) in <b>public_html/piwik/core/DataTable.php</b> on line <b>1071</b><br />
'
Archived website id = 8, period = month, 0 visits, Time elapsed: 22.981s
ERROR: Got invalid response from API request: module=API&method=VisitsSummary.getVisits&idSite=8&period=year&date=last12&format=php&token_auth=blahblahblah&trigger=archivephp. Response was '<br />
<b>Fatal error</b>: Out of memory (allocated 257949696) (tried to allocate 32 bytes) in <b>public_html/piwik/core/DataTable.php</b> on line <b>1071</b><br />
'
Archived website id = 8, period = year, 0 visits, Time elapsed: 17.844s
Archived website id = 9, period = day, Time elapsed: 0.246s
Archived website id = 9, period = week, 14 visits, Time elapsed: 0.258s
Archived website id = 9, period = month, 90 visits, Time elapsed: 0.276s
Archived website id = 9, period = year, 90 visits, Time elapsed: 0.256s
Archived website id = 10, period = day, Time elapsed: 0.274s
Archived website id = 10, period = week, 31 visits, Time elapsed: 0.250s
Archived website id = 10, period = month, 61 visits, Time elapsed: 0.293s
Archived website id = 10, period = year, 61 visits, Time elapsed: 0.267s
Done archiving!
---------------------------
SUMMARY
Total daily visits archived: 304
Archived today's reports for 8 websites
Archived week/month/year for 8 websites.
Skipped 0 websites: no new visit since the last script execution
Skipped 0 websites day archiving: existing daily reports are less than 7200 seconds old
Skipped 0 websites week/month/year archiving: existing periods reports are less than 3600 seconds old
Total API requests: 32
done: 8/8 100%, 304 v, 8 wtoday, 8 wperiods, 32 req, 50220 ms, 2 errors. eg. 'Got invalid response from API request: module=API&method=VisitsSummary.getVisits&idSite=8&period=month&date=last12&format=php&token_auth=blahblahblah&trigger=archivephp. Response was '<br />
<b>Fatal error</b>: Out of memory (allocated 257949696) (tried to allocate 71 bytes) in <b>public_html/piwik/core/DataTable.php</b>'
Time elapsed: 50.220s
My total database size is down to 70Mb again, but since I’m limited to 256Mb by the host, does this mean that I still won’t be able to process all of the outstanding data for Site 8, no matter what I try?