Error Message:
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-4.png)
Go to Portainer Web and log in with your admin account. Then select the correct environment server. Then go to Nextcloud Container to enter the console.
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-1.png)
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-1.png)
Please make sure you change the user root to www-data, then connect.
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-2.png)
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-2.png)
Now you can see that you have a terminal on your webgui and fill out this command line.
php occ db:add-missing-indices
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-3.png)
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-3.png)
Before:
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-4.png)
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-4.png)
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-4.png)
After
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-5.png)
![](https://richardapplegate.io/wp-content/uploads/2024/03/image-5.png)