Nextcloud AIO stuck in 'restarting' state

Support intro

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):
    • 12.4.0
  • Operating sysm and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • Nginx Proxy Manager 2.13.5
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Nginx Proxy Manager 2.13.5
  • PHP version (e.g, 8.3):
    • Nginx Proxy Manager 2.13.5
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Sunday 1/11
  • 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:

I’m attempting to install Nextcloud AIO on a fresh Ubuntu VM, but after dealing with the docker socket being locked to the root user and group for several hours it is now at least attempting to run. I’ve never used docker before so I’m unsure of how to best troubleshoot this. The user running the container is a member of the docker group. docker ps -a returns:

CONTAINER ID   IMAGE                                          COMMAND       CREATED       STATUS                          PORTS     NAMES
99ec89f45f90   ghcr.io/nextcloud-releases/all-in-one:latest   "/start.sh"   5 hours ago   Restarting (1) 58 seconds ago             nextcloud-aio-mastercontainer
70a81ef0f890   hello-world                                    "/hello"      6 hours ago   Exited (0) 6 hours ago                    sad_hofstadter

It has been in the Restarting state the whole time. I am unable to go into the container by way of docker exec -it as it is not even starting.

This is on a fresh Ubuntu VM in Proxmox, with Docker installed per their documetation. The only other thing installed on this VM is the hello-world docker container I installed as a sanity check while troubleshooting a previous issue. Other than that I’ve mostly been following this guide with a few minor tweaks to troubleshoot errors. I’ve restarted the docker systemd service and the VM and the behavior has been consistent since Sunday.

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

  1. Install Docker

  2. Repair Docker installation so /var/run/docker.sock gives the docker group rw permissions instead of exclusive root ownership

  3. Attempt to run Nextcloud AIO via docker compose up -d

Log entries

There are no logs as the docker container has yet to fully start

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

Hi,

Can you share more info?

  1. Did you install/run all of this as root, or as a sudo user?
    If you did it under root, that’s not the correct approach. It should be installed and managed under a standard user account with sudo privileges (not a root-only workflow).

  2. How exactly did you install Docker?

  • from Ubuntu repositories (docker.io / apt), or

  • via the official Docker installation (Docker CE / official Docker repository)?

  1. You can compare your steps with my complete reference deployment guide (Proxmox + Ubuntu VM + Docker + Nginx Proxy Manager + Nextcloud AIO + Watchtower):
    https://help.nextcloud.com/t/proxmox-nginx-nextcloud-aio-watchtower-deployment-guide/233643?u=vawaver

Sure, here’s some more detail:

  1. I ran all of this as a regular user with sudo privileges, cloud in this case.
  2. Via the official Docker installation.
  3. I’ve been following along, only deviating when I was forced to by errors. Either I made the exact same deviation at the same time a few times (this is the third attempt, all being on fresh VMs) or I’m just not getting the same behavior as you.

and the output of sudo docker logs nextcloud-aio-mastercontainer:

cloud@cloud:~/nextcloud-aio$ sudo docker logs nextcloud-aio-mastercontainer
Trying to fix docker.sock permissions internally...
Creating docker group internally with id 988
It seems like you did not give the mastercontainer volume the correct name? (The 'nextcloud_aio_mastercontainer' volume was not found.)
Using a different name is not supported since the built-in backup solution will not work in that case!

The final two lines repeat until I kill the command with Ctrl+C.

I suspect something’s going on with that docker.sock permissions message? I’m a little confused since the output of docker ps -a yields a container with the name nextcloud-aio-mastercontainer.

Thank you for your prompt replies, sorry for the delayed response.

Thanks for the logs! Can you also the output of sudo docker inspect nextcloud-aio-mastercontainer here?

Wow, you’re quick.

cloud@cloud:~/nextcloud-aio$ sudo docker inspect nextcloud-aio-mastercontainer
[
    {
        "Id": "99ec89f45f902e4d720c8d0fa19bd17f26fd92a77b076b18cac1d5266002a7f1",
        "Created": "2026-01-11T14:56:41.294923145Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "restarting",
            "Running": true,
            "Paused": false,
            "Restarting": true,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 1,
            "Error": "",
            "StartedAt": "2026-01-19T14:26:22.931568161Z",
            "FinishedAt": "2026-01-19T14:26:23.911647745Z",
            "Health": {
                "Status": "unhealthy",
                "FailingStreak": 0,
                "Log": []
            }
        },
        "Image": "sha256:e02f466615e39c5c65bb74530b2b3147ab2621969a542cdcd2e354a20fee3a8f",
        "ResolvConfPath": "/var/lib/docker/containers/99ec89f45f902e4d720c8d0fa19bd17f26fd92a77b076b18cac1d5266002a7f1/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/99ec89f45f902e4d720c8d0fa19bd17f26fd92a77b076b18cac1d5266002a7f1/hostname",
        "HostsPath": "/var/lib/docker/containers/99ec89f45f902e4d720c8d0fa19bd17f26fd92a77b076b18cac1d5266002a7f1/hosts",
        "LogPath": "/var/lib/docker/containers/99ec89f45f902e4d720c8d0fa19bd17f26fd92a77b076b18cac1d5266002a7f1/99ec89f45f902e4d720c8d0fa19bd17f26fd92a77b076b18cac1d5266002a7f1-json.log",
        "Name": "/nextcloud-aio-mastercontainer",
        "RestartCount": 11312,
        "Driver": "overlayfs",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "nextcloud-aio_nextcloud_aio_mastercontainer:/mnt/docker-aio-config:rw",
                "/var/run/docker.sock:/var/run/docker.sock:ro",
                "/etc/cups/client.conf:/etc/cups/client.conf:ro"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "nextcloud-aio_default",
            "PortBindings": {
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "6789"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "unless-stopped",
                "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,
            "MaskedPaths": [
                "/proc/acpi",
                "/proc/asound",
                "/proc/interrupts",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/sys/devices/virtual/powercap",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "Storage": {
            "RootFS": {
                "Snapshot": {
                    "Name": "overlayfs"
                }
            }
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/etc/cups/client.conf",
                "Destination": "/etc/cups/client.conf",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "volume",
                "Name": "nextcloud-aio_nextcloud_aio_mastercontainer",
                "Source": "/var/lib/docker/volumes/nextcloud-aio_nextcloud_aio_mastercontainer/_data",
                "Destination": "/mnt/docker-aio-config",
                "Driver": "local",
                "Mode": "rw",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "99ec89f45f90",
            "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",
                "NEXTCLOUD_MEMORY_LIMIT=4096M",
                "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=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD",
                "PHP_VERSION=8.4.15",
                "PHP_URL=https://www.php.net/distributions/php-8.4.15.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.4.15.tar.xz.asc",
                "PHP_SHA256=a060684f614b8344f9b34c334b6ba8db1177555997edb5b1aceab0a4b807da7e",
                "HOME=/var/www"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/healthcheck.sh"
                ]
            },
            "Image": "ghcr.io/nextcloud-releases/all-in-one:latest",
            "Volumes": null,
            "WorkingDir": "/var/www/docker-aio",
            "Entrypoint": [
                "/start.sh"
            ],
            "Labels": {
                "com.docker.compose.config-hash": "bbb867840efb3a077f8f1d7846b14185056717dcf9e59f9d55bf739be1476460",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:e02f466615e39c5c65bb74530b2b3147ab2621969a542cdcd2e354a20fee3a8f",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "nextcloud-aio",
                "com.docker.compose.project.config_files": "/home/cloud/nextcloud-aio/docker-compose.yml",
                "com.docker.compose.project.working_dir": "/home/cloud/nextcloud-aio",
                "com.docker.compose.service": "nextcloud",
                "com.docker.compose.version": "5.0.1",
                "org.label-schema.vendor": "Nextcloud"
            },
            "StopSignal": "SIGQUIT"
        },
        "NetworkSettings": {
            "SandboxID": "",
            "SandboxKey": "",
            "Ports": {},
            "Networks": {
                "nextcloud-aio_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "nextcloud-aio-mastercontainer",
                        "nextcloud"
                    ],
                    "DriverOpts": null,
                    "GwPriority": 0,
                    "NetworkID": "ff7f91796527d20501189fd4c4af37b19ab642221e8d8c56c9963e5b339d6ca1",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "MacAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "nextcloud",
                        "99ec89f45f90"
                    ]
                }
            }
        },
        "ImageManifestDescriptor": {
            "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
            "digest": "sha256:ed369cb163363402111fca5f19059611d16547ca934a245ef8b4c9d925fb0d35",
            "size": 4916,
            "platform": {
                "architecture": "amd64",
                "os": "linux"
            }
        }
    }
]

So this is the problem. It should be nextcloud_aio_mastercontainer:/mnt/docker-aio-config:rw


Can you please post the compose file that you used here?

cloud@cloud:~/nextcloud-aio$ less docker-compose.yml 
volumes:
  nextcloud_aio_mastercontainer:

services:
  nextcloud:
    image: ghcr.io/nextcloud-releases/all-in-one:latest
    restart: unless-stopped
    container_name: nextcloud-aio-mastercontainer
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /etc/cups/client.conf:/etc/cups/client.conf:ro
    ports:
      - "6789:8080"  # AIO web UI
    environment:
      - APACHE_PORT=11000
      - NEXTCLOUD_MEMORY_LIMIT=4096M

It’s the - nextcloud_aio_mastercontainer:/mnt/docker-aio-config line, isn’t it?

Please compare with all-in-one/compose.yaml at main · nextcloud/all-in-one · GitHub. You are missing this line: all-in-one/compose.yaml at b88c74016152259abb151112ff1ad367478ba5df · nextcloud/all-in-one · GitHub

1 Like

docker ps -a now returns:

CONTAINER ID   IMAGE                                          COMMAND       CREATED         STATUS                   PORTS                                                                     NAMES
f6aebbe4b24a   ghcr.io/nextcloud-releases/all-in-one:latest   "/start.sh"   2 minutes ago   Up 2 minutes (healthy)   80/tcp, 8443/tcp, 9000/tcp, 0.0.0.0:6789->8080/tcp, [::]:6789->8080/tcp   nextcloud-aio-mastercontainer
70a81ef0f890   hello-world                                    "/hello"      8 days ago      Exited (0) 8 days ago                                                                              sad_hofstadter

Thank you for the help!

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