Cant reach Nexcloud AIO interface anymore

Nextcloud version (eg, 20.0.5): 28.0.2
Operating system and version (eg, Ubuntu 20.04): Linux 6.6.18-0-virt x86_64
Apache or nginx version (eg, Apache 2.4.25): traefik 2.11.0
PHP version (eg, 7.4): 8.1.27

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. log into nextcloud
  2. go to admin settings
  3. click “Open Nextcloud AIO Interface”

Problem:
Hey dear Nextcloud Community,
in the past I was able to click the link as long as I was on my home network and access the AIO Interface via a 192.168.0.xxx address. I got an email by my instance that there is an update available so I wanted to access the AIO interface but it is not reachable anymore. If I click the link I just get a
" Unable to connect
Firefox can’t establish a connection to the server at 192.168.0.3:8080."

I run my AIO container behind traefik.
In portainer I can see that sometimes there is a portforwarding of 8080:8080 to the master container but somtimes it “disappears” a restart of the container shows the forward for a while.
The mastercontainer contains this log message:

You should be able to fix this by following Configuring DNS | dockerlabs
Apart from that, there has been this: How to fix sudden dns resolution issues after the AIO update to v4.4.1 or higher. · nextcloud/all-in-one · Discussion #2065 · GitHub

But my initial install was after this and it worked in the past so this should be unrelated?

I can not access my instance from my homenetwork.
nextcloud.mydomain.com does not resolve inside my homenetwork because it points at my current dynamic address and something seems to be not working with the dns/provider/router. I accepted this since I usually am connected to a vpn and then the access works because the access appears to be coming from the “outside”. I just mention it since it might be important for the problem.

I dont know where to start in terms of how to debug this. Please let me know some next steps.

Hi, can you post the output of sudo docker inspect nextcloud-aio-mastercontainer here?

I just misconfigured/crashed parts of my system and will have to fix that first before I can reach my docker again. (ssh of the dockerhost is broken).
I will respond again once I had the time to fix that and got the information you requested. poor timing on my end…

here you go

> [
    {
        "Id": "cb503bf180971a855d2c6f0ee83f9ae0c308fd8b8c7ed1b195438ad796da12dd",
        "Created": "2024-03-02T08:11:52.730600755Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "restarting",
            "Running": true,
            "Paused": false,
            "Restarting": true,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 1,
            "Error": "",
            "StartedAt": "2024-04-26T19:16:39.475351137Z",
            "FinishedAt": "2024-04-26T19:16:47.560970235Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2024-03-16T12:04:09.5279982+01:00",
                        "End": "2024-03-16T12:04:09.623557061+01:00",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (127.0.0.1) 80 port [tcp/http] succeeded!\nConnection to localhost (127.0.0.1) 8000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (127.0.0.1) 8443 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-16T12:04:39.624234355+01:00",
                        "End": "2024-03-16T12:04:39.710073424+01:00",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (127.0.0.1) 80 port [tcp/http] succeeded!\nConnection to localhost (127.0.0.1) 8000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (127.0.0.1) 8443 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-16T12:05:09.716573698+01:00",
                        "End": "2024-03-16T12:05:09.812985227+01:00",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (127.0.0.1) 80 port [tcp/http] succeeded!\nConnection to localhost (127.0.0.1) 8000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (127.0.0.1) 8443 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-16T12:05:39.813373731+01:00",
                        "End": "2024-03-16T12:05:39.897053726+01:00",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (127.0.0.1) 80 port [tcp/http] succeeded!\nConnection to localhost (127.0.0.1) 8000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (127.0.0.1) 8443 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-16T12:06:09.898007849+01:00",
                        "End": "2024-03-16T12:06:09.989489992+01:00",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (127.0.0.1) 80 port [tcp/http] succeeded!\nConnection to localhost (127.0.0.1) 8000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (127.0.0.1) 8443 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    }
                ]
            }
        },
        "Image": "sha256:7813294e71d8531391f5df02cb70b29d372337d5523c1d6906fa4fc84a80bd12",
        "ResolvConfPath": "/var/lib/docker/containers/cb503bf180971a855d2c6f0ee83f9ae0c308fd8b8c7ed1b195438ad796da12dd/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/cb503bf180971a855d2c6f0ee83f9ae0c308fd8b8c7ed1b195438ad796da12dd/hostname",
        "HostsPath": "/var/lib/docker/containers/cb503bf180971a855d2c6f0ee83f9ae0c308fd8b8c7ed1b195438ad796da12dd/hosts",
        "LogPath": "/var/lib/docker/containers/cb503bf180971a855d2c6f0ee83f9ae0c308fd8b8c7ed1b195438ad796da12dd/cb503bf180971a855d2c6f0ee83f9ae0c308fd8b8c7ed1b195438ad796da12dd-json.log",
        "Name": "/nextcloud-aio-mastercontainer",
        "RestartCount": 274,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/var/run/docker.sock:/var/run/docker.sock:ro"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "4260c2843444d8c6f48c0b17b5e8a20c2983f77b15d8ee0bf379b64e5a5e652b",
            "PortBindings": {
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "Mounts": [
                {
                    "Type": "volume",
                    "Source": "nextcloud_aio_mastercontainer",
                    "Target": "/mnt/docker-aio-config",
                    "VolumeOptions": {}
                }
            ],
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ],
            "Init": true
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/b63aed0d0a91649ae204d0de8b298dd31e42dd226988dab24d928232cfe27907-init/diff:/var/lib/docker/overlay2/0f5a2956341d626de1a1ea99e4f739b96c1113da35a45e3370f065f2a364ba14/diff:/var/lib/docker/overlay2/51e9395396867cd97c6cc434e4a48b8d2597d46b31a10bda74ff915fb7702383/diff:/var/lib/docker/overlay2/8bedd28535a92c9d18399c64d0fb3c08e9a5dc610837bd5da058d9435cb5558f/diff:/var/lib/docker/overlay2/1d3933f693960312e418f3c087d494f70eca9741bdb456d0a60331940378cce9/diff:/var/lib/docker/overlay2/58fd7fc8d310a2ae688192d388d22bea28e396b9ebd79b3275c51c1c3ee2692b/diff:/var/lib/docker/overlay2/9f1a660a264eab94f97f3c165a7be923c5f8020e63437de8ad3f09474b341ea6/diff:/var/lib/docker/overlay2/a2b0c37883eac4902846244256e25248c46d792b932b4d4553db0857b98b292c/diff:/var/lib/docker/overlay2/f415c4b90e5f8e5867362688bd99c7b3f12e5e04277bc3e2affd97648af97579/diff:/var/lib/docker/overlay2/45ebb1ddb6cde38850e837e771d33fa93d44cf99ac5d65fa3d61e336b8f12a39/diff:/var/lib/docker/overlay2/00e69622cdff1a8750a06f3a31bc4a71505d59f008abc9fa5d08261f43124051/diff:/var/lib/docker/overlay2/0944383785c83e3dcb161e795026b08ddf28a1b1c80898db5871e8915c991d4f/diff:/var/lib/docker/overlay2/0cfad2949648aff992310341f50d2c91258db44708f7c476c897f09d47b3d072/diff:/var/lib/docker/overlay2/d7624f4d28cc442ce5020b0fd4c64d06eddf72c57b3fb8a480813ed0c274f5b9/diff:/var/lib/docker/overlay2/212ce824b0a77155cbbbe4d9befdb37fdc3c0d1dfe59eded49d93df0c6e1b588/diff:/var/lib/docker/overlay2/0f610f7dd6a13be3a58688f2dccc5470848944e110a9287b0dced7dcdc084be0/diff:/var/lib/docker/overlay2/63b504b4d4c78292c2f41a9e41169143039e92524d96592107f7ee29b27aeead/diff:/var/lib/docker/overlay2/c698262de24b638f766c655aa382715f0814808f5f445a0ad9d94b11853260f6/diff:/var/lib/docker/overlay2/b16acf670026afd9f513bddd1b40e6426400568d18e6a82252b2a075b2c28228/diff",
                "MergedDir": "/var/lib/docker/overlay2/b63aed0d0a91649ae204d0de8b298dd31e42dd226988dab24d928232cfe27907/merged",
                "UpperDir": "/var/lib/docker/overlay2/b63aed0d0a91649ae204d0de8b298dd31e42dd226988dab24d928232cfe27907/diff",
                "WorkDir": "/var/lib/docker/overlay2/b63aed0d0a91649ae204d0de8b298dd31e42dd226988dab24d928232cfe27907/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "volume",
                "Name": "nextcloud_aio_mastercontainer",
                "Source": "/var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data",
                "Destination": "/mnt/docker-aio-config",
                "Driver": "local",
                "Mode": "z",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "cb503bf18097",
            "Domainname": "",
            "User": "root",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "80/tcp": {},
                "8080/tcp": {},
                "8443/tcp": {},
                "9000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "SKIP_DOMAIN_VALIDATION=true",
                "APACHE_PORT=11000",
                "APACHE_IP_BINDING=0.0.0.0",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "PHPIZE_DEPS=autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c",
                "PHP_INI_DIR=/usr/local/etc/php",
                "PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
                "PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
                "PHP_LDFLAGS=-Wl,-O1 -pie",
                "GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC",
                "PHP_VERSION=8.2.16",
                "PHP_URL=https://www.php.net/distributions/php-8.2.16.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.2.16.tar.xz.asc",
                "PHP_SHA256=28cdc995b7d5421711c7044294885fcde4390c9f67504a994b4cf9bc1b5cc593"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/healthcheck.sh"
                ]
            },
            "Image": "nextcloud/all-in-one:latest",
            "Volumes": null,
            "WorkingDir": "/var/www/docker-aio",
            "Entrypoint": [
                "/start.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "f54a7b32b5c7f64bef63b32a4e9f558d75290517c94b62feecbc6c5c53042977",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:7813294e71d8531391f5df02cb70b29d372337d5523c1d6906fa4fc84a80bd12",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "nextcloud",
                "com.docker.compose.project.config_files": "/data/compose/1/docker-compose.yml",
                "com.docker.compose.project.working_dir": "/data/compose/1",
                "com.docker.compose.replace": "9064f053e132f666d6d66a6aed7bb73aae99bff7c2ba7bfbddbd65f9fd0997f9",
                "com.docker.compose.service": "nextcloud-aio-mastercontainer",
                "com.docker.compose.version": "2.20.2"
            },
            "StopSignal": "SIGQUIT"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "9b980e440e4a6839c6e5b4e694b9a5971601b2929310eef7e4f72bb30974e487",
            "SandboxKey": "/var/run/docker/netns/9b980e440e4a",
            "Ports": {},
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "nextcloud-aio": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "nextcloud-aio-mastercontainer",
                        "cb503bf18097"
                    ],
                    "MacAddress": "",
                    "NetworkID": "4260c2843444d8c6f48c0b17b5e8a20c2983f77b15d8ee0bf379b64e5a5e652b",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DriverOpts": null,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "cb503bf18097"
                    ]
                }
            }
        }
    }
]

Thanks! Can you also post the outout of sudo docker logs nextcloud-aio-mastercontainer here?

its about a trillion times the message:

You should be able to fix this by following https://dockerlabs.collabnix.com/intermediate/networking/Configuring_DNS.html
Apart from that, there has been this: https://github.com/nextcloud/all-in-one/discussions/2065                           
^[[0;31mCould not resolve the host nextcloud.com.^[[0m                                                                   
Most likely the DNS resolving does not work. 

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.