Closed ulfw closed 9 years ago
And I thought to update to 2.11.2 will fix this, but I cannot run the update command, because of the same error.
Hi @ulfw that's strange that it does not list the other commands. I think it's the first time this issue was reported... Maybe you can try re-upload all files from 2.11.2 and see if that fixes it?
No, it does not fix it. I have event installed piwik again (using existing databases) to avoid misconfiguration in the ini file, but nothing helps.
A parallel existing version 2.8.3 does run the command "./console list core". So I have no idea what to do?
All files are belonging to the web server user, so there can´t be any filesystem issues.
I have the same problem after upgrading from 2.8.3 to 2.11.2 The console tells:
[InvalidArgumentException]
There are no commands defined in the "core" namespace.
The upgrade could not be run from the console command, and cronjobs stopped working. It might be related to the fact that the server is running an ancient PHP 5.3.3
Puuh, thanks that I´m not the only one ;-) Same to me with the PHP version, running 5.3.8
Piwik 2.10 is running fine.
On an old local test system I updated from Piwik 2.8.0 to 2.11.2 and I have the same problem. It is a CentOS7 with PHP5.4.16. In config/config.ini.php there exists an entry PluginsInstalled[] = "CoreConsole".
I have the same problem, I'm using a default ubuntu precise setup. The webserver is apache and PHP.
The database is an MariaDB with Galera in an multi master setup.
The command below, I run on an just fresh installed database, where I just finished my piwik setup guide.
nginx_piwik@piwik01-[LOC]:/home/support$ /usr/bin/php5 /var/www/console core:archive --piwik-domain=http://piwik01/ -vvv
DEBUG SitesManager[2015-03-09 11:31:46] Db::fetchAll() executing SQL: SELECT idsite FROM piwik_site
[InvalidArgumentException]
There are no commands defined in the "core" namespace.
Exception trace:
() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:501
Symfony\Component\Console\Application->findNamespace() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:535
Symfony\Component\Console\Application->find() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:192
Symfony\Component\Console\Application->doRun() at n/a:n/a
call_user_func() at /var/www/core/Console.php:58
Piwik\{closure}() at /var/www/core/Access.php:454
Piwik\Access::doAsSuperUser() at /var/www/core/Console.php:59
Piwik\Console->doRun() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at /var/www/console:27
@mpiscaer thanks for the additional info, what's interesting here is that the logging works correctly so Piwik and plugins seem to work correctly except for the error… That's really weird because the code that loads the commands is very simple.
Could you try to run the ./console plugin:list
command to see the plugins that are installed and activated?
@mnapoli I get the following:
nginx_piwik@piwik01-[LOC]:/home/support$ /usr/bin/php5 /var/www/console plugin:list -vvv DEBUG SitesManager[2015-03-09 22:40:32] Db::fetchAll() executing SQL: SELECT idsite FROM piwik_site
[InvalidArgumentException]
There are no commands defined in the "plugin" namespace.
Exception trace: () at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:501 Symfony\Component\Console\Application->findNamespace() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:535 Symfony\Component\Console\Application->find() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:192 Symfony\Component\Console\Application->doRun() at n/a:n/a call_user_func() at /var/www/core/Console.php:58 Piwik{closure}() at /var/www/core/Access.php:454 Piwik\Access::doAsSuperUser() at /var/www/core/Console.php:59 Piwik\Console->doRun() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:126 Symfony\Component\Console\Application->run() at /var/www/console:27
nginx_piwik@piwik01-[LOC]:$
My configuration is:
; <?php exit; ?> DO NOT REMOVE THIS LINE ; file automatically generated or modified by Piwik; you can manually override the default values in global.ini.php by redefining them in this file. [database] host = "10.20.20.146" username = "piwik" password = "piwikww" dbname = "piwik" tablesprefix = "piwik" charset = "utf8"
[General] salt = salt trusted_hosts[] = "piwik01" ;bulk_requests_use_transaction = 0
[PluginsInstalled] PluginsInstalled[] = "Login" PluginsInstalled[] = "CoreAdminHome" PluginsInstalled[] = "UsersManager" PluginsInstalled[] = "SitesManager" PluginsInstalled[] = "Installation" PluginsInstalled[] = "CorePluginsAdmin" PluginsInstalled[] = "CoreHome" PluginsInstalled[] = "CoreVisualizations" PluginsInstalled[] = "Proxy" PluginsInstalled[] = "API" PluginsInstalled[] = "ExamplePlugin" PluginsInstalled[] = "Widgetize" PluginsInstalled[] = "Transitions" PluginsInstalled[] = "LanguagesManager" PluginsInstalled[] = "Actions" PluginsInstalled[] = "Dashboard" PluginsInstalled[] = "MultiSites" PluginsInstalled[] = "Referrers" PluginsInstalled[] = "UserSettings" PluginsInstalled[] = "DevicesDetection" PluginsInstalled[] = "Goals" PluginsInstalled[] = "SEO" PluginsInstalled[] = "Events" PluginsInstalled[] = "UserCountry" PluginsInstalled[] = "VisitsSummary" PluginsInstalled[] = "VisitFrequency" PluginsInstalled[] = "VisitTime" PluginsInstalled[] = "VisitorInterest" PluginsInstalled[] = "ExampleAPI" PluginsInstalled[] = "ExampleRssWidget" PluginsInstalled[] = "Provider" PluginsInstalled[] = "Feedback" PluginsInstalled[] = "CoreUpdater" PluginsInstalled[] = "CoreConsole" PluginsInstalled[] = "ScheduledReports" PluginsInstalled[] = "UserCountryMap" PluginsInstalled[] = "Live" PluginsInstalled[] = "CustomVariables" PluginsInstalled[] = "PrivacyManager" PluginsInstalled[] = "ImageGraph" PluginsInstalled[] = "Annotations" PluginsInstalled[] = "MobileMessaging" PluginsInstalled[] = "Overlay" PluginsInstalled[] = "SegmentEditor" PluginsInstalled[] = "Insights" PluginsInstalled[] = "ZenMode" PluginsInstalled[] = "LeftMenu" PluginsInstalled[] = "Morpheus" PluginsInstalled[] = "Contents" PluginsInstalled[] = "IPv6Usage" PluginsInstalled[] = "BulkTracking" PluginsInstalled[] = "Resolution" PluginsInstalled[] = "DevicePlugins"
There is no [Plugins]
section in your config: that section contains the list of enabled plugins. So I think that's the root of the problem. But why is there not the list of activated plugins in the config…
If you go in the administration (in the web interface) can you have a look at the Plugins management page? Try to enable all the plugins that are installed.
In the administration web interface the plugins are active.
Typo in commit message, https://github.com/piwik/piwik/commit/42da3f8768472598c33be76ddfcd72a6759d3dbc refs this issue.
After applying the above patch, I get the flowing message:
nginx_piwik@piwik01-[LOC]:/var/www$ ./console plugin:list -vvv DEBUG Piwik\Console[2015-03-10 15:45:36] Could not initialize plugins: The directory "/var/www/tmp/cache/tracker/" is not writable.
DEBUG SitesManager[2015-03-10 15:45:36] Db::fetchAll() executing SQL: SELECT idsite FROM piwik_site
[InvalidArgumentException]
There are no commands defined in the "plugin" namespace.
Exception trace: () at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:501 Symfony\Component\Console\Application->findNamespace() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:535 Symfony\Component\Console\Application->find() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:192 Symfony\Component\Console\Application->doRun() at n/a:n/a call_user_func() at /var/www/core/Console.php:60 Piwik{closure}() at /var/www/core/Access.php:454 Piwik\Access::doAsSuperUser() at /var/www/core/Console.php:61 Piwik\Console->doRun() at /var/www/vendor/symfony/console/Symfony/Component/Console/Application.php:126 Symfony\Component\Console\Application->run() at /var/www/console:27
It looks like I don't have write rights to the directory /var/www/tmp/cache/tracker/.
After fixing that, the problem got fixed and it is working now.
The directory "/var/www/tmp/cache/tracker/" is not writable.
Ah finally we get to the bottom of this. I guess it should also show in the System Check in the administration panel, so people that don't want to apply the patch can go check that.
I've pushed a fix so that errors like the one above will not be silently ignored anymore: instead the ./console
will fail with an explicit error message.
After updating to 2.11 and adjusting the cron (removed the force-all-websites parameter) I get the mentioned error.
A direct call to console gives the following output:
console list core gives the following
So there are no commands? What I have missed during the updates? Can I check for any missing files?