Cannot access AIO interface anymore

Cannot enter AIO interface after a year of no issues using it. NC itself works fine.

NC 28.0.3 (AIO 8.0.0) behind Nginx Proxy Manager.

This is the output of sudo docker exec nextcloud-aio-mastercontainer cat /mnt/docker-aio-config/data/configuration.json


login at [https://{PUBLICIP}:8080] does NOT work after sudo docker stop nextcloud-aio-apache but I guess that’s due to Nginx PM.

Everything is ERR_CONNECTION_REFUSED.

NC instance itself works fine. Please advise.

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

[
    {
        "Id": "58eab6273dc0c8a7b766cc254a782340ef7b73a582a2144d5ca5b7163276efc9",
        "Created": "2024-03-27T16:21:20.622928006Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "restarting",
            "Running": true,
            "Paused": false,
            "Restarting": true,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 1,
            "Error": "",
            "StartedAt": "2024-03-28T21:59:37.512643901Z",
            "FinishedAt": "2024-03-28T21:59:37.704970773Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2024-03-28T21:22:40.678906008Z",
                        "End": "2024-03-28T21:22:40.790062002Z",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-28T21:23:10.791313689Z",
                        "End": "2024-03-28T21:23:10.903698575Z",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-28T21:23:40.904581078Z",
                        "End": "2024-03-28T21:23:41.033806605Z",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-28T21:24:11.035232327Z",
                        "End": "2024-03-28T21:24:11.121184548Z",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2024-03-28T21:24:41.121974752Z",
                        "End": "2024-03-28T21:24:41.23590157Z",
                        "ExitCode": 0,
                        "Output": "Connection to localhost (::1) 80 port [tcp/http] succeeded!\nConnection to localhost (::1) 8000 port [tcp/*] succeeded!\nConnection to localhost (::1) 8080 port [tcp/http-alt] succeeded!\nConnection to localhost (::1) 8443 port [tcp/*] succeeded!\nConnection to localhost (::1) 9000 port [tcp/*] succeeded!\nConnection to localhost (127.0.0.1) 9876 port [tcp/*] succeeded!\n"
                    }
                ]
            }
        },
        "Image": "sha256:4108efdb22be13fb7c054852dd4f4faee664f029dbddcc8f618c0a42f40a438b",
        "ResolvConfPath": "/var/lib/docker/containers/58eab6273dc0c8a7b766cc254a782340ef7b73a582a2144d5ca5b7163276efc9/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/58eab6273dc0c8a7b766cc254a782340ef7b73a582a2144d5ca5b7163276efc9/hostname",
        "HostsPath": "/var/lib/docker/containers/58eab6273dc0c8a7b766cc254a782340ef7b73a582a2144d5ca5b7163276efc9/hosts",
        "LogPath": "/var/lib/docker/containers/58eab6273dc0c8a7b766cc254a782340ef7b73a582a2144d5ca5b7163276efc9/58eab6273dc0c8a7b766cc254a782340ef7b73a582a2144d5ca5b7163276efc9-json.log",
        "Name": "/nextcloud-aio-mastercontainer",
        "RestartCount": 41,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "nextcloud_aio_mastercontainer:/mnt/docker-aio-config",
                "/var/run/docker.sock:/var/run/docker.sock:ro"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                52,
                182
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [
                "label=disabled"
            ],
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": [],
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "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"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/fbb90835d37462f5a3104c56fa5add682f9051cb3e856954971bc86175fc354c-init/diff:/var/lib/docker/overlay2/b7589941a370d0ee29c29def4386b3947f8765eedab2cd5d51a6b0d5ba1f4dd2/diff:/var/lib/docker/overlay2/c3b58306754860683912d625faed55810609eb667697f1f3150b66c132844160/diff:/var/lib/docker/overlay2/7ee17e9bdabb80f05e826c9c83c8ed92fce704855e103707338dded2f9e5030e/diff:/var/lib/docker/overlay2/8881d65caac223ab80770d85b29e3debfc908ae0b4ede1eb74f35b77ad8d5a21/diff:/var/lib/docker/overlay2/3f7211bff4e88a0c0b7f8c7c7e3ceeafb21a698135e2158c0ef429949d2e7db4/diff:/var/lib/docker/overlay2/e364c47d4acac381a3b96a3b82f169d37bcc842584a8d852144029b67f0a1776/diff:/var/lib/docker/overlay2/c2fd81f33c3d02af8f053a460cd6703a147067ca2290efa3f4eac08b6b43e5a6/diff:/var/lib/docker/overlay2/e7f7582d99d8074223354357aeeb110a5350efa8f965e9e79936acbda058018b/diff:/var/lib/docker/overlay2/76e49d7c9672e31a7e39241cafcc706d2c0975f960c67454ab81214198ce9e06/diff:/var/lib/docker/overlay2/dbb93263634c942ce7ce15095daaf292a7b64943a222917cb106fb40944bd460/diff:/var/lib/docker/overlay2/eb4a13ddcffe3c63d19033e0bb261e2a6ee9e23cc11b495bb8f4d17f45516806/diff:/var/lib/docker/overlay2/504dae121a6e46d48c1a2cacc0ea5b876945a0370c04cab27152b0ae01537abb/diff:/var/lib/docker/overlay2/1c768eb6e94512e997eb603696640d3c9e74a101a064566dbc2c14e0448e7532/diff:/var/lib/docker/overlay2/50c42f333de1321819ef92a0d50699ee13914f7337f25b7c68dc8edc845b1799/diff:/var/lib/docker/overlay2/54381f73031710a9b1e311410ae82ad2ceb57d9563dd1d5aef9a94f700886ee4/diff:/var/lib/docker/overlay2/8c1d552a11020163a98ccc593cde1bdc415053e1b9a0e93fc1e03215cfb3307e/diff:/var/lib/docker/overlay2/bc27ea61168b2cd843b9d24ec3a0f69cd2498b1c4caef6a8a71f1717533b84e6/diff:/var/lib/docker/overlay2/c444b883b5e639164a44c3005da77dae0bacb7e04b3e17b220baaed7e9e35798/diff",
                "MergedDir": "/var/lib/docker/overlay2/fbb90835d37462f5a3104c56fa5add682f9051cb3e856954971bc86175fc354c/merged",
                "UpperDir": "/var/lib/docker/overlay2/fbb90835d37462f5a3104c56fa5add682f9051cb3e856954971bc86175fc354c/diff",
                "WorkDir": "/var/lib/docker/overlay2/fbb90835d37462f5a3104c56fa5add682f9051cb3e856954971bc86175fc354c/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "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": ""
            },
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "58eab6273dc0",
            "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": [
                "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=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA",
                "PHP_VERSION=8.3.3",
                "PHP_URL=https://www.php.net/distributions/php-8.3.3.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.3.3.tar.xz.asc",
                "PHP_SHA256=b0a996276fe21fe9ca8f993314c8bc02750f464c7b0343f056fb0894a8dfa9d1"
            ],
            "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": {},
            "StopSignal": "SIGQUIT"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "a258bf7c5faebe78ef3bc5732e47e4b548a7f60cb68f68645aa4a138f3762763",
            "SandboxKey": "/var/run/docker/netns/a258bf7c5fae",
            "Ports": {},
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {}
        }
    }
]
ro

It seems to be restarting. Can you post the output of sudo docker logs nextcloud-aio-mastercontainer here?

Yea, it still says restarting for like 10 minutes now, no idea why. It’s fully alive, I can interact with everything.

sudo docker logs nextcloud-aio-mastercontainer returns this:

Trying to fix docker.sock permissions internally…
Adding internal www-data to group ping

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

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
[Wed Mar 27 16:21:22.903796 2024] [mpm_event:notice] [pid 113:tid 137303161916168] AH00489: Apache/2.4.58 (Unix) OpenSSL/3.1.4 configured -- resuming normal operations
[Wed Mar 27 16:21:22.904038 2024] [core:notice] [pid 113:tid 137303161916168] AH00094: Command line: 'httpd -D FOREGROUND'
{"level":"info","ts":1711556482.9180603,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[27-Mar-2024 16:21:22] NOTICE: fpm is running, pid 118
[27-Mar-2024 16:21:22] NOTICE: ready to handle connections
[28-Mar-2024 02:04:22] WARNING: [pool www] child 70130 exited on signal 9 (SIGKILL) after 11.926088 seconds from start
[28-Mar-2024 02:04:25] NOTICE: [pool www] child 70153 started
Total reclaimed space: 0B
Could not resolve the host nextcloud.com.
Most likely the DNS resolving does not work.
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
Could not resolve the host nextcloud.com.
Most likely the DNS resolving does not work.
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
Could not resolve the host nextcloud.com.
Most likely the DNS resolving does not work.
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
Could not resolve the host nextcloud.com.
Most likely the DNS resolving does not work.
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

So I carried out the instructions from https://github.com/nextcloud/all-in-one/discussions/2065, now I can access the AIO interface at https://192.168.0.XXX:8080 but I can’t access my NC instance (502 Bad Gateway). I don’t have the AIO password, how screwed am I?

1 Like

Fantastic, all working now! Thank you very much :slight_smile: It was the DNS weirdness as discussed at How to fix sudden dns resolution issues after the AIO update to v4.4.1 or higher. · nextcloud/all-in-one · Discussion #2065 · GitHub

1 Like

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