Error starting AIO-Mastercontainer

Hey,
yesterday my vServer crashed and had problems, today it works again. All my Nextcloud AIO containers start as before and run fine, except AIO master container. This container is showing me an Error 500 when starting via Portainer. The logs are down, what is the reason?

Logs:

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

root@ubuntu:~# sudo docker inspect nextcloud-aio-mastercontainer
[
    {
        "Id": "16cb691e1320e59001c80c03902f2ca766dd79612027d11f0798a14c3c9b54d8",
        "Created": "2024-04-03T08:51:41.976525983Z",
        "Path": "/start.sh",
        "Args": [],
        "State": {
            "Status": "exited",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 255,
            "Error": "driver failed programming external connectivity on endpoint nextcloud-aio-mastercontainer (85dd2de2f1c4d9b24c2932fe40ac2283bd13a08029cd5c7e1139ef0c10691435): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use",
            "StartedAt": "2024-04-03T08:51:42.573757629Z",
            "FinishedAt": "2024-06-03T23:01:01.163895188Z",
            "Health": {
                "Status": "starting",
                "FailingStreak": 0,
                "Log": []
            }
        },
        "Image": "sha256:4108efdb22be13fb7c054852dd4f4faee664f029dbddcc8f618c0a42f40a438b",
        "ResolvConfPath": "/var/lib/docker/containers/16cb691e1320e59001c80c03902f2ca766dd79612027d11f0798a14c3c9b54d8/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/16cb691e1320e59001c80c03902f2ca766dd79612027d11f0798a14c3c9b54d8/hostname",
        "HostsPath": "/var/lib/docker/containers/16cb691e1320e59001c80c03902f2ca766dd79612027d11f0798a14c3c9b54d8/hosts",
        "LogPath": "/var/lib/docker/containers/16cb691e1320e59001c80c03902f2ca766dd79612027d11f0798a14c3c9b54d8/16cb691e1320e59001c80c03902f2ca766dd79612027d11f0798a14c3c9b54d8-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": null,
            "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"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ],
            "Init": true
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/36f1ad2c6c8008cbe3d27d238da1ce94f290ac788183999e2d72bdc29619bb8a-init/diff:/var/lib/docker/overlay2/e06741ce6ab71b5e1b1098420e434b42c973856e835df81b6ceb7c9fe1fa18d4/diff:/var/lib/docker/overlay2/3c24ca2948bc1f4ffc884048cfe044c11b130f2408ea2273773ce19b69bccdf8/diff:/var/lib/docker/overlay2/f086663f681dc018e891fd64ded0c7cde06075e75b4d1df6fd9edc54124eb4b0/diff:/var/lib/docker/overlay2/f79f2636315463594d947dd4639403546504e8c8d8506ba33845a0e01d085d71/diff:/var/lib/docker/overlay2/0ace905639801d59cc41c7e51e221603ddaf045d60f4528e27addbda81620844/diff:/var/lib/docker/overlay2/3f14abac6d3b1e6d217b8e3bf5b182c1ce3093c0fec605ff6a7628bfeb47ceb4/diff:/var/lib/docker/overlay2/08b47d2b289004e6a338b6a2fdbe05e65396d2aed78afe694c9f0bad84fcbe08/diff:/var/lib/docker/overlay2/29bcf7144e7dd1ddd9a633eca8d7937338e054344dc55f2a0f245ecbbf67b444/diff:/var/lib/docker/overlay2/8373b18ecf01ae639f0543e6be2fb989daf46064b831b4bb127b31f34eab2704/diff:/var/lib/docker/overlay2/5b9288fe64ff502754dc5805937903df4fe173910ee9f649a48182f7ea25c4ff/diff:/var/lib/docker/overlay2/897ec0011f40b20fbbeb2b9686c8f7f3068c7c16da1a231a42b1fe1934233ab6/diff:/var/lib/docker/overlay2/30fdf4c85bcf5bc7a8919070b4adf63ee5292f10e7c6a7d528f37853cea14813/diff:/var/lib/docker/overlay2/a5126e7efed56db550f9b83de6dc4f47b06e2c11a5a9421fa2406335c2ddba0d/diff:/var/lib/docker/overlay2/67c328ef78ce0b0674661f8dbe1c31356a5519abd1bfb6eb39e3bb8ef0afbd03/diff:/var/lib/docker/overlay2/53840e375776d3a9f1accab66db8cbf9f8ed61d33077f540aa03be84e4f6ebde/diff:/var/lib/docker/overlay2/3baaaef24f7a3906a4225b9d8cfdda9264dca8ea87bf97326b3bb8e0bbe66b12/diff:/var/lib/docker/overlay2/084546b8dcbe1783911545f7a349a3463d1ddded9074acfaa8fd259aa268cdb4/diff:/var/lib/docker/overlay2/18b2d4e738e241eb2ab67e27a753a908c52b3b4f21870706569f6c76584dfb78/diff",
                "MergedDir": "/var/lib/docker/overlay2/36f1ad2c6c8008cbe3d27d238da1ce94f290ac788183999e2d72bdc29619bb8a/merged",
                "UpperDir": "/var/lib/docker/overlay2/36f1ad2c6c8008cbe3d27d238da1ce94f290ac788183999e2d72bdc29619bb8a/diff",
                "WorkDir": "/var/lib/docker/overlay2/36f1ad2c6c8008cbe3d27d238da1ce94f290ac788183999e2d72bdc29619bb8a/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/var/run/docker.sock",
                "Destination": "/var/run/docker.sock",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "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": ""
            }
        ],
        "Config": {
            "Hostname": "8f93c03b347a",
            "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": [
                "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": "64762fcb452744279f0ce730f8a26e5a8c8fba03dde3f2acc91fc78e233b2cdb",
            "SandboxKey": "/var/run/docker/netns/64762fcb4527",
            "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": [
                        "8f93c03b347a"
                    ],
                    "MacAddress": "",
                    "NetworkID": "a8e60e1206fbe2c921d37b49e187b85c31ad3861f963f4a1f5e589fda9bf248d",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DriverOpts": null,
                    "DNSNames": [
                        "nextcloud-aio-mastercontainer",
                        "8f93c03b347a",
                        "16cb691e1320"
                    ]
                }
            }
        }
    }
]

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

sudo: netstat: command not found

Seems like you need to install it first on the host

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      19974/docker-proxy
tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      20014/docker-proxy
tcp        0      0 0.0.0.0:3478            0.0.0.0:*               LISTEN      20363/docker-proxy
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      603/systemd-resolve
tcp        0      0 0.0.0.0:9443            0.0.0.0:*               LISTEN      19897/docker-proxy
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      6387/sshd: /usr/sbi
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      19863/docker-proxy
tcp6       0      0 :::8000                 :::*                    LISTEN      19987/docker-proxy
tcp6       0      0 :::8081                 :::*                    LISTEN      20022/docker-proxy
tcp6       0      0 :::3478                 :::*                    LISTEN      20370/docker-proxy
tcp6       0      0 :::9443                 :::*                    LISTEN      19922/docker-proxy
tcp6       0      0 :::22                   :::*                    LISTEN      6387/sshd: /usr/sbi
tcp6       0      0 :::80                   :::*                    LISTEN      701/apache2
tcp6       0      0 :::443                  :::*                    LISTEN      19869/docker-proxy
udp        0      0 0.0.0.0:3478            0.0.0.0:*                           20459/docker-proxy
udp        0      0 127.0.0.53:53           0.0.0.0:*                           603/systemd-resolve
udp        0      0 85.215.37.12:68         0.0.0.0:*                           601/systemd-network
udp        0      0 0.0.0.0:443             0.0.0.0:*                           20107/docker-proxy
udp6       0      0 :::3478                 :::*                                20467/docker-proxy
udp6       0      0 :::443                  :::*                                20145/docker-proxy
udp6       0      0 fe80::1:1eff:fe41:e:546 :::*                                601/systemd-network

Looks like apache running on the host already uses port 80 and is the reason why the mastercontainer cannot start

It works, thanks