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

Extend maintenance:repair to allow runtime repairs. #31995

Closed
tomneedham opened this issue Jul 5, 2018 · 6 comments
Closed

Extend maintenance:repair to allow runtime repairs. #31995

tomneedham opened this issue Jul 5, 2018 · 6 comments

Comments

@tomneedham
Copy link
Contributor

tomneedham commented Jul 5, 2018

Right now repair steps can be executed whilst in production with occ maintenance:repair and relies on the individual repair step to protect itself from maintenance mode etc.

We could extend the maintenance:repair command to have a --runtime or --production command to run only those that can run in production without maintenance mode, and protect all others with a maintenance mode check.

cc @PVince81

@ownclouders
Copy link
Contributor

GitMate.io thinks possibly related issues are #13281 (Repair step to clean up oc_properties), #14109 (apache should run without mod_dav), #25164 (Allow user specific maintenance mode), #31464 (File cache repair step detection should not run on every upgrade), and #30989 (Remove pagination from the repair step).

@tomneedham
Copy link
Contributor Author

My bad, maintenance mode is enabeld by this command:

$this->config->setSystemValue('maintenance', true);

@tomneedham tomneedham changed the title Repair steps allowed to run in production without maintenenace mode Extend maintenance:repair to allow runtime repairs. Jul 5, 2018
@PVince81
Copy link
Contributor

PVince81 commented Jul 5, 2018

Hmm, but this also means that the repair step will induce a maintenance mode and might surprise admins. We could either add a confirmation prompt or refuse to run if not in maintenance mode ?

@PVince81 PVince81 added this to the maybe some day milestone Jul 5, 2018
@tomneedham
Copy link
Contributor Author

Added initial stuff here - got hung up adding tests around \OC\Repair which doesn't use DI and has static stuff. 25921a0

@tomneedham
Copy link
Contributor Author

We could either add a confirmation prompt or refuse to run if not in maintenance mode ?

I agree, prefer to fail if maintenance mode is no enabled and prompt. Right now it just does it.

@stale
Copy link

stale bot commented Sep 20, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants