Archive run in cronjob throws error in 3.13.1

Cron command:
root /opt/rh/rh-php71/root/bin/php /opt/rh/httpd24/root/var/www/html/matomo/console core:archive --url=https://<server_url> > /var/log/matomo-archive.log
Error message from log:

INFO [2020-02-12 14:05:01] 22442 ---------------------------
INFO [2020-02-12 14:05:01] 22442 INIT
INFO [2020-02-12 14:05:01] 22442 Running Matomo 3.13.1 as Super User
INFO [2020-02-12 14:05:01] 22442 ---------------------------
INFO [2020-02-12 14:05:01] 22442 NOTES
INFO [2020-02-12 14:05:01] 22442 - Async process archiving supported, using CliMulti.
INFO [2020-02-12 14:05:01] 22442 - Reports for today will be processed at most every 900 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2020-02-12 14:05:01] 22442 - Reports for the current week/month/year will be requested at most every 3600 seconds.
INFO [2020-02-12 14:05:01] 22442 - Archiving was last executed without error 54 min 2s ago
INFO [2020-02-12 14:05:01] 22442 - Will invalidate archived reports for 2020-02-12 for following websites ids: 10,14,15,17,18,19,1,20,21,22,23,24,26,28,29,2,31,32,36,3,40,48,49,4,50,5,8
INFO [2020-02-12 14:05:02] 22442 ---------------------------
INFO [2020-02-12 14:05:02] 22442 START
INFO [2020-02-12 14:05:02] 22442 Starting Matomo reports archiving…
INFO [2020-02-12 14:05:02] 22442 - tracking data found for website id 1 since 2020-02-12 13:10:59 UTC (since the last successful archiving)
INFO [2020-02-12 14:05:02] 22442 Will pre-process for website id = 1, period = day, date = last1
INFO [2020-02-12 14:05:02] 22442 - pre-processing all visits
WARNING [2020-02-12 14:05:04] 22442 /opt/rh/httpd24/root/var/www/html/matomo/vendor/composer/ClassLoader.php(444): Warning - include(/opt/rh/httpd24/root/var/www/html/matomo/vendor/composer/…/…/plugins/ExamplePlugin/Archiver.php): failed to open stream: No such file or directory - Matomo 3.13.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2020-02-12 14:05:04] 22442 /opt/rh/httpd24/root/var/www/html/matomo/vendor/composer
/ClassLoader.php(444): Warning - include(): Failed opening ‘/opt/rh/httpd24/root/var/www/html/matomo/vendor/composer/…/…/plugins/ExamplePlugin/Archiver.php’ for inclusion (include_path=’/opt/rh/httpd24/root/var/www/html/matomo/vendor/pear/pear_exception:/opt/rh/httpd24/root/var/www/html/matomo/vendor/pear/console_getopt:/opt/rh/httpd24/root/var/www/html/matomo/vendor/pear/pear-core-minimal/src:/opt/rh/httpd24/root/var/www/html/matomo/vendor/pear/archive_tar:.:/opt/rh/rh-php71/root/usr/share/pear:/opt/rh/rh-php71/root/usr/share/php’) - Matomo 3.13.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

can you try to disable this plugin with:

cd path/to/matomo
./console plugin:deactivate ExamplePlugin

does it fix the issue then maybe?

1 Like

Thanks, no idea why those were activated, I think from a previous release it must have snuck into the config.

1 Like