# Can't access Nextcloud after update: Update needed Please use the command line updater because updating via browser is disabled in your config.php

**URL:** <https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532>\
**Category:** ℹ️ Support\
**Tags:** update\_problems, docker, nc29\
**Created:** [September 4, 2024, 10:51am UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532 "2024-09-04T10:51:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cordvision](https://help.nextcloud.com/user_avatar/help.nextcloud.com/cordvision/32/64471_2.png) [@cordvision](https://help.nextcloud.com/u/cordvision)\
**Post date:** [September 4, 2024, 10:51am UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/1 "2024-09-04T10:51:17Z")

</div>

First of all, I’m a complete beginner so please explain it like I’m 5 years old.

My set-up:  
I installed Nextcloud on my Asustor NAS through the built in App Store (AppCentral). I believe this means it installed a docker container. I can access the console through another app that I also installed in the AppCentral that is called Portainer CE.

It worked flawlessly until today:  
I updated Nextcloud through the AppCentral of my Asustor NAS (version 29.0.4.r02  
). Since then, I’m getting the following message as I’m trying to access my Nextcloud:

_Update needed  
Please use the command line updater because updating via browser is disabled in your config.php._

I tried to follow various suggestions found online but with no success. Could somebody provide me simple step by step instructions on how I can get NC back up running? Any help is greatly apprechiated!

---

<div class="post-metadata">

**Author:** ![Devallex](https://help.nextcloud.com/letter_avatar/devallex/32/5_5575768a8748004e209b776fc1b2916d.png) [@Devallex](https://help.nextcloud.com/u/Devallex)\
**Post date:** [September 10, 2024, 6:30am UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/2 "2024-09-10T06:30:09Z")

</div>

I had this same issue. Followed the error code, and just used command line updater. In that NAS, you’ll need to find a way to access the container’s terminal.

If whatever interface you’re using brings you into the system terminal you’ll need to enter the container’s. Run `docker ps` and find the CONTAINER ID of nextcloud. (I.e. mine is 967653…)

_If it says “command not found” then you’re probably inside the container, skip the docker part_

```auto
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9676532d0b29 nextcloud:29 "/entrypoint.sh apac…" 12 minutes ago Up 12 minutes 0.0.0.0:9520->80/tcp, [::]:9520->80/tcp nextcloud-app
afb4487fb53a redis:latest "docker-entrypoint.s…" 12 minutes ago Up 12 minutes 0/tcp, 6379/tcp nextcloud-redis
de85a93c181d mariadb:lts "docker-entrypoint.s…" 12 minutes ago Up 12 minutes 3306/tcp nextcloud-db

```

If this doesn’t error, then that means you’re in the system terminal, so run this to enter the container’s terminal:

` docker exec -it -u 33 9676532d0b29 /bin/bash`  
(Replacing that long number with your id)

Then, once you’re in, type `pwd` and make sure you’re in the `/var/www/html` directory. If not, run `cd /var/www/html`. Then run:

```auto
./occ upgrade

```

and you should see an “in progress” message (wait a bit)

(If you run ./occ in the future, you get access to some other helpful commands for managing your nextcloud instance)

Hope this helps, if you get stuck anywhere don’t hesitate to send a reply!

---

<div class="post-metadata">

**Author:** ![kmanan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kmanan/32/59948_2.png) [@kmanan](https://help.nextcloud.com/u/kmanan)\
**Post date:** [October 30, 2024, 4:47pm UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/3 "2024-10-30T16:47:35Z")

</div>

Thank you, this worked like a charm. Ran into this error once I upgrade TrueNAS Scale to Electric Eel

---

<div class="post-metadata">

**Author:** ![Oscar\_Serrano](https://help.nextcloud.com/user_avatar/help.nextcloud.com/oscar_serrano/32/66236_2.png) [@Oscar\_Serrano](https://help.nextcloud.com/u/Oscar_Serrano)\
**Post date:** [November 4, 2024, 6:32am UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/4 "2024-11-04T06:32:58Z")

</div>

worked for me 2 after upgrading truenas to electric eel

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/5_5575768a8748004e209b776fc1b2916d.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [November 4, 2024, 1:56pm UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/5 "2024-11-04T13:56:57Z")

</div>

I’m glad this has worked for you all, but I would also suggest reviewing the container start-up logs (from the first start after attempting the update). Something is going wrong if you have to manually run `occ upgrade` in the container.

---

<div class="post-metadata">

**Author:** ![Pleichi](https://help.nextcloud.com/user_avatar/help.nextcloud.com/pleichi/32/64828_2.png) [@Pleichi](https://help.nextcloud.com/u/Pleichi)\
**Post date:** [November 8, 2024, 1:40pm UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/6 "2024-11-08T13:40:09Z")

</div>

Hey! I followed your guide and everything worked, except the Shell in Truenas is telling me

```auto
zsh: no such file or directory: ./occ

```

when I try to run “./occ upgrade”.  
Do you have a solution for this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Jerrylerman](https://help.nextcloud.com/letter_avatar/jerrylerman/32/5_5575768a8748004e209b776fc1b2916d.png) [@Jerrylerman](https://help.nextcloud.com/u/Jerrylerman)\
**Post date:** [November 9, 2024, 4:18am UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/7 "2024-11-09T04:18:50Z")

</div>

It worked for me!! Thank you so much!!

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [November 17, 2024, 4:19am UTC](https://help.nextcloud.com/t/cant-access-nextcloud-after-update-update-needed-please-use-the-command-line-updater-because-updating-via-browser-is-disabled-in-your-config-php/202532/8 "2024-11-17T04:19:38Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
