Have you ever had the problem that your Nextcloud-Server stuck in the maintenance mode? For example if you just wanted to finish your update using the web-updater and clicked the wrong button there? The following steps will solve the problem.
The following settings are assumed:
- IP of the server: 192.168.0.12
- Webroot: /var/www/nextcloud
- User on the server: user
# 1. Connect to the server using ssh
# 2. Disable the maintenance mode
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off