# After Nextcloud update how to open config.php

**URL:** https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727
**Category:** Support and Troubleshooting
**Created:** [March 6, 2025, 8:55pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727 "2025-03-06T20:55:44Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![hitheringwaters](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/hitheringwaters/32/4960_2.png) [@hitheringwaters](https://community.umbrel.com/u/hitheringwaters)
#### Post date: [March 6, 2025, 8:55pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/1 "2025-03-06T20:55:44Z")

</div>

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

---

<div class="post-metadata">

### Author: ![denny](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/denny/32/6330_2.png) [@denny](https://community.umbrel.com/u/denny)
#### Post date: [March 6, 2025, 9:07pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/2 "2025-03-06T21:07:45Z")

</div>

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! 😊

---

<div class="post-metadata">

### Author: ![hitheringwaters](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/hitheringwaters/32/4960_2.png) [@hitheringwaters](https://community.umbrel.com/u/hitheringwaters)
#### Post date: [March 6, 2025, 10:06pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/3 "2025-03-06T22:06:30Z")

</div>

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

---

<div class="post-metadata">

### Author: ![denny](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/denny/32/6330_2.png) [@denny](https://community.umbrel.com/u/denny)
#### Post date: [March 6, 2025, 10:26pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/4 "2025-03-06T22:26:38Z")

</div>

Sorry. I mean the following command:

`sudo docker exec -u www-data -it nextcloud_web_1 php occ upgrade`

---

<div class="post-metadata">

### Author: ![hitheringwaters](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/hitheringwaters/32/4960_2.png) [@hitheringwaters](https://community.umbrel.com/u/hitheringwaters)
#### Post date: [March 6, 2025, 10:31pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/5 "2025-03-06T22:31:00Z")

</div>

Now I got this:OCI runtime exec failed: exec failed: unable to start container process: exec: " occ": executable file not found in $PATH: unknown

---

<div class="post-metadata">

### Author: ![hitheringwaters](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/hitheringwaters/32/4960_2.png) [@hitheringwaters](https://community.umbrel.com/u/hitheringwaters)
#### Post date: [March 6, 2025, 10:31pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/6 "2025-03-06T22:31:49Z")

</div>

Oops, missed the “PHP”

---

<div class="post-metadata">

### Author: ![denny](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/denny/32/6330_2.png) [@denny](https://community.umbrel.com/u/denny)
#### Post date: [March 6, 2025, 10:34pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/7 "2025-03-06T22:34:41Z")

</div>

Have you already adjusted the config.php?

---

<div class="post-metadata">

### Author: ![denny](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/denny/32/6330_2.png) [@denny](https://community.umbrel.com/u/denny)
#### Post date: [March 6, 2025, 10:36pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/8 "2025-03-06T22:36:42Z")

</div>

You can also try:

`sudo docker exec -u www-data -it nextcloud_web_1 php occ maintenance:mode --off`

---

<div class="post-metadata">

### Author: ![hitheringwaters](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/hitheringwaters/32/4960_2.png) [@hitheringwaters](https://community.umbrel.com/u/hitheringwaters)
#### Post date: [March 6, 2025, 10:37pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/9 "2025-03-06T22:37:59Z")

</div>

All good, its up and running. Thanks! Got a lightning address I can zap you some sats

---

<div class="post-metadata">

### Author: ![denny](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/denny/32/6330_2.png) [@denny](https://community.umbrel.com/u/denny)
#### Post date: [March 6, 2025, 10:50pm UTC](https://community.umbrel.com/t/after-nextcloud-update-how-to-open-config-php/21727/10 "2025-03-06T22:50:57Z")

</div>

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