24 April 2022

NextCloud stuck in Maintenance Mode

I recently updated my home install of NextCloud right before I went to bed, and when I checked it the next day it was stuck in maintenance mode. Ugh… Thankfully it is easy enough to fix, but you will have to log onto the server to run an occ command from the command line.

The first thing you should try is completing the upgrade with this command.

sudo -u www-data php /var/www/html/nextcloud/occ upgrade

If the upgrade is completed and you are still in maintenance mode, then here is how to turn maintenance mode off.

sudo -u www-data php /var/www/html/nextcloud/occ maintenance:mode --off

Note: If you are on RHEL/CentOS/Fedora you will need to update the “www-data” user to your HTTP user, which should be “apache”.

Tags: , , ,
Copyright 2022. All rights reserved.

Posted April 24, 2022 by IT.PWWF in category "NextCloud", "Software

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.