[SOLVED] Killed my nextcloud with docker-compose pull

I had a bad moment and did a:

docker-compose pull
docker-compose up -d

on a running NextCloud. I should have read the documentation for updating cleanly.

NextCloud has thanked my for my incompetence by returning:

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.

I have checked the logs in /data/nextcloud.log, but I can not identify any error messages. It’s just full of requests, from before my “update”. No new entries.

Additional info:

  1. “docker-compose ps” just says all containers are UP
  2. docker logs for redis, db & nextcloud containers show no errors

Edit 1:

sudo docker exec -ti --user www-data nextcloud /var/www/html/occ log:file

gives me:

PDOException: 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/PDO/Connection.php

Any ideas what I can do? Where can I find logs?


I hadn’t mounted the database properly