Error in cronjob for archiving job


#1

Hi,

my crontab on our piwik installation server (Linux SLES11) is the following:
5 * * * * /usr/bin/php /srv/www/vhosts/lxapp57.esag.net/project/piwik/console core:archive --url=http://lxapp57.esag.net/project/piwik/ > /srv/www/vhosts/lxapp57.esag.net/project/piwik/piwik-archive.log
–> So the job runs 5 mins past every hour.

As admin I got about 3 times a day the following mail with the following error text:

ERROR CoreConsole[2015-01-02 04:05:11] [3e6ee] Got invalid response from API request: http://lxapp57.esag.net/project/piwik/index.php?module=API&method=API.get&idSite=1&period=month&date=last2&format=php&token_auth=c0e024d9200b5705bc4804722636378a&trigger=archivephp. Response was ’

There is an error. Please report the message (Piwik 2.9.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning:
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Http.php on line 408

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [:]
#1 file_get_contents(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Http.php:408]
#2 Piwik\Http::sendHttpRequestBy(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Http.php:94]
#3 Piwik\Http::sendHttpRequest(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/UpdateCheck.php:72]
#4 Piwik\UpdateCheck::check(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/plugins/CoreUpdater/CoreUpdater.php:156]
#5 Piwik\Plugins\CoreUpdater\CoreUpdater->updateCheck(…) called at [:]
#6 call_user_func_array(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/EventDispatcher.php:121]
#7 Piwik\EventDispatcher->postEvent(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Piwik.php:684]
#8 Piwik\Piwik::postEvent(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Fr
ontController.php:451]
#9 Piwik\FrontController->init(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/dispatch.php:35]
#10 require_once(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/index.php:46]
#11 require_once(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/CliMulti/RequestCommand.php:53]
#12 Piwik\CliMulti\RequestCommand->execute(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252]
#13 Symfony\Component\Console\Command\Command->run(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php:889]
#14 Symfony\Component\Console\Application->doRunCommand(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php:193]
#15 Symfony\Component\Console\Applica
tion->doRun(…) called at [:]
#16 call_user_func(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Console.php:60]
#17 Piwik{closure}(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Access.php:454]
#18 Piwik\Access::doAsSuperUser(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Console.php:61]
#19 Piwik\Console->doRun(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php:124]
#20 Symfony\Component\Console\Application->run(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/console:30]


There is an error. Please report the message (Piwik 2.9.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning:
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Http.php on line 408

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [:]
#1 file_get_contents(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Http.php:408]
#2 Piwik\Http::sendHttpRequestBy(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Http.php:94]
#3 Piwik\Http::sendHttpRequest(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/UpdateCheck.php:72]
#4 Piwik\UpdateCheck::check(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/plugins/CoreUpdater/CoreUpdater.php:156]

#5 Piwik\Plugins\CoreUpdater\CoreUpdater->updateCheck(…) called at [:]
#6 call_user_func_array(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/EventDispatcher.php:121]
#7 Piwik\EventDispatcher->postEvent(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/Piwik.php:684]
#8 Piwik\Piwik::postEvent(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/FrontController.php:451]
#9 Piwik\FrontController->init(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/dispatch.php:35]
#10 require_once(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/index.php:46]
#11 require_once(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/core/CliMulti/RequestCommand.php:53]
#12 Piwik\CliMulti\RequestCommand->execute(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/piwik/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252]<br /

#13 Symfony\Component\Console\Command\Command->run(…) called at [/srv/www/vhosts/lxapp57.esag.net/project/p
ERROR CoreConsole[2015-01-02 04:05:15] [3e6ee] 1 total errors during this script execution, please investigate and try and fix these errors.

At the other times it is running without errors. Could you please give me a hint, what is wrong configured in our installation?

Thx in advance and kind regards,
Frank