{"id":759,"date":"2021-10-11T19:30:00","date_gmt":"2021-10-12T00:30:00","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=759"},"modified":"2021-09-17T15:36:33","modified_gmt":"2021-09-17T20:36:33","slug":"nextcloud-maintenance-mode-error-resolution","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=759","title":{"rendered":"NextCloud &#8220;Maintenance&#8221; Mode Error Resolution"},"content":{"rendered":"\n<p>For a while my NextCloud server decided to stop allowing my phone or desktop to upload to it due to it being in &#8220;maintenance mode&#8221;, however I could log into the webui with no problems, and nothing in the logs showed it being in maintenance mode. This started to frustrate me as I could find nothing to signify why my clients thought the server couldn&#8217;t be used. I tried a number of things:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Clearing out the file locks table (there were 600,000 entries in it, and I&#8217;m the only user on the server)<\/li><li>occ db:add-missing-columns<\/li><li>occ db:add-missing-indices<\/li><li>occ db:add-missing-primary-keys<br>What finally worked:<\/li><li>occ files:scan &#8211;all<\/li><\/ul>\n\n\n\n<p>Finally with the files:scan &#8211;all it started working again and my app was able to start uploading to the server. If you have a NextCloud server and have been running into &#8220;maintenance mode&#8221; errors when your server is not in maintenance mode, this is certainly worth trying.<\/p>\n\n\n\n<p>Some GitHub Issues worth checking:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/github.com\/nextcloud\/server\/issues\/23552\" data-type=\"URL\" data-id=\"https:\/\/github.com\/nextcloud\/server\/issues\/23552\">Upload refused because of maintenance-mode (but server is not in maintenance-mode)<\/a><\/li><li><a href=\"https:\/\/github.com\/nextcloud\/server\/issues\/16383\" data-type=\"URL\" data-id=\"https:\/\/github.com\/nextcloud\/server\/issues\/16383\">uploads fail from android with certain files since upgrade to 16.0.3<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>For a while my NextCloud server decided to stop allowing my phone or desktop to upload to it due to it being in &#8220;maintenance mode&#8221;, however I could log into the webui with no problems, and nothing in the logs showed it being in maintenance mode. This started to frustrate me as I could find &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lab.rapternet.us\/?p=759\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;NextCloud &#8220;Maintenance&#8221; Mode Error Resolution&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[11,14],"class_list":["post-759","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-nextcloud","tag-quick-bites"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=759"}],"version-history":[{"count":3,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/759\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/759\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}