Nextcloud AIO went down in the middle of the day and cannot be reached

Support intro

Yesterday, in the middle of using nextcloud, it stopped connecting. Can’t get to it through the domain or local IP:8080

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    -unsure
  • Operating system and version (e.g., Ubuntu 24.04):
    • ubuntu server
  • Web server and version (e.g, Apache 2.4.25):
    • unsure
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • also unsure
  • PHP version (e.g, 8.3):
    • same`
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • 2 days ago
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

trying to figure out why I keep getting “This site can’t be reached”

Steps to replicate it (hint: details matter!):

  1. go to domain - This site can’t be reached
  2. try to login to the AIO backend - This site can’t be reached

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

docker inspect nextcloud-aio-mastercontainer leads to this:

[
    {
        "Id": "3c20351c02b8d55266cb6c0e3bacfb4c967148cb647f05f04453a6209e91a88a",
        "Created": "2024-12-22T18:20:16.670852419Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "exited",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 1,
            "Error": "failed to set up container networking: driver failed programming external connectivity on endpoint nextcloud-aio-mastercontainer (44b62ad0550e2040ae943d9c2a3105e27ba9a77961d0929741272a4df3e38c73): Bind for 0.0.0.0:80 failed: port is already allocated",
            "StartedAt": "2025-04-28T23:38:23.969472387Z",
            "FinishedAt": "2025-04-28T23:38:24.152720685Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2025-03-05T15:44:50.951534949Z",
                        "End": "2025-03-05T15:44:51.002407773Z",
                        "ExitCode": 0,
                        "Output": "Connection to 127.0.0.1 80 port [tcp/http] succeeded!\nConnection to 127.0.0.1 8000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 8080 port [tcp/http-alt] succeeded!\nConnection to 127.0.0.1 8443 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2025-03-05T15:45:21.00341918Z",
                        "End": "2025-03-05T15:45:21.054320575Z",
                        "ExitCode": 0,
                        "Output": "Connection to 127.0.0.1 80 port [tcp/http] succeeded!\nConnection to 127.0.0.1 8000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 8080 port [tcp/http-alt] succeeded!\nConnection to 127.0.0.1 8443 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2025-03-05T15:45:51.056249155Z",
                        "End": "2025-03-05T15:45:51.101965797Z",
                        "ExitCode": 0,
                        "Output": "Connection to 127.0.0.1 80 port [tcp/http] succeeded!\nConnection to 127.0.0.1 8000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 8080 port [tcp/http-alt] succeeded!\nConnection to 127.0.0.1 8443 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2025-03-05T15:46:21.104042859Z",
                        "End": "2025-03-05T15:46:21.160955394Z",
                        "ExitCode": 0,
                        "Output": "Connection to 127.0.0.1 80 port [tcp/http] succeeded!\nConnection to 127.0.0.1 8000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 8080 port [tcp/http-alt] succeeded!\nConnection to 127.0.0.1 8443 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9876 port [tcp/*] succeeded!\n"
                    },
                    {
                        "Start": "2025-03-05T15:46:51.161881579Z",
                        "End": "2025-03-05T15:46:51.211802377Z",
                        "ExitCode": 0,
                        "Output": "Connection to 127.0.0.1 80 port [tcp/http] succeeded!\nConnection to 127.0.0.1 8000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 8080 port [tcp/http-alt] succeeded!\nConnection to 127.0.0.1 8443 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9000 port [tcp/*] succeeded!\nConnection to 127.0.0.1 9876 port [tcp/*] succeeded!\n"
                    }
                ]
            }
        },
        "Image": "sha256:921fb075ff63ac5fb7d77a3131983a6b436b0bf30e5c6180360f26900af0e2f9",
        "ResolvConfPath": "/var/lib/docker/containers/3c20351c02b8d55266cb6c0e3bacfb4c967148cb647f05f04453a6209e91a88a/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/3c20351c02b8d55266cb6c0e3bacfb4c967148cb647f05f04453a6209e91a88a/hostname",
        "HostsPath": "/var/lib/docker/containers/3c20351c02b8d55266cb6c0e3bacfb4c967148cb647f05f04453a6209e91a88a/hosts",
        "LogPath": "/var/lib/docker/containers/3c20351c02b8d55266cb6c0e3bacfb4c967148cb647f05f04453a6209e91a88a/3c20351c02b8d55266cb6c0e3bacfb4c967148cb647f05f04453a6209e91a88a-json.log",
        "Name": "/nextcloud-aio-mastercontainer",
        "RestartCount": 0,
        "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": "bridge",
            "PortBindings": {
                "80/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "80"
                    }
                ],
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ],
                "8443/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8443"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "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": null,
            "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": {
                "ID": "3c20351c02b8d55266cb6c0e3bacfb4c967148cb647f05f04453a6209e91a88a",
                "LowerDir": "/var/lib/docker/overlay2/423a9166239531786d3effad707b2197bcc53c17dd98818084c6398d1c0825d1-init/diff:/var/lib/docker/overlay2/8996ade6896dedc5afe760160f37831b85fcc6d525b396f2595263adad90d8c7/diff:/var/lib/docker/overlay2/19b2ef0fa5f803f88e2687eb267efa499ac7efafd1ffa05274dc9374a7fca832/diff:/var/lib/docker/overlay2/26a56518a7207fbc7dd61a11ab499e245b2c45f27c873423b1f0c1602e28647f/diff:/var/lib/docker/overlay2/e7392a67b62578665a1cbfaf30ccbaf187554b6833001a3dd3550de690075203/diff:/var/lib/docker/overlay2/2a61d78bce8a11da5b132d83ee14f331cedc150aaf980f67b1419ae50dbbac5a/diff:/var/lib/docker/overlay2/fd80504d827bde5931e9092453d0101337d818aed53261df47bff664a4bde120/diff:/var/lib/docker/overlay2/f91d5e55262ed6102b0df1e45ddb792b7fe68308f8494e36f4ca83401842cea6/diff:/var/lib/docker/overlay2/98f5b1587d2c001ea8506c727ab309b73cc9d85790779dbc7c061919d605aa5d/diff:/var/lib/docker/overlay2/4afb66d02049c3de301799f7a821bd007619bdd14db994daf6869e1eede7cfcd/diff:/var/lib/docker/overlay2/5baedfab8ff42c6ca2b3c8912e5ac5ab94c83c0ec59afc54345ddafa7034e316/diff:/var/lib/docker/overlay2/e2751919898927b078bc5e8d6bdfbc6562656cb9224a7fa532e8dd59c51c43ce/diff:/var/lib/docker/overlay2/8375a4c01c523e3082ef6c0efd5a518ca870574d6102a0fbf794431ccb59dc90/diff:/var/lib/docker/overlay2/b02286856b28e00784fe35b367749de738dd54fadd07cedad5b874387eadb613/diff:/var/lib/docker/overlay2/e30b146c4c524a7d20409924141c21930cfd2ffdcc6b3a5804aabd31a57225fc/diff:/var/lib/docker/overlay2/4b47d762989034c3b129f2003ed3cf2571e0a4dd34e8b85a423e0d9963331227/diff:/var/lib/docker/overlay2/441c8be9f91bc0535ad656e3b3c77af80eb53e9d339d5b678a2e1810f8a21b31/diff:/var/lib/docker/overlay2/f6eb61eb8ccd63ec965b0556745bc5989633f46d45c850998523069c9304a051/diff:/var/lib/docker/overlay2/869bd25f69d779bf363b2133ab65e1128c69c0397bb2857920b5c642b13b515d/diff:/var/lib/docker/overlay2/797c9aa63cdd9d1d6f2203fd93547dd1a0005a0ce9d23684ab9046b6f35242e3/diff",
                "MergedDir": "/var/lib/docker/overlay2/423a9166239531786d3effad707b2197bcc53c17dd98818084c6398d1c0825d1/merged",
                "UpperDir": "/var/lib/docker/overlay2/423a9166239531786d3effad707b2197bcc53c17dd98818084c6398d1c0825d1/diff",
                "WorkDir": "/var/lib/docker/overlay2/423a9166239531786d3effad707b2197bcc53c17dd98818084c6398d1c0825d1/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": "735ee72c4b0c",
            "Domainname": "",
            "User": "root",
            "AttachStdin": true,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "80/tcp": {},
                "8080/tcp": {},
                "8443/tcp": {},
                "9000/tcp": {}
            },
            "Tty": true,
            "OpenStdin": true,
            "StdinOnce": true,
            "Env": [
                "NEXTCLOUD_DATADIR=/media/synology",
                "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.14",
                "PHP_URL=https://www.php.net/distributions/php-8.3.14.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.3.14.tar.xz.asc",
                "PHP_SHA256=58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7"
            ],
            "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": "",
            "SandboxKey": "",
            "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": null,
                    "MacAddress": "",
                    "DriverOpts": null,
                    "GwPriority": 0,
                    "NetworkID": "9d756a65cdff2f792ef4efc54d0e4c68cda2a1f7a68cd2477ff1c45da5c06cca",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "3c20351c02b8",
                        "735ee72c4b0c"
                    ]
                }
            }
        }
    }
]

This is the error you need to debug…

Can you post the output of sudo netstat -tulpn here?

Yes, sir.

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:17600         0.0.0.0:*               LISTEN      3605/dropbox        
tcp        0      0 127.0.0.1:17603         0.0.0.0:*               LISTEN      3605/dropbox        
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1925/cupsd          
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      608/systemd-resolve 
tcp        0      0 0.0.0.0:17500           0.0.0.0:*               LISTEN      3605/dropbox        
tcp        0      0 127.0.0.1:8153          0.0.0.0:*               LISTEN      3894/zoiper         
tcp        0      0 100.68.190.94:33739     0.0.0.0:*               LISTEN      1942/tailscaled     
tcp        0      0 127.0.0.1:19940         0.0.0.0:*               LISTEN      3494/zoiper         
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      2363/smbd           
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/init              
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      2363/smbd           
tcp6       0      0 fd7a:115c:a1e0::7:64630 :::*                    LISTEN      1942/tailscaled     
tcp6       0      0 :::8080                 :::*                    LISTEN      2111/node /home/Shi 
tcp6       0      0 :::17500                :::*                    LISTEN      3605/dropbox        
tcp6       0      0 :::1716                 :::*                    LISTEN      3459/kdeconnectd    
tcp6       0      0 ::1:631                 :::*                    LISTEN      1925/cupsd          
tcp6       0      0 :::445                  :::*                    LISTEN      2363/smbd           
tcp6       0      0 :::111                  :::*                    LISTEN      1/init              
tcp6       0      0 :::139                  :::*                    LISTEN      2363/smbd           
udp        0      0 127.0.0.53:53           0.0.0.0:*                           608/systemd-resolve 
udp        0      0 0.0.0.0:111             0.0.0.0:*                           1/init              
udp        0      0 192.168.0.255:137       0.0.0.0:*                           2336/nmbd           
udp        0      0 192.168.0.141:137       0.0.0.0:*                           2336/nmbd           
udp        0      0 0.0.0.0:137             0.0.0.0:*                           2336/nmbd           
udp        0      0 192.168.0.255:138       0.0.0.0:*                           2336/nmbd           
udp        0      0 192.168.0.141:138       0.0.0.0:*                           2336/nmbd           
udp        0      0 0.0.0.0:138             0.0.0.0:*                           2336/nmbd           
udp        0      0 0.0.0.0:37526           0.0.0.0:*                           1720/avahi-daemon:  
udp        0      0 0.0.0.0:41641           0.0.0.0:*                           1942/tailscaled     
udp        0      0 0.0.0.0:17500           0.0.0.0:*                           3605/dropbox        
udp        0      0 224.0.0.251:5353        0.0.0.0:*                           6441/chrome --type= 
udp        0      0 224.0.0.251:5353        0.0.0.0:*                           6441/chrome --type= 
udp        0      0 224.0.0.251:5353        0.0.0.0:*                           6388/chrome         
udp        0      0 224.0.0.251:5353        0.0.0.0:*                           6388/chrome         
udp        0      0 224.0.0.251:5353        0.0.0.0:*                           6441/chrome --type= 
udp        0      0 224.0.0.251:5353        0.0.0.0:*                           6441/chrome --type= 
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           1720/avahi-daemon:  
udp6       0      0 :::56039                :::*                                1720/avahi-daemon:  
udp6       0      0 :::111                  :::*                                1/init              
udp6       0      0 :::41641                :::*                                1942/tailscaled     
udp6       0      0 :::5353                 :::*                                1720/avahi-daemon:  
udp6       0      0 :::1716                 :::*                                3459/kdeconnectd

Looks like another service is using a port that is used by the mastercontainer. So you run into a port conflict here…