core icon indicating copy to clipboard operation
core copied to clipboard

maintenance mode to avoid data lost and sync issues during updating OC

Open helllo opened this issue 14 years ago • 7 comments

Within the last 10 weeks using OC kind of enterprise style I wondered if it could be an option for admins to put OC in something named maintenance mode to avoid glitches, data lost and a lot of long distance running during/after update OC and easily put OC and its clients back to normal working afterwards.

I imagine this should cut of connection to all clients, disable web access (sorry, we are in maintenance, please come back in a few minutes) and so on.

helllo avatar Nov 30 '12 06:11 helllo

AFAIK It's not possible currently. It's one of 'nice to have' for OC5

VicDeo avatar Dec 01 '12 11:12 VicDeo

Resolved by https://github.com/owncloud/core/pull/1079

LukasReschke avatar Jan 08 '13 09:01 LukasReschke

maintanance mode needs to be implemented within the webdav implementation. #1079 is not taking care of this

DeepDiver1975 avatar Jan 08 '13 09:01 DeepDiver1975

Good point, thanks @DeepDiver1975 for pointing this out.

LukasReschke avatar Jan 08 '13 09:01 LukasReschke

@evert Usually 503 is the http status code for server maintenance. Will webdav clients handle this properly? I'm also missing the class Sabre_DAV_Exception_ServiceUnavailable - intended?

As usual: many thanks!

DeepDiver1975 avatar Jan 08 '13 23:01 DeepDiver1975

In my experience clients kinda suck at this; I've definitely seen clients simply 'give up' and never sync again after a 503 or 502.

503 would indeed be the most appropriate for this case though. Feel free to send a PR for a new exception :)

My theory is that the best way to handle downtime, is to 'black hole' the tcp port. Clients may respond better to this, because they'll time-out. This case (I feel) is something that's more likely tested and handled by clients to deal with for example crappy wifi. But I've not tested this :)

Note that simply turning off the webserver would not do this, you'd want a real timeout and not a 'connection refused'.

But within the HTTP realm, 503 is the most sensible.

evert avatar Jan 08 '13 23:01 evert

will be shipped with OC5

DeepDiver1975 avatar Jan 10 '13 10:01 DeepDiver1975