After Nextcloud update how to open config.php

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

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! :blush:

Thanks, after entering the second command, I got "error response from daemon:no such container: occ :neutral_face:

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

Oops, missed the “PHP”

Have you already adjusted the config.php?

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

No worries, happy to help even without the sats! :grinning_face_with_smiling_eyes: Feel free to click on ‘Solution’ if everything’s good!