@jorgeuos opened this Issue on April 29th 2020

After updating Matomo Core to 3.13.5 I get this error when trying to re-generate JS scripts.

bash-5.0$ ./console tagmanager:regenerate-released-containers
ERROR [2020-04-29 18:08:37] 73  There was an error while regenerating container releases: No entry or class found for 'Piwik\Plugins\CustomJsTracker\TrackerUpdater'<a href='/0'>#0</a> /var/www/html/core/Container/StaticContainer.php(80): DI\Container->get('Piwik\\Plugins\\C...')
<a href='/1'>#1</a> /var/www/html/plugins/TagManager/Template/Tag/MatomoTag.php(151): Piwik\Container\StaticContainer::get('Piwik\\Plugins\\C...')
<a href='/2'>#2</a> /var/www/html/plugins/TagManager/Context/BaseContext/TemplateLocator.php(54): Piwik\Plugins\TagManager\Template\Tag\MatomoTag->loadTemplate('web', Array)
<a href='/3'>#3</a> /var/www/html/plugins/TagManager/Context/WebContext.php(110): Piwik\Plugins\TagManager\Context\BaseContext\TemplateLocator->loadTagTemplate(Array, 'web')
<a href='/4'>#4</a> /var/www/html/plugins/TagManager/Model/Container.php(123): Piwik\Plugins\TagManager\Context\WebContext->generate(Array)
<a href='/5'>#5</a> /var/www/html/plugins/TagManager/TagManager.php(255): Piwik\Plugins\TagManager\Model\Container->generateContainer(3, '1dOA9X95')
<a href='/6'>#6</a> /var/www/html/core/Context.php(75): Piwik\Plugins\TagManager\TagManager->Piwik\Plugins\TagManager\{closure}()
<a href='/7'>#7</a> /var/www/html/plugins/TagManager/TagManager.php(256): Piwik\Context::changeIdSite(3, Object(Closure))
<a href='/8'>#8</a> /var/www/html/core/Access.php(635): Piwik\Plugins\TagManager\TagManager->Piwik\Plugins\TagManager\{closure}()
<a href='/9'>#9</a> /var/www/html/plugins/TagManager/TagManager.php(264): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/10'>#10</a> [internal function]: Piwik\Plugins\TagManager\TagManager->regenerateReleasedContainers()
<a href='/11'>#11</a> /var/www/html/core/EventDispatcher.php(141): call_user_func_array(Array, Array)
<a href='/12'>#12</a> /var/www/html/core/Piwik.php(775): Piwik\EventDispatcher->postEvent('TagManager.rege...', Array, false, Array)
<a href='/13'>#13</a> /var/www/html/plugins/TagManager/Commands/RegenerateContainers.php(26): Piwik\Piwik::postEvent('TagManager.rege...')
<a href='/14'>#14</a> /var/www/html/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Piwik\Plugins\TagManager\Commands\RegenerateContainers->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/15'>#15</a> /var/www/html/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='/16'>#16</a> /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Piwik\Plugins\TagManager\Commands\RegenerateContainers), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/17'>#17</a> [internal function]: Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/18'>#18</a> /var/www/html/core/Console.php(140): call_user_func(Array, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/19'>#19</a> /var/www/html/core/Access.php(644): Piwik\Console->Piwik\{closure}()
<a href='/20'>#20</a> /var/www/html/core/Console.php(141): Piwik\Access::doAsSuperUser(Object(Closure))
<a href='/21'>#21</a> /var/www/html/core/Console.php(93): Piwik\Console->doRunImpl(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
<a href='/22'>#22</a> /var/www/html/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='/23'>#23</a> /var/www/html/console(32): Symfony\Component\Console\Application->run()
<a href='/24'>#24</a> {main}
Done
Error: error or warning logs detected, exit 1
bash-5.0$ php -v
PHP 7.3.17 (cli) (built: Apr 24 2020 18:17:51) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.17, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.17, Copyright (c) 1999-2018, by Zend Technologies
bash-5.0$

Running PHP 7.3.17
I will try to debug this locally.

@tsteur commented on April 29th 2020 Member

@jorgeuos is there any chance you are updating the Tag Manager through Git or similar?

No entry or class found for 'Piwik\Plugins\CustomJsTracker\TrackerUpdater'#

This indicates that potentially the Matomo 4 version of the Tag Manager is used (which is not compatible with Matomo 3). Not sure how this would happen though.

@jorgeuos commented on April 30th 2020

Ah, Thats a good lead actually. I need to go through how we fetch the plugins. Thanks.

@jorgeuos commented on April 30th 2020

Got it working now thanks!

@tsteur commented on April 30th 2020 Member

Awesome @jorgeuos do you mind letting us know what it was?

@jorgeuos commented on April 30th 2020

We pre-build our docker images, and TagManager was tagged with wrong release. So it was our workflow.

This Issue was closed on April 30th 2020
Powered by GitHub Issue Mirror