You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an issue with archiving in 3.13.0.
Archiving i started as documented: /var/www/console core:archive -vvv
We have noticed that for one site that archiving fails when period=year&date=last3:
INFO [2019-12-18 07:46:53] 24567 Error: Got invalid response from API request: ?module=API&method=API.get&idSite=8&period=year&date=last3&format=php&trigger=archivephp.
ERROR [2019-12-18 07:46:53] 24567 1 total errors during this script execution, please investigate and try and fix these errors.
[Exception]
1 total errors during this script execution, please investigate and try and fix these errors.
Exception trace:
() at /var/www/core/CronArchive.php:589
Piwik\CronArchive->logFatalError() at /var/www/core/CronArchive.php:582
Piwik\CronArchive->end() at /var/www/core/CronArchive.php:326
Piwik\CronArchive->Piwik\{closure}() at /var/www/core/Access.php:639
Piwik\Access::doAsSuperUser() at /var/www/core/CronArchive.php:327
Piwik\CronArchive->main() at /var/www/plugins/CoreConsole/Commands/CoreArchiver.php:27
Piwik\Plugins\CoreConsole\Commands\CoreArchiver->execute() at /var/www/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
Symfony\Component\Console\Command\Command->run() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at n/a:n/a
call_user_func() at /var/www/core/Console.php:103
Piwik\Console->Piwik\{closure}() at /var/www/core/Access.php:639
Piwik\Access::doAsSuperUser() at /var/www/core/Console.php:104
Piwik\Console->doRun() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:126
2019-12-18T08:46:53.780+01:00
Symfony\Component\Console\Application->run() at /var/www/console:27
For all other sites, a date value of last2 is used. But for this one site, a value of last3 is used for week, month, year. The day periode is using last2:
Note that it is only period=year&date=last3 that fails, period=[week,month]&date=last3 executes successfully.
@tsteur You are correct, this is not a bug. We are in fact running out of memory but it isn't reported anywhere.
In my env we use AWS ECS to run container instances of Matomo. There is hard and soft memory limits set on the process that performs the archive process. When it runs out of memory and swap, it seems docker kills the offending php process, not the docker container itself. This contradicts what I'm reading from the docker docs, but I'm not going to spend more time on trying to figure out why.
This is probably why the response in matomo isn't clearer as well, the process is killed and no return data is given. Could that explain why the error msg isn't more clear, or is this as good as it gets ?
tsteur
added
the
answered
For when a question was asked and we referred to forum or answered it.
label
Dec 19, 2019
There seems to be an issue with archiving in 3.13.0.
Archiving i started as documented:
/var/www/console core:archive -vvv
We have noticed that for one site that archiving fails when period=year&date=last3:
Related issue: #15086
For all other sites, a date value of
last2
is used. But for this one site, a value oflast3
is used for week, month, year. Theday
periode is usinglast2
:Note that it is only
period=year&date=last3
that fails,period=[week,month]&date=last3
executes successfully.I think the problem is in this function:
matomo/core/CronArchive.php
Line 1627 in ee43c6a
Our current workaround is to start the archive process with
--force-date-last-n 2
The text was updated successfully, but these errors were encountered: