Hello,
CONTEXT:
I have the nextcloud server on a raspberry pi with Docker (docker-compose) and Traefik as reverse proxy. Nextcloud is working on an external hard drive.
I access nextcloud from a Ubunty client and an Android client.
Recently I deleted the data from my Android client due to lack of space, although I do not know if it is related to this problem or is it a coincidence.
PROBLEM:
The issue is that although the nextcloud server seems to work fine, it gives me an error when trying to connect from any web browser (phone, computer, etc).
This is the nextcloud log:
NEXTCLOUD LOG:
[Mon Aug 30 21:32:20.411115 2021] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.22 configured -- resuming normal operations
[Mon Aug 30 21:32:20.411275 2021] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
192.168.xx.xx - - [30/Aug/2021:21:32:40 +0200] "GET / HTTP/1.1" 500 717 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
OTHER INFORMATION:
Also nextcloud has stopped syncing with Ubuntu, it gives me this error:
"500 internal server error"
MY docker-compose.yml
nextcloud:
image: nextcloud:latest
container_name: nextcloud
restart: unless-stopped
ports:
- ${NEXTCLOUD_HTTP_PORT}:80
depends_on:
- mariadb
- redis
- traefik
environment:
- TZ=${TZ}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_HOST=${MYSQL_HOST}
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
- NEXTCLOUD_ADMIN_PASSWORD${NEXTCLOUD_ADMIN_PASSWORD}
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.${MI_DOMINIO_4}:${NEXTCLOUD_HTTP_PORT}
- REDIS_HOST=redis
volumes:
- ${MI_DOCKER}/nextcloud:/var/www/html
- ${MI_DOCKER}/nextcloud/apps:/var/www/html/custom_apps
- ${MI_DOCKER}/nextcloud/config:/var/www/html/config
- ${DISCO_DATOSNUBE}/nextcloud:/var/www/html/data
labels:
- traefik.enable=true
- traefik.docker.network=web
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.${MI_DOMINIO_4}`)
- traefik.http.routers.nextcloud.entrypoints=websecure
- traefik.http.routers.nextcloud.tls=true
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt
- traefik.http.routers.nextcloud.middlewares=nc-rep,nc-header
- traefik.http.middlewares.nc-rep.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav
- traefik.http.middlewares.nc-rep.redirectregex.replacement=https://$$1/remote.php/dav/
- traefik.http.middlewares.nc-rep.redirectregex.permanent=true
- traefik.http.middlewares.nc-header.headers.frameDeny=true
- traefik.http.middlewares.nc-header.headers.sslRedirect=true
- traefik.http.middlewares.nc-header.headers.contentTypeNosniff=true
- traefik.http.middlewares.nc-header.headers.stsIncludeSubdomains=true
- traefik.http.middlewares.nc-header.headers.stsPreload=true
- traefik.http.middlewares.nc-header.headers.stsSeconds=31536000
- traefik.http.middlewares.nc-header.headers.referrerPolicy=same-origin
- traefik.http.middlewares.nc-header.headers.browserXssFilter=true
- traefik.http.middlewares.nc-header.headers.customRequestHeaders.X-Forwarded-Proto=https
- traefik.http.middlewares.nc-header.headers.customRequestHeaders.X-Forwarded-Proto=websecure
- traefik.http.middlewares.nc-header.headers.customResponseHeaders.X-Robots-Tag=none
- traefik.http.middlewares.nc-header.headers.customFrameOptionsValue=SAMEORIGIN
networks:
- internal
- web
ONE IMPORTANT QUESTION…
I still have all the data on the hard drive that nextcloud used. If I delete everything, including the database (mariadb), will Nextcloud be able to regenerate the mariadb database if I leave all the files on the hard drive?
DESPAIR
If I have to delete nextcloue AGAIN, and reinstall it, I think I’ll give up … I’m spending more time trying to get nextcloud to work which I think is too much for me.
Thank you Group!!!