Hi @nmfretz I was poking around in help files after upgrading Nextcloud and its stuck in maintenance mode. Upgraded Nextcloud before upgrading Umbrel to 1.4. When it got stuck in maintenance mode, I tried upgrading Umbrel to 1.4 as a potential resoliution. still stuck in Maintenance mode. I went looking for the config file, and everyone says “take a look at it” but I don’t know how to examine its contents:
/home/umbrel/umbrel/app-data/nextcloud/data/nextcloud/config/config.php
denny
March 6, 2025, 9:07pm
2
Hey,
please run the following commands to repair and upgrade Nextcloud:
sudo docker exec -u www-data -it nextcloud_web_1 php occ maintenance:repair --include-expensive
sudo docker exec -u www-data occ upgrade
Then, open the config.php file with:
sudo nano ./umbrel/app-data/nextcloud/data/nextcloud/config/config.php
Find the following line:
'maintenance' => true,
and change it to:
'maintenance' => false,
Save the file by pressing CTRL + X, then Y, and Enter.
Cheers!
Thanks, after entering the second command, I got "error response from daemon:no such container: occ
denny
March 6, 2025, 10:26pm
4
Sorry. I mean the following command:
sudo docker exec -u www-data -it nextcloud_web_1 php occ upgrade
Now I got this:OCI runtime exec failed: exec failed: unable to start container process: exec: " occ": executable file not found in $PATH: unknown
denny
March 6, 2025, 10:34pm
7
Have you already adjusted the config.php?
denny
March 6, 2025, 10:36pm
8
You can also try:
sudo docker exec -u www-data -it nextcloud_web_1 php occ maintenance:mode --off
All good, its up and running. Thanks! Got a lightning address I can zap you some sats
denny
March 6, 2025, 10:50pm
10
No worries, happy to help even without the sats! Feel free to click on ‘Solution’ if everything’s good!