[GH-ISSUE #255] Detect maintenance mode of Nextcloud and do not prompt error. #249

Open
opened 2026-02-25 20:31:15 +03:00 by kerem · 3 comments
Owner

Originally created by @Mannshoch on GitHub (Apr 10, 2019).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/255

If you do a Nextcloud Update or something else you activate maintenance mode in Nextcloud.
Please add a rule where a detected maintenance mode do not prompt an error and suppress any error for the next 24h.
If since detection of this Error a regular connection is not possible after 24h prompt an error.

Originally created by @Mannshoch on GitHub (Apr 10, 2019). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/255 If you do a Nextcloud Update or something else you activate maintenance mode in Nextcloud. Please add a rule where a detected maintenance mode do not prompt an error and suppress any error for the next 24h. If since detection of this Error a regular connection is not possible after 24h prompt an error.
Author
Owner

@aluxnimm commented on GitHub (Apr 10, 2019):

How to detect maintenance mode and distinguish it from other network/server errors?

<!-- gh-comment-id:481704458 --> @aluxnimm commented on GitHub (Apr 10, 2019): How to detect maintenance mode and distinguish it from other network/server errors?
Author
Owner

@Mannshoch commented on GitHub (Apr 10, 2019):

curl -X GET 'https://cloud.example.com/ocs/v1.php/cloud/capabilities' -H "OCS-APIRequest: true"

If you get an XML back, there is a Nextcloud but in maintenance mode:

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>503</statuscode>
  <message>Service unavailable</message>
 </meta>
 <data/>
</ocs>
<!-- gh-comment-id:481722288 --> @Mannshoch commented on GitHub (Apr 10, 2019): `curl -X GET 'https://cloud.example.com/ocs/v1.php/cloud/capabilities' -H "OCS-APIRequest: true"` If you get an XML back, there is a Nextcloud but in maintenance mode: ``` <?xml version="1.0"?> <ocs> <meta> <status>failure</status> <statuscode>503</statuscode> <message>Service unavailable</message> </meta> <data/> </ocs> ```
Author
Owner

@Mannshoch commented on GitHub (Jan 27, 2020):

Was that helpful for you?

<!-- gh-comment-id:578812847 --> @Mannshoch commented on GitHub (Jan 27, 2020): Was that helpful for you?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/outlookcaldavsynchronizer#249
No description provided.