4.6.1 - Error after Update - Please run the update process first

Hey there,
just updated my 4.4.x Version (not 100% sure what is was) to 4.6.1 … can reach Web Interface, System Check won’t show any Error at all - all seems to work … but Cronjob throws Errors:

INFO [2021-12-09 15:48:44] 731 Error: Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=884&period=month&date=2021-12-01&format=json&trigger=archivephp. Response was ‘{“result”:“error”,“message”:"Piwik and/or some plugins have been upgraded to a new version. –> Please run the update process first. See documentation: https://matomo.org/docs/update/ #0 [internal function]: Piwik\Plugins\CoreUpdater\CoreUpdater->dispatch() #1 /var/www/dbuser/core/EventDispatcher.php(141): call_user_func_array(Array, Array) #2 /var/www/dbuser/core/Piwik.php(845): Piwik\EventDispatcher->postEvent(‘Request.dispatc…’, Array, false, Array) #3 /var/www/dbuser/core/FrontController.php(378): Piwik\Piwik::postEvent(‘Request.dispatc…’) #4 /var/www/dbuser/core/dispatch.php(31): Piwik\FrontController->init() #5 /var/www/dbuser/index.php(25): require_once(’/var/www/dbuser/…‘) #6 /var/www/dbuser/core/CliMulti/RequestCommand.php(79): require_once(’/var/www/dbuser/…‘) #7 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Piwik\CliMulti\RequestCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Piwik\CliMulti\RequestCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 [internal function]: Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/dbuser/core/Console.php(130): call_user_func(Array, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/dbuser/core/Access.php(670): Piwik\Console->Piwik\{closure}() #13 /var/www/dbuser/core/Console.php(131): Piwik\Access::doAsSuperUser(Object(Closure)) #14 /var/www/dbuser/core/Console.php(82): Piwik\Console->doRunImpl(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Piwik\Console->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/dbuser/console(32): Symfony\Component\Console\Application->run() #17 {main}",“backtrace”:"Piwik and/or some plugins have been upgraded to a new version. \n → Please run the update process first. See documentation: https://matomo.org/docs/update/ \n\n#0 [internal function]: Piwik\Plugins\CoreUpdater\CoreUpdater->dispatch()\n#1 /var/www/dbuser/core/EventDispatcher.php(141): call_user_func_array(Array, Array)\n#2 /var/www/dbuser/core/Piwik.php(845): Piwik\EventDispatcher->postEvent(‘Request.dispatc…’, Array, false, Array)\n#3 /var/www/dbuser/core/FrontController.php(378): Piwik\Piwik::postEvent(‘Request.dispatc…’)\n#4 /var/www/dbuser/core/dispatch.php(31): Piwik\FrontController->init()\n#5 /var/www/dbuser/index.php(25): require_once(’/var/www/dbuser/…‘)\n#6 /var/www/dbuser/core/CliMulti/RequestCommand.php(79): require_once(’/var/www/dbuser/…‘)\n#7 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Piwik\CliMulti\RequestCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#8 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#9 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Piwik\CliMulti\RequestCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#10 [internal function]: Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#11 /var/www/dbuser/core/Console.php(130): call_user_func(Array, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#12 /var/www/dbuser/core/Access.php(670): Piwik\Console->Piwik\{closure}()\n#13 /var/www/dbuser/core/Console.php(131): Piwik\Access::doAsSuperUser(Object(Closure))\n#14 /var/www/dbuser/core/Console.php(82): Piwik\Console->doRunImpl(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#15 /var/www/dbuser/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Piwik\Console->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#16 /var/www/dbuser/console(32): Symfony\Component\Console\Application->run()\n#17 {main}"}’

also those Errors are thrown:


WARNING [2021-12-09 15:48:44] 731  /var/www/piwik/plugins/LanguagesManager/API.php(74): Notice - Undefined index: Languages - Matomo 4.4.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 [2021-12-09 15:48:44] 731  /var/www/piwik/plugins/LanguagesManager/API.php(79): Warning - array_intersect(): Expected parameter 2 to be an array, null given - Matomo 4.4.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 [2021-12-09 15:48:44] 731  /var/www/piwik/plugins/LanguagesManager/API.php(393): Warning - array_search() expects parameter 2 to be array, null given - Matomo 4.4.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)

Hope somone can give me a helping Hand on those Errors?

thx, bye from Austria
Andreas

alright - it looks like the cron is no longer failing. My guess now would be that the cron was still running before the update was carried out completely … unfortunately I didn’t check that beforehand.

Would it be possible to integrate a check before the update whether the archive job (or others that could cause problems) is currently running? (I know there is a hint …)

best greetings from Tyrol
Andreas

1 Like