Nextcloud AIO failing to connect (but was working fine yesterday)

Nextcloud AIO not working after working fine yesterday. as best I can tell it is not starting up. Please see below and let me know what additional detail I can provide.

Thanks!

[details=“Support intro”]

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):

    • Not sure. When I run “occ update:check” I get “occ not found”
  • Operating system and version (e.g., Ubuntu 24.04):

    • 24.04.02 LTS
  • Web server and version (e.g, Apache 2.4.25):

    • “apache2 -v” gets me “version not found”
  • PHP version (e.g, 8.3):
    PHP 8.3.6 (cli) (built: Dec 2 2024 12:36:18) (NTS)*

  • Is this the first time you’ve seen this error? (Yes / No):

    • yes
  • When did this problem seem to first start?

    • over night
  • 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:

Cannot connect to AIO through the domain. None of the occ commands are working

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.

the log in the data directory is empty.

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.


It appears that nextcloud is not starting.

#### Nextcloud

"occ config:list system" results in Command 'occ' not found, but there are 22 similar ones.

#### Apps

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

Get the same message as above for any occ command

See AIO: How to run occ commands

1 Like

Thanks, and I apologize for not being clear. Here’s what gets returned:

Error response from daemon: container 867e54fc6c11beae75748dbf61fa36968b7bff9c385329e07d38cdf96fcd4088 is not running

I may be completely off track here and this is an assumption… but recently some Cable providers (V) have changed their connection to DSLite (CG-NAT (Carrier Grade Network Address Translation))… check whether this is the case, see 101: Network, domain and DNS

Appreciate the thought but I have no issues connecting via ssh, and the response in the post above seems to be saying that the nextcloud container won’t start… for some reason.

@matthaiduk can you log into the AIO interface usually running on port 8080 and check the state of your installation? Possibly you need to start the containers again?

1 Like

Unfortunately no. 8080 gets me the same inability to connect.

Is there a way to restart the containers through the command line? I can give that a try and let you know how it goes

Can you post the output of sudo docker inspect nextcloud-aio-mastercontainer here?

@szaimen Absolutely. here you go.

[
{
“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 (90aa1ae65062f6e82cf808e8490fcf8f13e8f63294ce133c41a9f408da4251e9): Bind for 0.0.0.0:80 failed: port is already allocated”,
“StartedAt”: “2025-03-05T16:01:15.417028625Z”,
“FinishedAt”: “2025-03-05T16:01:15.592458662Z”,
“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 seems to be the issue why the mastercontainer is not running anymore…

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

1 Like

Yes, sir. Here you go:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 100.113.45.38:33895 0.0.0.0:* LISTEN 715/tailscaled
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/init
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 616/systemd-resolve
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 616/systemd-resolve
tcp6 0 0 :::111 :::* LISTEN 1/init
tcp6 0 0 :::22 :::* LISTEN 1/init
tcp6 0 0 fd7a:115c:a1e0::5:60471 :::* LISTEN 715/tailscaled
udp 0 0 127.0.0.54:53 0.0.0.0:* 616/systemd-resolve
udp 0 0 127.0.0.53:53 0.0.0.0:* 616/systemd-resolve
udp 0 0 192.168.0.107:68 0.0.0.0:* 568/systemd-network
udp 0 0 0.0.0.0:111 0.0.0.0:* 1/init
udp 0 0 0.0.0.0:41641 0.0.0.0:* 715/tailscaled
udp6 0 0 :::111 :::* 1/init
udp6 0 0 :::41641 :::* 715/tailscaled

On a whim, based on the last post by @szaimen I reset the router and switch. All is working fine now.

Thanks so much for the help, everybody!

1 Like

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