# Error message : Update needed

Error message; (when loading nextcloud frontend)

<table border="1" id="bkmrk-update-neededplease-" style="border-collapse: collapse; width: 78.4524%; height: 39px;"><colgroup><col style="width: 100%;"></col></colgroup><tbody><tr><td>Update needed  
Please use the command line updater because updating via browser is disabled in your config.php.</td></tr></tbody></table>

After updating Nextcloud to new version, it gave me that error message.

Basically, you need to update the database to work with the new version. Here is how to do that.

#### . Access the Nextcloud Container

<div id="bkmrk-find-your-nextcloud-">- Find your Nextcloud container name or ID: 
    - Find your container name "docker ps"

</div>Look for the container running <span class="text-sm px-1 rounded-sm !font-mono bg-sunset/10 text-rust dark:bg-dawn/10 dark:text-dawn">nextcloud:30 (or whichever version).</span>

<div id="bkmrk-access-the-container">- Access the container’s shell:  
    ```
    docker exec -it <nextcloud_container_name> bash
    ```

</div>#### Run the Updater

<div id="bkmrk-inside-the-container">- Inside the container, switch to the <span class="text-sm px-1 rounded-sm !font-mono bg-sunset/10 text-rust dark:bg-dawn/10 dark:text-dawn">www-data</span> user (Nextcloud’s default user): (this may not work. you may not need it anyway).  
    ```
    su - www-data
    ```
- <div>Navigate to the Nextcloud directory (usually <span class="text-sm px-1 rounded-sm !font-mono bg-sunset/10 text-rust dark:bg-dawn/10 dark:text-dawn">/var/www/html</span>): (you might be there already)  
    </div>```
    cd /var/www/html
    ```
- Run the occ command to perform the update:  
    ```
    php occ upgrade
    ```

</div>If that worked, great! your dont with the update.

The first time I did this, it did not work.   
 You may need to take it off of maintenance mode in order to try it again.

#### Removing maintenance mode:

Inside the docker container, in the /var/www/html directory

```
php occ maintenance:mode --off
```

##### now try the update again.