I self-resolved this issue, but thought I’d document it here, to save someone else some time.
Nextcloud Server version: 31.0.7
Nextcloud AIO version: 11.4.0
Operating System: RHEL 9.4
Podman Version: 5.4.0
Summary of the issue you are facing:
Nextcloud AIO interface really slow to load. It would hang for 30+ seconds every time I accessed it. Even after starting all containers, the interface would show them all as “starting”.
Steps to replicate it (hint: details matter!):
Install the AIO container via podman, and follow the instructions for a reverse-proxied installation.
Initial startup command:
podman run --init --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --network=host --env NEXTCLOUD_DATADIR=/mnt/ncdata --env APACHE_PORT=11000 --env APACHE_IP_BINDING=0.0.0.0 --env APACHE_ADDITIONAL_NETWORK="" --env WATCHTOWER_DOCKER_SOCKET_PATH=/run/user/1000/podman/podman.sock --env SKIP_DOMAIN_VALIDATION=false --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /run/user/1000/podman/podman.sock:/var/run/docker.sock:Z --security-opt=label=disable --env NEXTCLOUD_ENABLE_DRI_DEVICE=true ghcr.io/nextcloud-releases/all-in-one:latest
Log entries
Nothing significant in any of the logs.
Troubleshooting
I did some tcpdumps on the host server. I saw that the mastercontainer was appending my DNS searchdomain to all of the internal pod query lookups, eg: nextcloud-aio-apache.my.search.dom. These queries were having NXDomain returned by my upstream DNS server.
I concluded that the containers were unable to communicate due to this DNS issue.
I reconfigured the host to not use a search domain, and I updated my quadlet configuration to include the DNSSearch=. option:
[Unit]
Description=Nextcloud AIO Master Container
Documentation=https://github.com/nextcloud/all-in-one/blob/main/docker-rootless.md
After=local-fs.target
Requires=podman.socket
[Container]
ContainerName=nextcloud-aio-mastercontainer
Image=ghcr.io/nextcloud-releases/all-in-one:latest
PublishPort=0.0.0.0:8080:8080
Volume=nextcloud_aio_mastercontainer:/mnt/docker-aio-config
Volume=/run/user/1000/podman/podman.sock:/var/run/docker.sock:rw
Network=bridge
SecurityLabelDisable=true
DNSSearch=.
Environment=APACHE_PORT=11000
Environment=APACHE_IP_BINDING=0.0.0.0
Environment=WATCHTOWER_DOCKER_SOCKET_PATH=/run/user/1000/podman/podman.sock
Environment=SKIP_DOMAIN_VALIDATION=true
Environment=NEXTCLOUD_ENABLE_DRI_DEVICE=true
Environment=NEXTCLOUD_DATADIR=/mnt/ncdata
[Install]
WantedBy=multi-user.target default.target