Nextcloud-aio via Cloudflare tunnel (problem with domain checking)

Hi, IĀ“m new here. Joined yesterday because I got a problem with nextcloud-aio installation on Linux/Ubuntu that I would like to access via a Cloudflare tunnel. I did it without a problem earlier this year (June - v6.2.1) but when I repeat it now (v7.7.1) on another server I get to the /containers page after logging in, informing me that ā€œDomaincheck container is not runningā€.

In both cases I foillowed the insructions in the Resverse proxy documentatioin page and the code I use is as follows:

sudo docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 8090:8080 \
--env APACHE_PORT=11000 \
--env APACHE_IP_BINDING=0.0.0.0 \
--env SKIP_DOMAIN_VALIDATION=true \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest  
```
Anybody who can advice me about how to proceed?

Hi, can xou post the outout of sudo docker logs nextcloud-aio-domaincheck here?

Thank you for looking into it. sudo docker logs nextcloud-aio-domaincheck did not give me anything but here is the message I got in the terminal when trying to set up nextcloud-aio:

[Fri Dec 01 12:54:48.355879 2023] [core:notice] [pid 107:tid 139863404964680] AH00094: Command line: 'httpd -D FOREGROUND'
{"level":"info","ts":1701435288.362972,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
NOTICE: PHP message: Could not start domaincheck container: Server error: `POST http://localhost/v1.41/containers/nextcloud-aio-domaincheck/start` resulted in a `500 Internal Server Error` response:
{"message":"driver failed programming external connectivity on endpoint nextcloud-aio-domaincheck (9843fc1f01afc54516e3f (truncated...)

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

iceswede@srv441084:~$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:65529 0.0.0.0:* LISTEN 508/monarx-agent
tcp 0 0 127.0.0.1:12000 0.0.0.0:* LISTEN 1208035/php-fpm: ma
tcp 0 0 127.0.0.1:16000 0.0.0.0:* LISTEN 1208037/php-fpm: ma
tcp 0 0 0.0.0.0:3001 0.0.0.0:* LISTEN 5882/node
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 486/redis-server 12
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 450/memcached
tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN 1208034/php-fpm: ma
tcp 0 0 127.0.0.1:15002 0.0.0.0:* LISTEN 479/php-fpm: master
tcp 0 0 127.0.0.1:15001 0.0.0.0:* LISTEN 479/php-fpm: master
tcp 0 0 127.0.0.1:15000 0.0.0.0:* LISTEN 479/php-fpm: master
tcp 0 0 0.0.0.0:8001 0.0.0.0:* LISTEN 151698/docker-proxy
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN 1598124/docker-prox
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1599612/nginx: mast
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1962/master
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1405833/proftpd: (a
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 551/sshd: /usr/sbin
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1599612/nginx: mast
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 784151/nginx: maste
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1599612/nginx: mast
tcp 0 0 127.0.0.1:38875 0.0.0.0:* LISTEN 1208297/cloudflared
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 400/systemd-resolve
tcp 0 0 127.0.0.1:14000 0.0.0.0:* LISTEN 1208036/php-fpm: ma
tcp 0 0 127.0.0.1:18000 0.0.0.0:* LISTEN 784245/php-fpm: mas
tcp 0 0 0.0.0.0:9443 0.0.0.0:* LISTEN 155945/docker-proxy
tcp 0 0 127.0.0.1:45245 0.0.0.0:* LISTEN 568/varnishd
tcp 0 0 127.0.0.1:13000 0.0.0.0:* LISTEN 1208032/php-fpm: ma
tcp 0 0 127.0.0.1:8787 0.0.0.0:* LISTEN 784147/php-fpm: mas
tcp 0 0 127.0.0.1:8788 0.0.0.0:* LISTEN 784147/php-fpm: mas
tcp 0 0 127.0.0.1:17001 0.0.0.0:* LISTEN 481/php-fpm: master
tcp 0 0 127.0.0.1:17000 0.0.0.0:* LISTEN 481/php-fpm: master
tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 568/varnishd
tcp6 0 0 ::1:40045 :::* LISTEN 568/varnishd
tcp6 0 0 :::3306 :::* LISTEN 684/mysqld
tcp6 0 0 ::1:6379 :::* LISTEN 486/redis-server 12
tcp6 0 0 :::8001 :::* LISTEN 151703/docker-proxy
tcp6 0 0 :::8090 :::* LISTEN 1598130/docker-prox
tcp6 0 0 :::8080 :::* LISTEN 1599612/nginx: mast
tcp6 0 0 :::25 :::* LISTEN 1962/master
tcp6 0 0 :::22 :::* LISTEN 551/sshd: /usr/sbin
tcp6 0 0 :::80 :::* LISTEN 1599612/nginx: mast
tcp6 0 0 :::185 :::* LISTEN 13521/httpd
tcp6 0 0 :::8443 :::* LISTEN 784151/nginx: maste
tcp6 0 0 :::33060 :::* LISTEN 684/mysqld
tcp6 0 0 :::443 :::* LISTEN 1599612/nginx: mast
tcp6 0 0 :::9443 :::* LISTEN 155952/docker-proxy
tcp6 0 0 :::6081 :::* LISTEN 568/varnishd
udp 0 0 127.0.0.1:1721 0.0.0.0:* 508/monarx-agent
udp 0 0 127.0.0.53:53 0.0.0.0:* 400/systemd-resolve
udp 0 0 127.0.0.1:323 0.0.0.0:* 606/chronyd
udp6 0 0 :::52389 :::* 1208297/cloudflared
udp6 0 0 :::40504 :::* 1208297/cloudflared
udp6 0 0 ::1:323 :::* 606/chronyd
udp6 0 0 :::41669 :::* 1208297/cloudflared
udp6 0 0 :::53986 :::* 1208297/cloudflared

Apparently php-fpm on the host already uses the choswn APACHE_PORT. So you can change it to something else and it should work.

Thank you ā€“ you made my day!!