Thank you for the youtube link. I have compared the traefik settings with my settings. The main parts are the same. The little differences I have merged to my config.
Actually I have the same result: Bad Gateway 504. In Portainer I can see, that all - except the nextcloud-aio-apache container are running with status “healthy”. The apache container is running, but in state unhealthy!
Here some input of that container:
8dd8b4e5e3663dcd7a06bcb4c13547bf7ef4883290d39ea937d825a4239b9429
AppArmorProfile
Args [ /usr/bin/supervisord, -c, /supervisord.conf ]
Config { AttachStderr: false, AttachStdin: false, AttachStdout: false, Cmd: /usr/bin/supervisord,-c,/supervisord.conf, Domainname: , Entrypoint: /start.sh, Env: NC_DOMAIN=nextcloud.mydomain.de,NEXTCLOUD_HOST=nextcloud-aio-nextcloud,COLLABORA_HOST=nextcloud-aio-collabora,TALK_HOST=nextcloud-aio-talk,APACHE_PORT=11000,ONLYOFFICE_HOST=nextcloud-aio-onlyoffice,TZ=Europe/Berlin,APACHE_MAX_SIZE=10737418240,APACHE_MAX_TIME=3600,NOTIFY_PUSH_HOST=nextcloud-aio-notify-push,PATH=/usr/local/apache2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin,HTTPD_PREFIX=/usr/local/apache2,HTTPD_VERSION=2.4.57,HTTPD_SHA256=dbccb84aee95e095edfbb81e5eb926ccd24e6ada55dcd83caecb262e5cf94d2a,HTTPD_PATCHES=rewrite-windows-testchar-h.patch 1d5620574fa03b483262dc5b9a66a6906553389952ab5d3070a02f887cc20193, ExposedPorts: [object Object], Healthcheck: [object Object], Hostname: 8dd8b4e5e366, Image: nextcloud/aio-apache:latest, Labels: [object Object], OnBuild: null, OpenStdin: false, StdinOnce: false, StopSignal: SIGWINCH, Tty: false, User: www-data, Volumes: [object Object], WorkingDir: /usr/local/apache2 }
Created 2023-07-25T19:14:25.275833039Z
Driver overlay2
ExecIDs [ 2180cbce46712729abd75986d0326fc5f71635889911c72817131563bd21535b ]
GraphDriver { Data: [object Object], Name: overlay2 }
HostConfig { AutoRemove: false, Binds: nextcloud_aio_nextcloud:/var/www/html:ro,nextcloud_aio_apache:/mnt/data:rw, BlkioDeviceReadBps: null, BlkioDeviceReadIOps: null, BlkioDeviceWriteBps: null, BlkioDeviceWriteIOps: null, BlkioWeight: 0, BlkioWeightDevice: null, CapAdd: null, CapDrop: null, Cgroup: , CgroupParent: , CgroupnsMode: host, ConsoleSize: 0,0, ContainerIDFile: , CpuCount: 0, CpuPercent: 0, CpuPeriod: 0, CpuQuota: 0, CpuRealtimePeriod: 0, CpuRealtimeRuntime: 0, CpuShares: 0, CpusetCpus: , CpusetMems: , DeviceCgroupRules: null, DeviceRequests: null, Devices: null, Dns: null, DnsOptions: null, DnsSearch: null, ExtraHosts: null, GroupAdd: null, IOMaximumBandwidth: 0, IOMaximumIOps: 0, IpcMode: private, Isolation: , KernelMemory: 0, KernelMemoryTCP: 0, Links: null, LogConfig: [object Object], 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, Memory: 0, MemoryReservation: 0, MemorySwap: 0, MemorySwappiness: null, NanoCpus: 0, NetworkMode: nextcloud-aio, OomKillDisable: false, OomScoreAdj: 0, PidMode: , PidsLimit: null, PortBindings: [object Object], Privileged: false, PublishAllPorts: false, ReadonlyPaths: /proc/bus,/proc/fs,/proc/irq,/proc/sys,/proc/sysrq-trigger, ReadonlyRootfs: true, RestartPolicy: [object Object], Runtime: runc, SecurityOpt: null, ShmSize: 67108864, Tmpfs: [object Object], UTSMode: , Ulimits: [object Object], UsernsMode: , VolumeDriver: , VolumesFrom: null }
HostnamePath /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8dd8b4e5e3663dcd7a06bcb4c13547bf7ef4883290d39ea937d825a4239b9429/hostname
HostsPath /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8dd8b4e5e3663dcd7a06bcb4c13547bf7ef4883290d39ea937d825a4239b9429/hosts
Id 8dd8b4e5e3663dcd7a06bcb4c13547bf7ef4883290d39ea937d825a4239b9429
Image sha256:e0c0bddff69b4e3a0491aeed6d823457a28eddeb987a8ac6c653488aa7d5f022
LogPath /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8dd8b4e5e3663dcd7a06bcb4c13547bf7ef4883290d39ea937d825a4239b9429/8dd8b4e5e3663dcd7a06bcb4c13547bf7ef4883290d39ea937d825a4239b9429-json.log
MountLabel
Mounts [ [object Object], [object Object] ]
Name /nextcloud-aio-apache
NetworkSettings { Bridge: , EndpointID: , Gateway: , GlobalIPv6Address: , GlobalIPv6PrefixLen: 0, HairpinMode: false, IPAddress: , IPPrefixLen: 0, IPv6Gateway: , LinkLocalIPv6Address: , LinkLocalIPv6PrefixLen: 0, MacAddress: , Networks: [object Object], Ports: [object Object], SandboxID: 536502ae342734013a2373ffbb286fc5bf37267f542c91c39a375a639dff5a59, SandboxKey: /var/run/docker/netns/536502ae3427, SecondaryIPAddresses: null, SecondaryIPv6Addresses: null }
Path /start.sh
Platform linux
ProcessLabel
ResolvConfPath /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8dd8b4e5e3663dcd7a06bcb4c13547bf7ef4883290d39ea937d825a4239b9429/resolv.conf
RestartCount 0
State
Dead false
Error
ExitCode 0
FinishedAt 0001-01-01T00:00:00Z
Health
FailingStreak 25
Log
0 { End: 2023-07-25T21:36:03.172116145+02:00, ExitCode: -1, Output: Health check exceeded timeout (30s), Start: 2023-07-25T21:35:33.17096096+02:00 }
1 { End: 2023-07-25T21:37:03.304800202+02:00, ExitCode: -1, Output: Health check exceeded timeout (30s), Start: 2023-07-25T21:36:33.30398436+02:00 }
2 { End: 2023-07-25T21:38:03.393592204+02:00, ExitCode: -1, Output: Health check exceeded timeout (30s), Start: 2023-07-25T21:37:33.392678884+02:00 }
3 { End: 2023-07-25T21:39:03.481471599+02:00, ExitCode: -1, Output: Health check exceeded timeout (30s), Start: 2023-07-25T21:38:33.480703497+02:00 }
4
End 2023-07-25T21:40:03.583147658+02:00
ExitCode -1
Output Health check exceeded timeout (30s)
Start 2023-07-25T21:39:33.582079981+02:00
Status unhealthy
OOMKilled false
Paused false
Pid 29827
Restarting false
Running true
StartedAt 2023-07-25T19:14:30.546759795Z
Status running
Inside the container I have tried to find some logs with further information, what the problem is. But under /var/log/… I didn’t find something.
Where can I find some more details? The main reason should be the situation, that the apache-container does not start successfully and ends in that unhealthy state.
It’s a pitty. The reason to choose the AIO variant is to have an easy update procedure and get the best predefined settings for the database and so on, instead of doing this manually.