AIO: waiting for Database container to start - but it looks like it started, no errors

Hi,

clean install of Fedora 36 in a VM.
Docker-CE installed as per docker site instructions.
I’m using docker-compose, based from the AIO.
I’m changing the DATADIR to point at a folder called nextcloud in the root of a virtio-fs mount. I mention this because it’s the only niche thing I can think of that i’m doing. I followed the instructions to set the ownership as 33, though I don’t know what that maps to, it’s not a known user on my system.

Once it’s working, I expect to access it via a WAF/ReverseProxy which is a separate system (not on the docker network).

AIO via docker-compose.yml:

version: "3.8"

volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer

services:
  nextcloud:
    image: nextcloud/all-in-one:latest # Must be changed to 'nextcloud/all-in-one:latest-arm64' when used with an arm64 CPU
    restart: always
    container_name: nextcloud-aio-mastercontainer
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      #- 80:80 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      - 8080:8080
      #- 8443:8443 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
    environment: # Is needed when using any of the options below
      - NEXTCLOUD_DATADIR=/data/nextcloud
      - APACHE_PORT=11000 # Is needed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      # - NEXTCLOUD_DATADIR=/mnt/ncdata # Allows to set the host directory for Nextcloud's datadir. See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
      #
      # - NEXTCLOUD_MOUNT=/mnt/ # Allows the Nextcloud container to access the chosen directory on the host. See https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host

  # # Optional: Caddy reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
  # # You can find further examples here: https://github.com/nextcloud/all-in-one/discussions/588
  # caddy:
  #   image: caddy:alpine
  #   restart: always
  #   container_name: caddy
  #   volumes:
  #     - ./Caddyfile:/etc/caddy/Caddyfile
  #     - ./certs:/certs
  #     - ./config:/config
  #     - ./data:/data
  #     - ./sites:/srv
  #   network_mode: "host"

With this configuration I can access the AIO on port 8080, but when i get to containers screen I am stuck here:

Nextcloud AIO v1.2.0
You are running the latest channel. (Logs)

 Containers are currently starting.

Reload ↻

Containers
 Apache (Starting)
 Database (Starting)
 Nextcloud (Starting)
 Redis (Starting)
 Collabora (Starting)
 Talk (Starting)
 ClamAV (Starting)
Your containers are up-to-date.

Nextcloud log:

nc: getaddrinfo: Name does not resolve
Waiting for database to start...

Database log:

+ rm -rf '/var/lib/postgresql/data/*'
+ touch /mnt/data/initial-cleanup-done

x
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... UTC
creating configuration files ... ok
running bootstrap script ... ok
sh: locale: not found
2022-05-20 11:39:22.530 UTC [29] WARNING:  no usable system locales were found
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2022-05-20 11:39:23.713 UTC [35] LOG:  starting PostgreSQL 14.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, 64-bit
2022-05-20 11:39:23.760 UTC [35] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-05-20 11:39:23.816 UTC [36] LOG:  database system was shut down at 2022-05-20 11:39:23 UTC
2022-05-20 11:39:23.838 UTC [35] LOG:  database system is ready to accept connections
 done
server started
CREATE DATABASE


/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init-user-db.sh
+ psql -v ON_ERROR_STOP=1 --username nextcloud --dbname nextcloud_database
CREATE ROLE

x
ALTER DATABASE

waiting for server to shut down...2022-05-20 11:39:24.575 UTC [35] LOG:  received fast shutdown request
.2022-05-20 11:39:24.601 UTC [35] LOG:  aborting any active transactions
2022-05-20 11:39:24.603 UTC [35] LOG:  background worker "logical replication launcher" (PID 42) exited with exit code 1
2022-05-20 11:39:24.603 UTC [37] LOG:  shutting down
2022-05-20 11:39:24.726 UTC [35] LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

2022-05-20 11:39:24.844 UTC [13] LOG:  starting PostgreSQL 14.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, 64-bit
2022-05-20 11:39:24.844 UTC [13] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2022-05-20 11:39:24.844 UTC [13] LOG:  listening on IPv6 address "::", port 5432
2022-05-20 11:39:24.912 UTC [13] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-05-20 11:39:24.981 UTC [52] LOG:  database system was shut down at 2022-05-20 11:39:24 UTC
2022-05-20 11:39:25.004 UTC [13] LOG:  database system is ready to accept connections
2022-05-20 12:33:16.865 UTC [13] LOG:  received fast shutdown request
2022-05-20 12:33:16.941 UTC [13] LOG:  aborting any active transactions
2022-05-20 12:33:16.943 UTC [13] LOG:  background worker "logical replication launcher" (PID 58) exited with exit code 1
2022-05-20 12:33:16.943 UTC [53] LOG:  shutting down
2022-05-20 12:33:17.328 UTC [13] LOG:  database system is shut down
waiting for server to shut down.... done
server stopped
Database dump successful!

PostgreSQL Database directory appears to contain a database; Skipping initialization

2022-05-20 12:33:51.555 UTC [10] LOG:  starting PostgreSQL 14.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, 64-bit
2022-05-20 12:33:51.556 UTC [10] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2022-05-20 12:33:51.556 UTC [10] LOG:  listening on IPv6 address "::", port 5432
2022-05-20 12:33:51.587 UTC [10] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-05-20 12:33:51.634 UTC [17] LOG:  database system was shut down at 2022-05-20 12:33:17 UTC
2022-05-20 12:33:51.651 UTC [10] LOG:  database system is ready to accept connections

main log:

e[0;92mInitial 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

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatially by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443e[0m
2022-05-20 13:25:13,751 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
{"level":"info","ts":1653053114.871371,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
{"level":"warn","ts":1653053114.8730252,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/Caddyfile","line":2}
{"level":"info","ts":1653053114.87448,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["//127.0.0.1:2019","//localhost:2019","//[::1]:2019"]}
{"level":"warn","ts":1653053114.8749065,"logger":"http","msg":"automatic HTTP->HTTPS redirects are disabled","server_name":"srv0"}
{"level":"warn","ts":1653053114.8750951,"logger":"tls","msg":"YOUR SERVER MAY BE VULNERABLE TO ABUSE: on-demand TLS is enabled, but no protections are in place","docs":"https://caddyserver.com/docs/automatic-https#on-demand-tls"}
{"level":"error","ts":1653053114.875556,"msg":"unable to create folder for config autosave","dir":"/var/www/.config/caddy","error":"mkdir /var/www/.config: permission denied"}
{"level":"info","ts":1653053114.8755739,"msg":"serving initial configuration"}
{"level":"info","ts":1653053114.876093,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000106a10"}
{"level":"info","ts":1653053114.8761456,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/mnt/docker-aio-config/caddy/"}
{"level":"info","ts":1653053114.8761756,"logger":"tls","msg":"finished cleaning storage units"}
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.2. Set the 'ServerName' directive globally to suppress this message
[Fri May 20 13:25:14.898359 2022] [ssl:warn] [pid 76] AH01906: 172.19.0.2:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri May 20 13:25:14.898684 2022] [ssl:warn] [pid 76] AH01909: 172.19.0.2:8080:0 server certificate does NOT include an ID which matches the server name
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.2. Set the 'ServerName' directive globally to suppress this message
[Fri May 20 13:25:14.926648 2022] [ssl:warn] [pid 76] AH01906: 172.19.0.2:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri May 20 13:25:14.926833 2022] [ssl:warn] [pid 76] AH01909: 172.19.0.2:8080:0 server certificate does NOT include an ID which matches the server name
[Fri May 20 13:25:14.929963 2022] [mpm_prefork:notice] [pid 76] AH00163: Apache/2.4.53 (Debian) PHP/8.0.18 OpenSSL/1.1.1n configured -- resuming normal operations
[Fri May 20 13:25:14.930174 2022] [core:notice] [pid 76] AH00094: Command line: 'apache2 -D FOREGROUND'
172.19.0.2:8080 adele.domain.com - - [20/May/2022:13:25:25 +0000] "GET /api/docker/logs?id=nextcloud-aio-nextcloud HTTP/1.1" 200 3435 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"
adele.domain.com - - [20/May/2022:13:25:25 +0000] "GET /api/docker/logs?id=nextcloud-aio-nextcloud HTTP/1.1" 200 3435 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"
172.19.0.2:8000 localhost - - [20/May/2022:13:25:25 +0000] "GET /api/docker/logs?id=nextcloud-aio-nextcloud HTTP/1.1" 200 643 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"
localhost - - [20/May/2022:13:25:25 +0000] "GET /api/docker/logs?id=nextcloud-aio-nextcloud HTTP/1.1" 200 643 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"
172.19.0.2:8000 localhost - - [20/May/2022:13:25:59 +0000] "GET /api/docker/logs?id=nextcloud-aio-database HTTP/1.1" 200 1854 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"
localhost - - [20/May/2022:13:25:59 +0000] "GET /api/docker/logs?id=nextcloud-aio-database HTTP/1.1" 200 1854 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"
172.19.0.2:8080 adele.domain.com - - [20/May/2022:13:25:59 +0000] "GET /api/docker/logs?id=nextcloud-aio-database HTTP/1.1" 200 4646 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"
adele.domain.com - - [20/May/2022:13:25:59 +0000] "GET /api/docker/logs?id=nextcloud-aio-database HTTP/1.1" 200 4646 "https://cirrus.domain.com:8080/containers" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36"

(I redacted my domain.)

I don’t see any leads here to help me understand what is wrong?
What can I do to understand what is happening?
thanks,

Hello, can you please send me the output of sudo docker network inspect nextcloud-aio?

Another thing, why am I seeing all this Caddy stuff (I do use Caddy, i know what it is, but i’m not using it here, and it’s commented out in the compose file) So i’m ignoring that Caddy error from my logs above atm … but it’s slowly bothering me the more i think about it! :smiley:

sudo docker network inspect nextcloud-aio
[
    {
        "Name": "nextcloud-aio",
        "Id": "55959a46b32093d0775153e70fbdc8dafcee2a9594d3a41c5e0a8ac3667fca94",
        "Created": "2022-05-20T12:34:15.256491802+01:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.19.0.0/16",
                    "Gateway": "172.19.0.1"
                }
            ]
        },
        "Internal": true,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "08cab0b51f177ff112007c19b138cdebdefa2d5159cd7674a722ab9f4ebea139": {
                "Name": "nextcloud-aio-collabora",
                "EndpointID": "be94469a1dff748e12bf664a4a18dfd211de13188b30fd85ce4b5bbde10fe6a9",
                "MacAddress": "02:42:ac:13:00:06",
                "IPv4Address": "172.19.0.6/16",
                "IPv6Address": ""
            },
            "0d55434078bcda212d99386cd581453b19fad16dc2cfcd71ddab9ac7e3d8a853": {
                "Name": "nextcloud-aio-redis",
                "EndpointID": "62f004aaa0a081fa7b232fbb9a5333212bfc69d02d7167f5792af6dbcfa264b6",
                "MacAddress": "02:42:ac:13:00:08",
                "IPv4Address": "172.19.0.8/16",
                "IPv6Address": ""
            },
            "1e2646cc328068cf7f353506719072a7a06d709ca4ab19247b82e8a0c061a7bd": {
                "Name": "nextcloud-aio-nextcloud",
                "EndpointID": "14ccb3ee03ecf6ab40bb586bd75ff5cb788c9ac8728a790606f3d62bed367d6e",
                "MacAddress": "02:42:ac:13:00:05",
                "IPv4Address": "172.19.0.5/16",
                "IPv6Address": ""
            },
            "9aed6538b2397ca41d49eb0631100f7853d42415d1400576a3877abd44a65501": {
                "Name": "nextcloud-aio-apache",
                "EndpointID": "eb96584844760dde98c9c39a0953f2af155dec9cb4c54628ddb23ba365c640c2",
                "MacAddress": "02:42:ac:13:00:09",
                "IPv4Address": "172.19.0.9/16",
                "IPv6Address": ""
            },
            "a29b9f37f477a7d58ad10f4c97ebbed60ded32ec9d3345f40a75908f2cb31ace": {
                "Name": "nextcloud-aio-clamav",
                "EndpointID": "6ee922f5e16d5487c3bf0deb9d301507c7159eb08254977d7dfceb0eea97f522",
                "MacAddress": "02:42:ac:13:00:03",
                "IPv4Address": "172.19.0.3/16",
                "IPv6Address": ""
            },
            "ae1ce6091267269b013b136095af3e71469d82b953bd7f6b4a96832418fb9116": {
                "Name": "nextcloud-aio-talk",
                "EndpointID": "d379c8028264ef976d28f72c37288fc5facc9da2ee1693467f37005e4a933587",
                "MacAddress": "02:42:ac:13:00:04",
                "IPv4Address": "172.19.0.4/16",
                "IPv6Address": ""
            },
            "b6c745aa8cd5a02d452f7d673ca8ceac32111cb10fc1d33fcc6829d2d2757327": {
                "Name": "nextcloud-aio-database",
                "EndpointID": "3fc624156a03592d2d07044f66675a1745decfa804afab17938165b9bee8b9a5",
                "MacAddress": "02:42:ac:13:00:07",
                "IPv4Address": "172.19.0.7/16",
                "IPv6Address": ""
            },
            "fab24d925bca27592c87e3d58da351c92bbdb7fdf01feeee2ba7f591d92b5b8e": {
                "Name": "nextcloud-aio-mastercontainer",
                "EndpointID": "76df8911784f0d8bce42b7b88859cd4430955093dad9b47d474b563aceaea636",
                "MacAddress": "02:42:ac:13:00:02",
                "IPv4Address": "172.19.0.2/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

telnet 172.19.0.7 5432 appears to connect successfully.

can you try to run nc -z nextcloud-aio-database 5432; echo $? from within the nextcloud container? what does it return?

sudo docker exec -it nextcloud-aio-nextcloud bash
bash-5.1$ nc -z nextcloud-aio-database 5432; echo $?
1

Thanks! what is the output of docker network inspect bridge?

(thank you! really appreciate you replying and so fast!)

sudo docker network inspect bridge
[
    {
        "Name": "bridge",
        "Id": "eda4a40cdbf55cb872c42b98179f65059018bb9575b5e279f38d7125feda33fa",
        "Created": "2022-05-20T13:33:46.967960784+01:00",
        "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": {
            "08cab0b51f177ff112007c19b138cdebdefa2d5159cd7674a722ab9f4ebea139": {
                "Name": "nextcloud-aio-collabora",
                "EndpointID": "42c70fd175653bd9458ea03a2eca2c33e38482839cfaf5525373b72eaa4e9546",
                "MacAddress": "02:42:ac:11:00:05",
                "IPv4Address": "172.17.0.5/16",
                "IPv6Address": ""
            },
            "0d55434078bcda212d99386cd581453b19fad16dc2cfcd71ddab9ac7e3d8a853": {
                "Name": "nextcloud-aio-redis",
                "EndpointID": "90b9e0062d64f1b5a13063cdaba2f5e0c427fba48d0aa3d4019a5137c5e8c942",
                "MacAddress": "02:42:ac:11:00:06",
                "IPv4Address": "172.17.0.6/16",
                "IPv6Address": ""
            },
            "1e2646cc328068cf7f353506719072a7a06d709ca4ab19247b82e8a0c061a7bd": {
                "Name": "nextcloud-aio-nextcloud",
                "EndpointID": "485f882ecc71fb6a0cd7222ebc3676f7eb55dea394e82b339e1feb89288dc2c8",
                "MacAddress": "02:42:ac:11:00:04",
                "IPv4Address": "172.17.0.4/16",
                "IPv6Address": ""
            },
            "9aed6538b2397ca41d49eb0631100f7853d42415d1400576a3877abd44a65501": {
                "Name": "nextcloud-aio-apache",
                "EndpointID": "ec37993399fcd40c0290c80a01503eab77cd4f1d39f372874f812ae743fdc20a",
                "MacAddress": "02:42:ac:11:00:08",
                "IPv4Address": "172.17.0.8/16",
                "IPv6Address": ""
            },
            "a29b9f37f477a7d58ad10f4c97ebbed60ded32ec9d3345f40a75908f2cb31ace": {
                "Name": "nextcloud-aio-clamav",
                "EndpointID": "4151c7aaeda9934f6f33d6d2b2aab95f1f4c1c37f751d6fcd9a2a87def5543fa",
                "MacAddress": "02:42:ac:11:00:03",
                "IPv4Address": "172.17.0.3/16",
                "IPv6Address": ""
            },
            "ae1ce6091267269b013b136095af3e71469d82b953bd7f6b4a96832418fb9116": {
                "Name": "nextcloud-aio-talk",
                "EndpointID": "ba00d757f4a4de5123e3d2345602315b3824e848dc1d2b0e16d02c95c8370bb1",
                "MacAddress": "02:42:ac:11:00:02",
                "IPv4Address": "172.17.0.2/16",
                "IPv6Address": ""
            },
            "b6c745aa8cd5a02d452f7d673ca8ceac32111cb10fc1d33fcc6829d2d2757327": {
                "Name": "nextcloud-aio-database",
                "EndpointID": "597bde3f0ed5c7466f6a13e6a86e7f3e4abfb9d66b42b724fbb1209cc0726d9c",
                "MacAddress": "02:42:ac:11:00:07",
                "IPv4Address": "172.17.0.7/16",
                "IPv6Address": ""
            }
        },
        "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": {}
    }
]

Thanks! so basically the containers are not able to talk to each other, so it looks like internal communication is disable in your nextcloud-aio docker network. Strange thing is that my configuration looks exactly the same but it works on my instance…

        "Internal": false,
        "Attachable": false,
        "Ingress": false,

this bit here^ looks ominous to me

right, so internal might need to be set to true.

For me it looks like this:

        "Internal": true,
        "Attachable": false,
        "Ingress": false,
1 Like

However after reading the documentation, this cannot be the reason as this value only sets if the network should be externally reachable. However I will try to set the enable_icc value to true by force. See improve the network creation by szaimen · Pull Request #683 · nextcloud/all-in-one · GitHub

Think I was trying something similar…
I added this to the compose file, but it’s very unhappy with me now… whoops. Don’t do this:

    networks:
      - nextcloud-aio
networks:
  nextcloud-aio:
    internal: true

once I figure how to pull your change in, i’ll try it. thanks

I’ll help you with this.

I’ve built new images with the fix for the develop channel. The develop channel is not recommended for production but for testing it works. In order to switch to it, simply change image: nextcloud/all-in-one:latest to image: nextcloud/all-in-one:develop. Afterwards you can switch back to the latest channel.

1 Like

I just realised that’s the bit I needed to know. perfect timing.

You will probably need to reset the whole AIO installation in order to recreate the network correctly. See GitHub - nextcloud/all-in-one at enh/665/reset-instance how to do this.

1 Like

it’s like you are in the room. and a few thoughts ahead of me.

You can see if it worked correctly when sudo network inspect nextcloud-aio looks something like this:

[
    {
        "Name": "nextcloud-aio",
        "Id": "3b6534588d4b65673634cd1b4b1fdedaf01c79fe8c7950badadc175e19257e42",
        "Created": "2022-05-20T14:41:32.497542977Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.24.0.0/16",
                    "Gateway": "172.24.0.1"
                }
            ]
        },
        "Internal": true,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "0ce8201c17b8014395061f814e5631f49e4b4f3e9ad0a435cb8686105d875e3e": {
                "Name": "nextcloud-aio-mastercontainer",
                "EndpointID": "b9b75aee3735caea7ca98e90947eec07885bbe31839b95e37b330219f66e87e7",
                "MacAddress": "02:42:ac:18:00:02",
                "IPv4Address": "172.24.0.2/16",
                "IPv6Address": ""
            },
            "36851bc308f56b4e93fed3cacd9c610cdd7783f5d572f4709feecd50bee93f37": {
                "Name": "nextcloud-aio-database",
                "EndpointID": "ac5a6872f5a5a6e68a5a8fc9fa68463fe47f022e8b2ba1da3ed10a92c5628954",
                "MacAddress": "02:42:ac:18:00:03",
                "IPv4Address": "172.24.0.3/16",
                "IPv6Address": ""
            },
            "be28fec7cb65688a03c176977c4d09e4d5995490734cbaf55c473d4f6a94df4b": {
                "Name": "nextcloud-aio-redis",
                "EndpointID": "63973597169badcee58f84f7d8cfe16201896f1228ccfb2b0936fb9050de08f8",
                "MacAddress": "02:42:ac:18:00:04",
                "IPv4Address": "172.24.0.4/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.bridge.enable_icc": "true"
        },
        "Labels": {}
    }
]