Hello,
I’ve set up a cron to launch archive task with this command in my cronfile:
docker compose exec --user www-data app ./console core:archive --url=XXXXXXXXXX
I have to regularly increase the RAM set with memory limit (today it’s 6Go), otherwise I have this error:
…
INFO [2025-09-01 09:25:05] 55 Will invalidate archived reports for yesterday in site ID = 1’s timezone (2025-08-31 00:00:00).
ERROR [2025-09-01 09:26:02] 55 Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2025-01-01&format=json&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of ‘memory_limit’ in your php.ini file. For more information and the error message please check in your PHP CLI error log file. As this core:archive command triggers PHP processes over the CLI, you can find where PHP CLI logs are stored by running this command: php -i | grep error_log
…
It seems a lot of memory to me, this Matomo server is consuming 1Go RAM, why archiving needs this amount of RAM ? Is it just normal, or is there some parameters to tweak?
I already try the --max-archives-to-process option but it doesn’t change anything.
I use 5.3.2 Matomo version, and it is installed with Docker compose.
Thanks for your help.
1 post - 1 participant