Iāve done some searching and I cannot seem to find how to exit maintenance mode if you youāre using docker. Everyone mentions to use this command sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off but that doesnāt seem to work in a docker instance.
Iām using the ownyourbits instance and an error occurred during upgrade that I think is benign, but Iām now stuck in maintenance mode. Thanks for any help.
After digging some more I was able to find this article on github that showed how to start a bash from within the docker container. I might not be describing that 100% right, but I was able to disable maintenance mode by doing the following:
Log into the Admin Console:
Admin-username
Admin-password
su (for elevated rights)
Admin-password
Now shell into the Nextcloud container:
univention-app shell nextcloud
cd /var/www/html/config
If vim is not yet installed:
apt-get install vim
Y
Then:
vim config.php
Change line: āmaintenanceā => ātrueā to āmaintenanceā => āfalseā
(Mind: press ā:aā to enter edit in append-mode)
:wq! , to save config.php without overwrite-prompt.
We can find the user/path listing the root contents like this and looking for the user thatās not root and looking around to find the actual www folder: