Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
I am experiencing an issue where my Matomo instance is unable to complete its scheduled archiving tasks triggered by cron jobs. The archiving process seems to enter an infinite loop and never finishes.
The issue has significantly affected the performance of my instance and has resulted in resource consumption spikes on my server.
What should happen?
The archiving process should complete successfully without entering an infinite loop. Cron jobs should terminate after processing the scheduled archiving tasks.
How can this be reproduced?
Configure Matomo with the following environment:
Cron task for archiving set up as: php -d memory_limit=-1 console core:archive --url=https://xxx.xxx.com/ --matomo-domain=xxx.xxx.com --verbose > /home/xxx.xxx.com/matomo-archive-xxxx.log
Instance with a moderate to high amount of traffic.
Trigger the cron task for archiving.
Observe the logs and server behavior:
The task never completes.
Resource usage increases significantly.
Refer to the attached logs and screenshots for detailed behavior.
What happened?
I am experiencing an issue where my Matomo instance is unable to complete its scheduled archiving tasks triggered by cron jobs. The archiving process seems to enter an infinite loop and never finishes.
The issue has significantly affected the performance of my instance and has resulted in resource consumption spikes on my server.
What should happen?
The archiving process should complete successfully without entering an infinite loop. Cron jobs should terminate after processing the scheduled archiving tasks.
How can this be reproduced?
php -d memory_limit=-1 console core:archive --url=https://xxx.xxx.com/ --matomo-domain=xxx.xxx.com --verbose > /home/xxx.xxx.com/matomo-archive-xxxx.log
Logs download link https://transfert.free.fr/N324JWw
Debug added into ./core/CronArchive/QueueConsumer.php l200
config.ini.php
Matomo version
5.1.2
PHP version
8.1
Server operating system
Centos7
What browsers are you seeing the problem on?
No response
Computer operating system
No response
Relevant log output
No response
Validations