Backup error on docker-copmose (again)

Hi!
I’ve setup NC AIO version on ubuntu / docker everything run smooth, except backups.
I checked master container name, I guess its OK, but I get an error. Could you gusy look on it for me please?
Log:

configuration.json not present. Cannot perform the backup!
 /start.sh: line 54: /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/backup_archives.list: No such file or directory
 chmod: /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/backup_archives.list: No such file or directory

my docker-compose file:

services:
  nextcloud-aio-mastercontainer:
    image: nextcloud/all-in-one:latest
    container_name: nextcloud-aio-mastercontainer 
    restart: unless-stopped
    ports:
      - 8080:8080
      - 8443:8443
    environment:
      NEXTCLOUD_ADMIN: admin 
      NEXTCLOUD_ADMIN_PASSWORD: adminpasswordblahblahblah
      APACHE_PORT: 11000 
      SKIP_DOMAIN_VALIDATION: true 
      APACHE_IP_BINDING: 192.168.address
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock 
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config 
      - nextcloud_aio_data:/mnt/data
      - /mnt/nextcloud:/var/www/html/data
  cloudflared:
    image: cloudflare/cloudflared:latest
    container_name: cloudflared
    restart: unless-stopped
    command: tunnel --no-autoupdate run --token tokenblahblahblah>
    environment:
      TUNNEL_HOSTNAME: nc.##domain.com##
      TUNNEL_URL: http://nextcloud-aio:8080
    volumes:
      - /etc/cloudflared:/etc/cloudflared

volumes:
  nextcloud_aio_mastercontainer: {}
  nextcloud_aio_data: {}

Hi, you missed this: all-in-one/compose.yaml at 77dd56bade11cbb6ecffe8f2ada381520a16f5d6 · nextcloud/all-in-one · GitHub

Hi, thanks, but when I’ll do it like this:

volumes: # If you want to store the data on a different drive, see https://github.com/nextcloud/all-in-one#how-to-store-the-filesinstallation-on-a-separate-drive
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work

It doesn’t work (master container keeps restarting), but it works ok when it’s set like in my yaml.

Hmm, nothing? Am I the only one with such issue?

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

Hi, sure - here it is.

[
    {
        "Id": "7bbcf7a24ba0d7ab5d3178afb70af564b0942f63d4e73af27b2be17f1a9b52b3",
        "Created": "2025-03-13T22:00:02.65886643Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 590668,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2025-03-13T22:00:02.775378318Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "Health": {
                "Status": "healthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2025-03-18T16:36:14.161022Z",
                        "End": "2025-03-18T16:36:14.220295225Z",
                        "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->
                    },
                    {
                        "Start": "2025-03-18T16:36:44.221277991Z",
                        "End": "2025-03-18T16:36:44.274501389Z",
                        "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->
                    },
                    {
                        "Start": "2025-03-18T16:37:14.275992708Z",
                        "End": "2025-03-18T16:37:14.329750692Z",
                        "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->
                    },
                    {
                        "Start": "2025-03-18T16:37:44.331115045Z",
                        "End": "2025-03-18T16:37:44.414010386Z",
                        "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->
                    },
                    {
                        "Start": "2025-03-18T16:38:14.414818623Z",
                        "End": "2025-03-18T16:38:14.492972287Z",
                        "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->
                    }
                ]
            }
        },
        "Image": "sha256:701e11fae8e749770f52b83387d0106e31da93d25bf861d271f13ae8189da592",
        "ResolvConfPath": "/var/lib/docker/containers/7bbcf7a24ba0d7ab5d3178afb70af564b0942f63d4e73af27b2be17f1a9b52b3/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/7bbcf7a24ba0d7ab5d3178afb70af564b0942f63d4e73af27b2be17f1a9b52b3/hostname",
        "HostsPath": "/var/lib/docker/containers/7bbcf7a24ba0d7ab5d3178afb70af564b0942f63d4e73af27b2be17f1a9b52b3/hosts",
        "LogPath": "/var/lib/docker/containers/7bbcf7a24ba0d7ab5d3178afb70af564b0942f63d4e73af27b2be17f1a9b52b3/7bbcf7a24ba0d7ab5d3178afb70af564b0942f63d4e73af27b2be17f1a9b52b3-json.log",
        "Name": "/nextcloud-aio-mastercontainer",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/var/run/docker.sock:/var/run/docker.sock:rw",
                "/mnt/nextcloud:/var/www/html/data:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "nextcloud_default",
            "PortBindings": {
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ],
                "8443/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8443"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "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_nextcloud_aio_mastercontainer",
                    "Target": "/mnt/docker-aio-config",
                    "VolumeOptions": {}
                },
                {
                    "Type": "volume",
                    "Source": "nextcloud_nextcloud_aio_data",
                    "Target": "/mnt/data",
                    "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"
            ]
        },
        "GraphDriver": {
            "Data": {
                "ID": "7bbcf7a24ba0d7ab5d3178afb70af564b0942f63d4e73af27b2be17f1a9b52b3",
                "LowerDir": "/var/lib/docker/overlay2/0eed3895731d439ba00de53f7fbc94c848b13a20a08bf3098d57fdbed0b041ba-init/diff:/var/lib/docker/overlay2/4cfd15e71479c8c480086b557f10129d81>
                "MergedDir": "/var/lib/docker/overlay2/0eed3895731d439ba00de53f7fbc94c848b13a20a08bf3098d57fdbed0b041ba/merged",
                "UpperDir": "/var/lib/docker/overlay2/0eed3895731d439ba00de53f7fbc94c848b13a20a08bf3098d57fdbed0b041ba/diff",
                "WorkDir": "/var/lib/docker/overlay2/0eed3895731d439ba00de53f7fbc94c848b13a20a08bf3098d57fdbed0b041ba/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/nextcloud",
                "Destination": "/var/www/html/data",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "volume",
                "Name": "nextcloud_nextcloud_aio_mastercontainer",
                "Source": "/var/lib/docker/volumes/nextcloud_nextcloud_aio_mastercontainer/_data",
                "Destination": "/mnt/docker-aio-config",
                "Driver": "local",
                "Mode": "z",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "volume",
                "Name": "nextcloud_nextcloud_aio_data",
                "Source": "/var/lib/docker/volumes/nextcloud_nextcloud_aio_data/_data",
                "Destination": "/mnt/data",
                "Driver": "local",
                "Mode": "z",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "7bbcf7a24ba0",
            "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_IP_BINDING=192.168.40.120",
                "NEXTCLOUD_ADMIN=admin",
                "NEXTCLOUD_ADMIN_PASSWORD=password",
                "APACHE_PORT=11000",
                "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=key",
                "PHP_VERSION=8.3.17",
                "PHP_URL=https://www.php.net/distributions/php-8.3.17.tar.xz",
                "PHP_ASC_URL=https://www.php.net/distributions/php-8.3.17.tar.xz.asc",
                "PHP_SHA256=sha"
            ],
            "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": "12d555062ca8eeaa099960e6e91eaaa9968bb8ff742d4c9a520c45f25418762ad6",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:701e11fae8e74lk9770f52b83387d0106e31da93d25bf861d271f13ae8189da592",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "nextcloud",
                "com.docker.compose.project.config_files": "/home/mt/nextcloud/docker-compose.yml",
                "com.docker.compose.project.working_dir": "/home/mt/nextcloud",
                "com.docker.compose.replace": "91a89193aa3b2f607ee63aa7d6b83f0ec050010kjl09788b8ab6164",
                "com.docker.compose.service": "nextcloud-aio-mastercontainer",
                "com.docker.compose.version": "2.33.0"
            },
            "StopSignal": "SIGQUIT"
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "d09f07f15bef103274c9dafd48e394cf881ad7a448f80b3f6dcca8663ff20014",
            "SandboxKey": "/var/run/docker/netns/d09f07f15bef",
            "Ports": {
                "80/tcp": null,
                "8080/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8080"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "8080"
                    }
                ],
                "8443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8443"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "8443"
                    }
                ],
                "9000/tcp": null
            },
            "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": "8a:36:64:62:e9:f1",
                    "DriverOpts": null,
                    "GwPriority": 0,
                    "NetworkID": "e22151e7aab88f79690a0398097892552bb03a9e2b14c99dad9cd3496f728f1a",
                    "EndpointID": "197ad85479890ac49233e52bf861372a207500942402505fbb33584ea510581b",
                    "Gateway": "172.19.0.1",
                    "IPAddress": "172.19.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "7bbcf7a24ba0"
                    ]
                },
                "nextcloud_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "nextcloud-aio-mastercontainer",
                        "nextcloud-aio-mastercontainer"
                    ],
                    "MacAddress": "b6:f4:9c:1e:39:93",
                    "DriverOpts": null,
                    "GwPriority": 0,
                    "NetworkID": "9ad14a12058f401b1fb5f10cbb78c5e34985f30a30570eaca54537cdd6000113",
                    "EndpointID": "e9ccb2dbae21f0cbd02946baaa645c5547b4443a2c0e10aceb4a3afbffb51d94",
                    "Gateway": "172.18.0.1",
                    "IPAddress": "172.18.0.3",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "7bbcf7a24ba0"
                    ]
                }
            }
        }
    }
]

This is the problem. The volume needs to be called nextcloud_aio_mastercontainer instead of nextcloud_nextcloud_aio_mastercontainer like I stated in my first reply already.

Thank you.
But how can I change it. I modified docker-compose file as you said before, and it didn’t work, container was reseting all the time. Is there any other way?

What exactly was logged when the container was restarting?