I have been using nextcloud for the past months without any issues, but recently it stopped working after updating. The AIO interface does work, but whenever I tried to start the containers they wouldn’t be able to communicate with each other. I was having the same error.
It looks like the docker network is set to internal: false
, so the containers are unable to communicate with each other.
Here is my compose file:
services:
caddy:
image: caddy:alpine
restart: unless-stopped
container_name: caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./certs:/certs
- ./config:/config
- ./data:/data
- ./sites:/srv
nextcloud:
image: nextcloud/all-in-one:latest
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
ports:
- "8080:8080"
environment:
- APACHE_PORT=11000
- NEXTCLOUD_UPLOAD_LIMIT=10G
- NEXTCLOUD_MEMORY_LIMIT=1024M
- MAX_INPUT_TIME=86400
- MAX_EXECUTION_TIME=86400
- APACHE_BODY_LIMIT = 0
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
- caddy
tunnel:
container_name: nextcloud-tunnel
image: cloudflare/cloudflared
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=TOKEN
Here the output of docker network inspect bridge
:
[
{
"Name": "bridge",
"Id": "828c972c6260e6653411f7b306b1c30fc7ad34487254639548d05f4090589d92",
"Created": "2025-02-03T08:40:14.1271645Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Labels": {}
}
]
And the output of docker network inspect nextcloud-aio
[
{
"Name": "nextcloud-aio",
"Id": "ee822dcdd7125396859fbd4a870460e0b279965cfe8744bd779dc3ed4f66e39f",
"Created": "2025-02-03T08:51:14.089164206Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.19.0.0/16",
"Gateway": "172.19.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"2a4d326a6f6808c54018756d75565d6b8cb1207f062768a9d7a2dc708ed07c15": {
"Name": "nextcloud-aio-imaginary",
"EndpointID": "6570d64c6466eb1b177b2c364c7430cb91d056208f10fdb4bf8869bd3b975e1b",
"MacAddress": "02:42:ac:13:00:06",
"IPv4Address": "172.19.0.6/16",
"IPv6Address": ""
},
"32e55607cce1c13059a1b15489297f1fa1e39d88796d1a855332fc7c9f9ae111": {
"Name": "nextcloud-aio-mastercontainer",
"EndpointID": "cc972b3f7f97cc03023695c16d306ef5c162174a87abcd2dae1659441ed2d338",
"MacAddress": "02:42:ac:13:00:02",
"IPv4Address": "172.19.0.2/16",
"IPv6Address": ""
},
"6ce5be430fe655a99c5172672e58f81a4227c14194e428f4dd60a96bb20e7fe2": {
"Name": "nextcloud-aio-notify-push",
"EndpointID": "d79d726e28fab580c8b988c168b58c656d6f456462e59fea9dba69d8888fa635",
"MacAddress": "02:42:ac:13:00:08",
"IPv4Address": "172.19.0.8/16",
"IPv6Address": ""
},
"855fdaebc12ca5c497ab989d4816e845b4d011c9bc8d6ba8d0229006c50d9e41": {
"Name": "nextcloud-aio-apache",
"EndpointID": "555698109bde2f94cabc88410998a668db3dbdc0d5209254328c3996fd0020e7",
"MacAddress": "02:42:ac:13:00:09",
"IPv4Address": "172.19.0.9/16",
"IPv6Address": ""
},
"a9933b35f8dbd68641b1592553a71910d50a685b641fc1cd71f6f84b4c0e6b8c": {
"Name": "nextcloud-aio-fulltextsearch",
"EndpointID": "987c3b237005ebba745bc3c1ba7c172b72858c2cdf97a1e617016077391bda82",
"MacAddress": "02:42:ac:13:00:05",
"IPv4Address": "172.19.0.5/16",
"IPv6Address": ""
},
"c754c8e1d7f4c19a5629fce8ac9d2f9103d45d8eee8f72b9bf089f1763269660": {
"Name": "nextcloud-aio-database",
"EndpointID": "767cc3500009bdc1763bdf4a9cce116b932d29f642d83eacca29e09d0975cd16",
"MacAddress": "02:42:ac:13:00:03",
"IPv4Address": "172.19.0.3/16",
"IPv6Address": ""
},
"e82254fe99e0604f364ae55a242bb2e7d1c9edaf9c01a83ef00bad82e92550c8": {
"Name": "nextcloud-aio-redis",
"EndpointID": "e077a4094b5599c0ff18c931bc16cc5a27aee9c4ffc33300efad61b3e27464f1",
"MacAddress": "02:42:ac:13:00:04",
"IPv4Address": "172.19.0.4/16",
"IPv6Address": ""
},
"eb7766002e8d003738c6010e2596a7872309de555a870da71b46a609e6f1c400": {
"Name": "nextcloud-aio-nextcloud",
"EndpointID": "69d1b85bd21825c8246806642d99a4b7a51eb6adb77a36ed803d19ebab680d12",
"MacAddress": "02:42:ac:13:00:07",
"IPv4Address": "172.19.0.7/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
]
I am running nextcloud on an Alpine LXC in proxmox. Containers are running but nextcloud
is waiting for database to start, but database logs show they are accepting connections, so I’m guessing the containers are unable to talk to each other, but I don’t know how to solve that without a clean start, which I’d like to avoid because of all the data that I have stored in the docker volume.