Hi,
I’m having a problem with my nextcloud installation, after moving my data folder to another hdd.
Nextcloud version (eg, 20.0.5): 24-fpm-alpine:latest
Operating system and version (eg, Ubuntu 20.04): docker 20.10.16
Apache or nginx version (eg, Apache 2.4.25): nginx:alpine
The issue you are facing:
After moving my Docker-Data folder im facing an issuing with the db:
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
Is this the first time you’ve seen this error? (Y/N): Y
Here is my docker-compose file:
version: '3'
volumes:
ncdb_data:
ncdata:
external: true
ncredis_data:
ncweb:
external: true
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- ncdb_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=rBJnBvvryK7SYjWgypoasMu5ShZmG4Qn
env_file:
- db.env
networks:
- nc_db_net
app:
image: nextcloud:24-fpm-alpine
volumes:
- ncdata:/var/www/html/data
- ncweb:/var/www/html
environment:
- REDIS_HOST=redis
- MYSQL_HOST=db
env_file:
- db.env
restart: always
networks:
- nc_db_net
depends_on:
- db
- redis
web:
image: nginx:alpine
restart: always
ports:
- 8080:80
volumes:
- ncweb:/var/www/html
- /home/carnauba/nextcloud_nginx/nginx.conf:/etc/nginx/nginx.conf
environment:
- VIRTUAL_HOST=domain
- LETSENCRYPT_HOST=domain
depends_on:
- app
networks:
- nc_db_net
- proxy_net
redis:
image: redis:alpine
restart: always
networks:
- nc_db_net
cron:
image: nextcloud:24-fpm-alpine
restart: always
volumes:
- ncweb:/var/www/html
- ncdata:/var/www/html/data
entrypoint: /cron.sh
depends_on:
- app
- redis
networks:
- nc_db_net
networks:
nc_db_net:
proxy_net:
external:
name: nginxproxy