Skip to content
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

occ fails hard if instance is in maintenance mode #20939

Closed
DeepDiver1975 opened this issue Dec 4, 2015 · 2 comments · Fixed by #21076
Closed

occ fails hard if instance is in maintenance mode #20939

DeepDiver1975 opened this issue Dec 4, 2015 · 2 comments · Fixed by #21076

Comments

@DeepDiver1975
Copy link
Member

$ ./occ list
PHP Fatal error:  Class 'OC_Mount_Config' not found in /home/deepdiver/Development/ownCloud/master-autotest/apps/files_external/appinfo/register_command.php on line 30
PHP Stack trace:
PHP   1. {main}() /home/deepdiver/Development/ownCloud/master-autotest/occ:0
PHP   2. require_once() /home/deepdiver/Development/ownCloud/master-autotest/occ:11
PHP   3. OC\Console\Application->loadCommands($output = *uninitialized*) /home/deepdiver/Development/ownCloud/master-autotest/console.php:68
PHP   4. require() /home/deepdiver/Development/ownCloud/master-autotest/lib/private/console/application.php:64
@DeepDiver1975 DeepDiver1975 added this to the 9.0-current milestone Dec 4, 2015
@RobinMcCorkell
Copy link
Member

Problem lies in the way we load apps. When the console Application calls OC_App::loadApps() to (attempt to) load all apps, the function bails out since we are in maintenance mode. I think the only way to get around this is to manually load each app as we iterate over all installed apps, which skips the maintenance check

@lock
Copy link

lock bot commented Aug 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants