@Programie opened this Issue on August 8th 2019

I've configured a cronjob to execute core:archive every hour. In some executions the job fails with an error "There was an error while regenerating container releases: Entry "Piwik\Auth" cannot be resolved: the class is not instantiable".

I've already asked for help in the Matomo forums but got referred here to open an issue.

The following exception is thrown:

ERROR [2019-08-08 05:01:37] 17942  There was an error while regenerating container releases: Entry "Piwik\Auth" cannot be resolved: the class is not instantiable
Full definition:
Object (
   class = #NOT INSTANTIABLE# Piwik\Auth
   scope = singleton
   lazy = false
)<a href='/0'>#0</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(243): DI\Definition\Exception\DefinitionException::create(Object(DI\Definition\ObjectDefinition), 'Entry "Piwik\\Au...')
<a href='/1'>#1</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(126): DI\Definition\Resolver\ObjectCreator->assertClassIsInstantiable(Object(DI\Definition\ObjectDefinition))
<a href='/2'>#2</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(70): DI\Definition\Resolver\ObjectCreator->createInstance(Object(DI\Definition\ObjectDefinition), Array)
<a href='/3'>#3</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ResolverDispatcher.php(58): DI\Definition\Resolver\ObjectCreator->resolve(Object(DI\Definition\ObjectDefinition), Array)
<a href='/4'>#4</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Container.php(303): DI\Definition\Resolver\ResolverDispatcher->resolve(Object(DI\Definition\ObjectDefinition), Array)
<a href='/5'>#5</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Container.php(131): DI\Container->resolveDefinition(Object(DI\Definition\ObjectDefinition))
<a href='/6'>#6</a> /var/www/b/piwik/core/Container/StaticContainer.php(80): DI\Container->get('Piwik\\Auth')
<a href='/7'>#7</a> /var/www/b/piwik/core/Piwik.php(567): Piwik\Container\StaticContainer::get('Piwik\\Auth')
<a href='/8'>#8</a> /var/www/b/piwik/plugins/CoreHome/Menu.php(32): Piwik\Piwik::getLoginPluginName()
<a href='/9'>#9</a> /var/www/b/piwik/plugins/CoreHome/Menu.php(20): Piwik\Plugins\CoreHome\Menu->getLoginModule()
<a href='/10'>#10</a> /var/www/b/piwik/core/Menu/MenuTop.php(57): Piwik\Plugins\CoreHome\Menu->configureTopMenu(Object(Piwik\Menu\MenuTop))
<a href='/11'>#11</a> /var/www/b/piwik/plugins/TagManager/Controller.php(207): Piwik\Menu\MenuTop->getMenu()
<a href='/12'>#12</a> /var/www/b/piwik/plugins/TagManager/Controller.php(53): Piwik\Plugins\TagManager\Controller->renderTemplate('<a class='mention' href='https://github.com/TagManager'>@TagManager</a>/deb...')
<a href='/13'>#13</a> [internal function]: Piwik\Plugins\TagManager\Controller->debug()
<a href='/14'>#14</a> /var/www/b/piwik/core/FrontController.php(589): call_user_func_array(Array, Array)
<a href='/15'>#15</a> /var/www/b/piwik/core/FrontController.php(165): Piwik\FrontController->doDispatch('TagManager', 'debug', Array)
<a href='/16'>#16</a> /var/www/b/piwik/plugins/TagManager/Context/WebContext/JavaScriptTagManagerLoader.php(72): Piwik\FrontController->dispatch('TagManager', 'debug')
<a href='/17'>#17</a> /var/www/b/piwik/plugins/TagManager/Context/WebContext.php(166): Piwik\Plugins\TagManager\Context\WebContext\JavaScriptTagManagerLoader->getPreviewJsContent()
<a href='/18'>#18</a> /var/www/b/piwik/plugins/TagManager/Context/WebContext.php(152): Piwik\Plugins\TagManager\Context\WebContext->addPreviewCode('/*!!\n * Matomo ...', true, true, Array)
<a href='/19'>#19</a> /var/www/b/piwik/plugins/TagManager/Model/Container.php(123): Piwik\Plugins\TagManager\Context\WebContext->generate(Array)
<a href='/20'>#20</a> /var/www/b/piwik/plugins/TagManager/TagManager.php(253): Piwik\Plugins\TagManager\Model\Container->generateContainer(97, 'DDLlW4wP')
<a href='/21'>#21</a> /var/www/b/piwik/core/Access.php(628): Piwik\Plugins\TagManager\TagManager->Piwik\Plugins\TagManager\{closure}()
<a href='/22'>#22</a> /var/www/b/piwik/core/Piwik.php(838): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/23'>#23</a> /var/www/b/piwik/plugins/TagManager/TagManager.php(261): Piwik\Piwik::doAsSuperUser(Object(Closure))
<a href='/24'>#24</a> /var/www/b/piwik/plugins/TagManager/Tasks.php(34): Piwik\Plugins\TagManager\TagManager->regenerateReleasedContainers()
<a href='/25'>#25</a> [internal function]: Piwik\Plugins\TagManager\Tasks->regenerateReleasedContainers(NULL)
<a href='/26'>#26</a> /var/www/b/piwik/core/Scheduler/Scheduler.php(264): call_user_func(Array, NULL)
<a href='/27'>#27</a> /var/www/b/piwik/core/Scheduler/Scheduler.php(136): Piwik\Scheduler\Scheduler->executeTask(Object(Piwik\Scheduler\Task))
<a href='/28'>#28</a> /var/www/b/piwik/plugins/CoreAdminHome/API.php(65): Piwik\Scheduler\Scheduler->run()
<a href='/29'>#29</a> /var/www/b/piwik/core/CronArchive.php(617): Piwik\Plugins\CoreAdminHome\API->runScheduledTasks()
<a href='/30'>#30</a> /var/www/b/piwik/core/CronArchive.php(317): Piwik\CronArchive->runScheduledTasks()
<a href='/31'>#31</a> /var/www/b/piwik/core/Access.php(628): Piwik\CronArchive->Piwik\{closure}()
<a href='/32'>#32</a> /var/www/b/piwik/core/CronArchive.php(319): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/33'>#33</a> /var/www/b/piwik/plugins/CoreConsole/Commands/CoreArchiver.php(27): Piwik\CronArchive->main()
<a href='/34'>#34</a> /var/www/b/piwik/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Piwik\Plugins\CoreConsole\Commands\CoreArchiver->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/35'>#35</a> /var/www/b/piwik/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))
<a href='/36'>#36</a> /var/www/b/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Piwik\Plugins\CoreConsole\Commands\CoreArchiver), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/37'>#37</a> [internal function]: Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/38'>#38</a> /var/www/b/piwik/core/Console.php(98): call_user_func(Array, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/39'>#39</a> /var/www/b/piwik/core/Access.php(628): Piwik\Console->Piwik\{closure}()
<a href='/40'>#40</a> /var/www/b/piwik/core/Console.php(99): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/41'>#41</a> /var/www/b/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Piwik\Console->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/42'>#42</a> /var/www/b/piwik/console(27): Symfony\Component\Console\Application->run()
<a href='/43'>#43</a> {main}
ERROR [2019-08-08 05:01:38] 17942  There was an error while regenerating container releases: Entry "Piwik\Auth" cannot be resolved: the class is not instantiable
Full definition:
Object (
   class = #NOT INSTANTIABLE# Piwik\Auth
   scope = singleton
   lazy = false
)<a href='/0'>#0</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(243): DI\Definition\Exception\DefinitionException::create(Object(DI\Definition\ObjectDefinition), 'Entry "Piwik\\Au...')
<a href='/1'>#1</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(126): DI\Definition\Resolver\ObjectCreator->assertClassIsInstantiable(Object(DI\Definition\ObjectDefinition))
<a href='/2'>#2</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(70): DI\Definition\Resolver\ObjectCreator->createInstance(Object(DI\Definition\ObjectDefinition), Array)
<a href='/3'>#3</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Definition/Resolver/ResolverDispatcher.php(58): DI\Definition\Resolver\ObjectCreator->resolve(Object(DI\Definition\ObjectDefinition), Array)
<a href='/4'>#4</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Container.php(303): DI\Definition\Resolver\ResolverDispatcher->resolve(Object(DI\Definition\ObjectDefinition), Array)
<a href='/5'>#5</a> /var/www/b/piwik/vendor/php-di/php-di/src/DI/Container.php(131): DI\Container->resolveDefinition(Object(DI\Definition\ObjectDefinition))
<a href='/6'>#6</a> /var/www/b/piwik/core/Container/StaticContainer.php(80): DI\Container->get('Piwik\\Auth')
<a href='/7'>#7</a> /var/www/b/piwik/core/Piwik.php(567): Piwik\Container\StaticContainer::get('Piwik\\Auth')
<a href='/8'>#8</a> /var/www/b/piwik/plugins/CoreHome/Menu.php(32): Piwik\Piwik::getLoginPluginName()
<a href='/9'>#9</a> /var/www/b/piwik/plugins/CoreHome/Menu.php(20): Piwik\Plugins\CoreHome\Menu->getLoginModule()
<a href='/10'>#10</a> /var/www/b/piwik/core/Menu/MenuTop.php(57): Piwik\Plugins\CoreHome\Menu->configureTopMenu(Object(Piwik\Menu\MenuTop))
<a href='/11'>#11</a> /var/www/b/piwik/plugins/TagManager/Controller.php(207): Piwik\Menu\MenuTop->getMenu()
<a href='/12'>#12</a> /var/www/b/piwik/plugins/TagManager/Controller.php(53): Piwik\Plugins\TagManager\Controller->renderTemplate('<a class='mention' href='https://github.com/TagManager'>@TagManager</a>/deb...')
<a href='/13'>#13</a> [internal function]: Piwik\Plugins\TagManager\Controller->debug()
<a href='/14'>#14</a> /var/www/b/piwik/core/FrontController.php(589): call_user_func_array(Array, Array)
<a href='/15'>#15</a> /var/www/b/piwik/core/FrontController.php(165): Piwik\FrontController->doDispatch('TagManager', 'debug', Array)
<a href='/16'>#16</a> /var/www/b/piwik/plugins/TagManager/Context/WebContext/JavaScriptTagManagerLoader.php(72): Piwik\FrontController->dispatch('TagManager', 'debug')
<a href='/17'>#17</a> /var/www/b/piwik/plugins/TagManager/Context/WebContext.php(166): Piwik\Plugins\TagManager\Context\WebContext\JavaScriptTagManagerLoader->getPreviewJsContent()
<a href='/18'>#18</a> /var/www/b/piwik/plugins/TagManager/Context/WebContext.php(152): Piwik\Plugins\TagManager\Context\WebContext->addPreviewCode('/*!!\n * Matomo ...', true, true, Array)
<a href='/19'>#19</a> /var/www/b/piwik/plugins/TagManager/Model/Container.php(123): Piwik\Plugins\TagManager\Context\WebContext->generate(Array)
<a href='/20'>#20</a> /var/www/b/piwik/plugins/TagManager/TagManager.php(253): Piwik\Plugins\TagManager\Model\Container->generateContainer(97, 'DDLlW4wP')
<a href='/21'>#21</a> /var/www/b/piwik/core/Access.php(628): Piwik\Plugins\TagManager\TagManager->Piwik\Plugins\TagManager\{closure}()
<a href='/22'>#22</a> /var/www/b/piwik/core/Piwik.php(838): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/23'>#23</a> /var/www/b/piwik/plugins/TagManager/TagManager.php(261): Piwik\Piwik::doAsSuperUser(Object(Closure))
<a href='/24'>#24</a> [internal function]: Piwik\Plugins\TagManager\TagManager->regenerateReleasedContainers(Object(Piwik\CronArchive))
<a href='/25'>#25</a> /var/www/b/piwik/core/EventDispatcher.php(141): call_user_func_array(Array, Array)
<a href='/26'>#26</a> /var/www/b/piwik/core/Piwik.php(778): Piwik\EventDispatcher->postEvent('CronArchive.end', Array, false, Array)
<a href='/27'>#27</a> /var/www/b/piwik/core/CronArchive.php(555): Piwik\Piwik::postEvent('CronArchive.end', Array)
<a href='/28'>#28</a> /var/www/b/piwik/core/CronArchive.php(318): Piwik\CronArchive->end()
<a href='/29'>#29</a> /var/www/b/piwik/core/Access.php(628): Piwik\CronArchive->Piwik\{closure}()
<a href='/30'>#30</a> /var/www/b/piwik/core/CronArchive.php(319): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/31'>#31</a> /var/www/b/piwik/plugins/CoreConsole/Commands/CoreArchiver.php(27): Piwik\CronArchive->main()
<a href='/32'>#32</a> /var/www/b/piwik/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Piwik\Plugins\CoreConsole\Commands\CoreArchiver->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/33'>#33</a> /var/www/b/piwik/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))
<a href='/34'>#34</a> /var/www/b/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Piwik\Plugins\CoreConsole\Commands\CoreArchiver), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/35'>#35</a> [internal function]: Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/36'>#36</a> /var/www/b/piwik/core/Console.php(98): call_user_func(Array, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/37'>#37</a> /var/www/b/piwik/core/Access.php(628): Piwik\Console->Piwik\{closure}()
<a href='/38'>#38</a> /var/www/b/piwik/core/Console.php(99): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/39'>#39</a> /var/www/b/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Piwik\Console->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/40'>#40</a> /var/www/b/piwik/console(27): Symfony\Component\Console\Application->run()
<a href='/41'>#41</a> {main}
  • Matomo version: 3.11.0
  • OS: Debian Jessie 8.11
  • PHP version: 7.2.20 (Debian packages provided by sury.org)
  • MySQL version: MariaDB 10.3.8
  • Additionally enabled plugins: LoginLdap (v4.0.7), MarketingCampaignsReporting (v3.1.1)
@tsteur commented on August 8th 2019 Member
This Issue was closed on August 8th 2019
Powered by GitHub Issue Mirror