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

Don't load commands of apps when in maintenance mode #21076

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

DeepDiver1975
Copy link
Member

fixes #20939

@DeepDiver1975 DeepDiver1975 added this to the 9.0-current milestone Dec 9, 2015
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @mmattel, @MorrisJobke and @LukasReschke to be potential reviewers

@DeepDiver1975 DeepDiver1975 changed the title Don't load commands of apps when in maintenance mode - fixes #20939 Don't load commands of apps when in maintenance mode Dec 9, 2015
@DeepDiver1975
Copy link
Member Author

@karlitschek this can happen on previous version of ownCloud as well

@karlitschek
Copy link
Contributor

Wow. Didn't we fix this before? Strange.
Backport makes sense 👍

@DeepDiver1975
Copy link
Member Author

Wow. Didn't we fix this before? Strange.

no - we did fix it for the upgrade case - but not if the instance stays in maintenance mode afterwards

@PVince81
Copy link
Contributor

PVince81 commented Dec 9, 2015

👍

DeepDiver1975 added a commit that referenced this pull request Dec 9, 2015
…intenance-mode

Don't load commands of apps when in maintenance mode
@DeepDiver1975 DeepDiver1975 merged commit d86b4f3 into master Dec 9, 2015
@DeepDiver1975 DeepDiver1975 deleted the occ-shall-not-fail-hard-in-maintenance-mode branch December 9, 2015 15:26
@DeepDiver1975
Copy link
Member Author

preparing backports ....

@RobinMcCorkell
Copy link
Member

As an admin, I want to be able to modify my LDAP configuration and external storages, re-scan the filesystem and do other maintenance stuff while my instance is in maintenance mode. Can I still do that?

@MorrisJobke
Copy link
Contributor

As an admin, I want to be able to modify my LDAP configuration and external storages, re-scan the filesystem and do other maintenance stuff while my instance is in maintenance mode. Can I still do that?

Changing LDAP stuff is not possible, because it is an app.

@MorrisJobke
Copy link
Contributor

The other mentioned stuff is possible

@RobinMcCorkell
Copy link
Member

@MorrisJobke But that would be one of the main reasons I would put my instance into maintenance mode, to adjust critical settings such as LDAP!

@MorrisJobke
Copy link
Contributor

@MorrisJobke But that would be one of the main reasons I would put my instance into maintenance mode, to adjust critical settings such as LDAP!

It's boon and bane of the apps. We either enable them and they cause trouble because the instance is in maintenance mode or we can disable them and then their functionality is missing.

@RobinMcCorkell
Copy link
Member

@MorrisJobke As I pointed out right at the beginning (#20939 (comment)) the problem isn't with the apps, it's with our app loader mechanism.

@MorrisJobke
Copy link
Contributor

@MorrisJobke As I pointed out right at the beginning (#20939 (comment)) the problem isn't with the apps, it's with our app loader mechanism.

Ah. Now it makes sense. Okay - why is this mechanism in place there? I guess it has a reason ;)

@RobinMcCorkell
Copy link
Member

@MorrisJobke From what I can tell, it's a basic hack to stop ownCloud from loading apps while in maintenance mode, since they (usually) aren't needed. Except when using occ to perform maintenance on an app. The easiest way to solve it, as I mentioned, is to call loadApp() on each installed app individually when we load app commands, rather than rely on loadApps() to do all of it for us.

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

Successfully merging this pull request may close these issues.

occ fails hard if instance is in maintenance mode
6 participants