@bahooha opened this Issue on May 2nd 2019

I have archiving via CRON set up as per: https://matomo.org/docs/setup-auto-archiving/#linux-unix-how-to-set-up-a-crontab-to-automatically-archive-the-reports

This has worked perfectly for years, but unfortunately since a couple of weeks not anymore. I'm not sure if this is since the update to 3.9.1 or if it has started failing earlier. If I understand correct, the update to Matomo 3.9.1 has been installed on March 22 and the error/not working cron started on April 3rd.

On this day I've recieved an error email from cron:

2 total errors during this script execution, please investigate and try and fix these errors.  

core:archive [--url="..."] [--force-all-websites] [--force-all-periods[="..."]] [--force-timeout-for-periods[="..."]] [--skip-idsites[="..."]] [--skip-all-segments] [--force-idsites[="..."]] [--force-periods[="..."]] [--force-date-last-n="..."] [--force-date-range[="..."]] [--force-idsegments="..."] [--concurrent-requests-per-website[="..."]] [--concurrent-archivers[="..."]] [--disable-scheduled-tasks] [--accept-invalid-ssl-certificate] [--php-cli-options[="..."]]

At the times the CRON fires, I can see that the archive.log file is being updated, but shows an empty response. I can't find anything in the error logs.

When I manually trigger the archive.php as described in https://matomo.org/docs/setup-auto-archiving/#web-cron-when-your-web-host-does-not-support-cron-tasks I get the following error:
```Error: Entry "Piwik\Plugins\Monolog\Formatter\LineMessageFormatter" cannot be resolved: Parameter $logMessageFormat of construct() has no value defined or guessable
Full definition:
Object (
class = Piwik\Plugins\Monolog\Formatter\LineMessageFormatter
scope = singleton
lazy = false
$logMessageFormat = #UNDEFINED#
$allowInlineLineBreaks = (default value) true

I have checked if all files are available against a clean install. Nothing seems wrong.

Can anybody shed any light on this?
@tsteur commented on May 2nd 2019 Member

Looking at the code it does sound like some files are missing. Make sure you have the latest version and try maybe again to update the code using the manual 3 step update: https://matomo.org/docs/update/#the-manual-three-step-update

In case you're installing Matomo from git: that's not really recommended.

@bahooha commented on May 2nd 2019

I had already checked file integrity, but to be sure I've followed the steps from your link: no avail.

File are 100% identical to a clean installation.

Any other ideas?

@tsteur commented on May 2nd 2019 Member

Do you have some config/config.php created? Or maybe the plugin Monolog is not active?

@tsteur commented on May 2nd 2019 Member

In general we're not seeing this problem somewhere else, so it looks like some configuration or server issue.

@bahooha commented on May 2nd 2019

I do not understand why, but it turns out the Monolog plugin was inactive.

Thank you very much for your help, Thomas!

@tsteur commented on May 2nd 2019 Member

Awesome, glad you found it

@thelfensdrfer commented on May 11th 2019

Just wanted to say that I had the exact same error. Did we disable the plugins ourselves or did it happen automatically?

@tsteur commented on May 11th 2019 Member

Shouldn't have happened automatically.

This Issue was closed on May 2nd 2019
Powered by GitHub Issue Mirror