-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cron: [InvalidArgumentException] There are no commands defined in the "core" namespace. #7356
Comments
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. 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 upgrade could not be run from the console command, and cronjobs stopped working. |
Puuh, thanks that I´m not the only one ;-) 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.
|
@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 |
@mnapoli I get the following: nginx_piwik@piwik01-[LOC]:/home/support$ /usr/bin/php5 /var/www/console plugin:list -vvv [InvalidArgumentException] Exception trace: nginx_piwik@piwik01-[LOC]:$ My configuration is: ; DO NOT REMOVE THIS LINE [General] [PluginsInstalled] |
There is no 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, 42da3f8 refs this issue. |
After applying the above patch, I get the flowing message: nginx_piwik@piwik01-[LOC]:/var/www$ ./console plugin:list -vvv [InvalidArgumentException] Exception trace: 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. |
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 |
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?
The text was updated successfully, but these errors were encountered: