maintenance mode to avoid data lost and sync issues during updating OC
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.
AFAIK It's not possible currently. It's one of 'nice to have' for OC5
Resolved by https://github.com/owncloud/core/pull/1079
maintanance mode needs to be implemented within the webdav implementation. #1079 is not taking care of this
Good point, thanks @DeepDiver1975 for pointing this out.
@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!
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.
will be shipped with OC5