New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matomo archive fails #287
Comments
Yesterday I tried to better configure MySQL: 1a5ba6b And also fixed logs in service: c31fe14 I found that there is a |
Still failing, and I have this message:
I took a closer look at the code to see where this error occurs. It seems that archive console command has two way to process archival: either by launching shell process to do the job, either by calling the server API (for each archival request). My error seems to be triggered only in the case of calling the server API. I verified that we should use process using php in interactive mode: cd /var/www/html matomo/
php -a
php > include "console";
...
php > use Piwik\CliMulti\Process;
php > echo Piwik\CliMulti\Process::isSupported();
1
php > use Piwik\CliMulti;
php > $p = new Piwik\CliMulti();
php > echo $p->supportsAsync();
1 But the codes that launch requests reads like this: private function executeUrlCommand($cmdId, $url, $numUrls)
{
if ($this->supportsAsync) {
if ($numUrls === 1) {
$output = new StaticOutput($cmdId);
$this->executeSyncCli($url, $output);
} else {
$output = new Output($cmdId);
$this->executeAsyncCli($url, $output, $cmdId);
}
} else {
$output = new StaticOutput($cmdId);
$this->executeNotAsyncHttp($url, $output);
}
$this->outputs[] = $output;
}
But then max_execution_time is far lower for php fpm. To try to see if it fix the issue, I increment |
I managed to get exports of Matomo logs for the OFF web site for all days except 4 days that are still failing:
|
We have a lot of message that core:archive is failing.
The text was updated successfully, but these errors were encountered: