I had a running NextCloud installation using docker-compose. After stopping and restarting the docker stack I experience an internal server error:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Nextcloud version: 24
Operating system and version : Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
I have tried to update the fingerprint of the database and to activate maintenance mode but none of these work.
I have found the following error message:
Next Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_appconfig' doesn't exist in /var/www/html/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:47
you will find more details regarding the issue in the log of your application container e.g. docker logs nextcloud-app look for the issues and if you need more help post this logs and your docker-compose file as well.
Thank you for the hint. Looking at the logs I was not able to figure out why the “Internal Server Error” occured. I have restored NextCloud from a backup that I am running every second day so no data is lost.
Every time the first time nextcloud runs, it runs very well, however, once the nextcloud container restart, or reboot, it will run into the error. I googled this issue and found many people encountered the same issue no one can find the reason.
Hello jtr !
Thank you for your reply. I think I found the solution and finally work fine.
Perhaps because I’m a newbie of docker,I run the following command :
docker-compose -f nextcloud_docker.yml down
docker-compose -f nextcloud_docker.yml up
what the issue of the command is the “down” command stop and removes the container, the configuration is stored persistent in the /root/docker_data/nextcloud/html/config,
and when it runs with docker compose up, the newly created container’s network or config differs from previously created’s, then causes the error,
The right command is