Nextcloud recently became unreachable without any intervention. I tried updating the containers via the AIO admin page and when I did, I noticed that three containers (Apache, Nextcloud and Notify Push) were stuck on “starting”. I looked around Github and saw that I could add ENABLE_DRI_DEVICE to my environment variables but that did not help… Here is my docker compose file as well as some logs I think could be relevant:
Compose:
services:
caddy:
image: caddy:alpine
restart: unless-stopped
container_name: caddy
volumes:
- /home/configs/nextcloud/Caddyfile:/etc/caddy/Caddyfile
- /home/configs/nextcloud/certs:/certs
- /home/configs/nextcloud/config:/config
- /home/configs/nextcloud/data:/data
- /home/configs/nextcloud/sites:/srv
network_mode: "host"
nextcloud:
image: nextcloud/all-in-one:latest
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
ports:
- "8080:8080"
environment:
- NEXTCLOUD_ENABLE_DRI_DEVICE=true
- APACHE_PORT=11000
- NEXTCLOUD_DATADIR=/mnt/ballpit/Drive/ncdata
- NEXTCLOUD_MOUNT=/mnt/ballpit/Drive
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
- /home/configs/nextcloud/aiobackup:/aiobackup
depends_on:
- caddy
---
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
Mastercontainer:
Initial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443
INF ts=1737349315.5944455 msg=using config from file file=/Caddyfile
INF ts=1737349315.5982525 msg=adapted config to JSON adapter=caddyfile
[Mon Jan 20 05:01:55.601130 2025] [mpm_event:notice] [pid 182:tid 182] AH00489: Apache/2.4.62 (Unix) OpenSSL/3.3.2 configured -- resuming normal operations
[Mon Jan 20 05:01:55.601163 2025] [core:notice] [pid 182:tid 182] AH00094: Command line: 'httpd -D FOREGROUND'
[20-Jan-2025 05:01:55] NOTICE: fpm is running, pid 188
[20-Jan-2025 05:01:55] NOTICE: ready to handle connections
NOTICE: PHP message: 404 Not Found
Type: Slim\Exception\HttpNotFoundException
Main Nextcloud Container:
Connection to nextcloud-aio-database (172.27.0.4) 5432 port [tcp/postgresql] succeeded!
now
-------------------------------
2025-01-20 00:02:15.425749-05
(1 row)
+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n /dev/dri ']'
++ find /dev/dri -maxdepth 1 -mindepth 1 -name renderD128
+ '[' -n /dev/dri/renderD128 ']'
++ stat -c %g /dev/dri/renderD128
Let me know if you need anything else :))
Thanks!