Nextcloud AIO :latest show ERR_SSL_PROTOCOL_ERROR after install

The Basics

  • Nextcloud Server version (e.g., 29.x.x):

    • latest ( Nextcloud AIO v10.14.0 )
  • Operating system and version (e.g., Ubuntu 24.04):

    • Ubuntu Server 24.04.2 LTS
  • Is this the first time you’ve seen this error? (Yes / No):

    • Yes
  • When did this problem seem to first start?

    • after install
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • AIO docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • No

Summary of the issue you are facing:

Hello!
I want to have dockerised personal cloud on my server.
So I try to install Nextcloud-AIO version by manual. This is my command:

sudo docker run \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
--env NEXTCLOUD_DATADIR="/home/nc_aio/userdata" \
ghcr.io/nextcloud-releases/all-in-one:latest

After the install process finished I can open only 192.168…:8080 and 192.168…:8443 pages and can not open lifshits.xyz page… Nor for 80 or 443 ports.

I found in logs some error

{"level":"error","ts":1747267612.5224726,"msg":"validating authorization","identifier":"lifshits.xyz","problem":{"type":"urn:ietf:params:acme:error:connection","title":"","detail":"95.165.5.51: Timeout during connect (likely firewall problem)","instance":"","subproblems":null},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/*****/**********","attempt":1,"max_attempts":3,"stacktrace":"github.com/mholt/acmez/v3.(*Client).ObtainCertificate\n\tgithub.com/mholt/acmez/v3@v3.1.2/client.go:152\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).doIssue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:489\ngithub.com/caddyserver/certmagic.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/certmagic@v0.23.0/acmeissuer.go:382\ngithub.com/caddyserver/caddy/v2/modules/caddytls.(*ACMEIssuer).Issue\n\tgithub.com/caddyserver/caddy/v2@v2.10.0/modules/caddytls/acmeissuer.go:288\ngithub.com/caddyserver/certmagic.(*Config).obtainCert.func2\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:626\ngithub.com/caddyserver/certmagic.doWithRetry\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:104\ngithub.com/caddyserver/certmagic.(*Config).obtainCert\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:700\ngithub.com/caddyserver/certmagic.(*Config).ObtainCertAsync\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:505\ngithub.com/caddyserver/certmagic.(*Config).manageOne.func1\n\tgithub.com/caddyserver/certmagic@v0.23.0/config.go:415\ngithub.com/caddyserver/certmagic.(*jobManager).worker\n\tgithub.com/caddyserver/certmagic@v0.23.0/async.go:73"}
{"level":"error","ts":1747267612.5225637,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"lifshits.xyz","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:connection - 95.165.5.51: Timeout during connect (likely firewall problem)"}
{"level":"error","ts":1747267612.5226078,"logger":"tls.obtain","msg":"will retry","error":"[lifshits.xyz] Obtain: [lifshits.xyz] solving challenge: lifshits.xyz: [lifshits.xyz] authorization failed: HTTP 400 urn:ietf:params:acme:error:connection - 95.165.5.51: Timeout during connect (likely firewall problem) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":4,"retrying_in":300,"elapsed":347.181778872,"max_duration":2592000}

I was search this error in google and this forum, but I still do not understand reason of it.

I enable all ports forwarding on router, all ports are avail from the Internet.

I have another docker apps such as Mailu on this server, but I changed its 80 and 443 ports.

This is netstat, and it tell 80 and 443 ports available for AIO conteiner:

usr@serv:~$ sudo netstat -tulpn
[sudo] password for usr:
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:8443            0.0.0.0:*               LISTEN      2145992/docker-prox
tcp        0      0 127.0.0.1:8125          0.0.0.0:*               LISTEN      14718/netdata
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      2145979/docker-prox
tcp        0      0 192.168.1.100:19999     0.0.0.0:*               LISTEN      14718/netdata
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2145964/docker-prox
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      2143088/docker-prox
tcp        0      0 0.0.0.0:3478            0.0.0.0:*               LISTEN      2144811/docker-prox
tcp        0      0 192.168.1.100:8011      0.0.0.0:*               LISTEN      2151691/docker-prox
tcp        0      0 192.168.1.100:4431      0.0.0.0:*               LISTEN      2151714/docker-prox
tcp        0      0 192.168.1.100:4190      0.0.0.0:*               LISTEN      2151752/docker-prox
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      1041/systemd-resolv
tcp        0      0 127.0.0.54:53           0.0.0.0:*               LISTEN      1041/systemd-resolv
tcp        0      0 192.168.1.100:465       0.0.0.0:*               LISTEN      2151721/docker-prox
tcp        0      0 192.168.1.100:25        0.0.0.0:*               LISTEN      2151684/docker-prox
tcp        0      0 192.168.1.100:110       0.0.0.0:*               LISTEN      2151698/docker-prox
tcp        0      0 192.168.1.100:143       0.0.0.0:*               LISTEN      2151706/docker-prox
tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN      5685/transmission-d
tcp        0      0 192.168.1.100:995       0.0.0.0:*               LISTEN      2151744/docker-prox
tcp        0      0 192.168.1.100:993       0.0.0.0:*               LISTEN      2151736/docker-prox
tcp        0      0 192.168.1.100:587       0.0.0.0:*               LISTEN      2151728/docker-prox
tcp6       0      0 :::8443                 :::*                    LISTEN      2145999/docker-prox
tcp6       0      0 :::8080                 :::*                    LISTEN      2145985/docker-prox
tcp6       0      0 :::80                   :::*                    LISTEN      2145971/docker-prox
tcp6       0      0 :::22                   :::*                    LISTEN      1/init
tcp6       0      0 :::443                  :::*                    LISTEN      2143095/docker-prox
tcp6       0      0 :::3478                 :::*                    LISTEN      2144818/docker-prox
tcp6       0      0 :::51413                :::*                    LISTEN      5685/transmission-d
udp        0      0 0.0.0.0:3478            0.0.0.0:*                           2144825/docker-prox
udp        0      0 0.0.0.0:6771            0.0.0.0:*                           5685/transmission-d
udp        0      0 0.0.0.0:7359            0.0.0.0:*                           1345/jellyfin
udp        0      0 127.0.0.1:8125          0.0.0.0:*                           14718/netdata
udp        0      0 0.0.0.0:50886           0.0.0.0:*                           5685/transmission-d
udp        0      0 0.0.0.0:51413           0.0.0.0:*                           5685/transmission-d
udp        0      0 127.0.0.54:53           0.0.0.0:*                           1041/systemd-resolv
udp        0      0 127.0.0.53:53           0.0.0.0:*                           1041/systemd-resolv
udp        0      0 192.168.1.100:68        0.0.0.0:*                           995/systemd-network
udp        0      0 0.0.0.0:443             0.0.0.0:*                           2143102/docker-prox
udp6       0      0 :::3478                 :::*                                2144833/docker-prox
udp6       0      0 :::51413                :::*                                5685/transmission-d
udp6       0      0 :::443                  :::*                                2143109/docker-prox
udp6       0      0 fe80::2e0:24ff:fe21:546 :::*                                995/systemd-network

And this is ps output:

CONTAINER ID   IMAGE                                                  COMMAND                  CREATED       STATUS                    PORTS                                                                                                                                                                                                                                                                                     NAMES
5c7b6604d0e1   ghcr.io/nextcloud-releases/aio-apache:latest           "/start.sh /usr/bin/…"   5 hours ago   Up 34 minutes (healthy)   80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:443->443/udp, [::]:443->443/tcp, [::]:443->443/udp                                                                                                                                                                                                  nextcloud-aio-apache
ce6ad0597004   ghcr.io/nextcloud-releases/aio-whiteboard:latest       "/start.sh"              5 hours ago   Up 34 minutes (healthy)   3002/tcp                                                                                                                                                                                                                                                                                  nextcloud-aio-whiteboard
3cf25b4f823f   ghcr.io/nextcloud-releases/aio-notify-push:latest      "/start.sh"              5 hours ago   Up 34 minutes (healthy)                                                                                                                                                                                                                                                                                             nextcloud-aio-notify-push
5386899f3995   ghcr.io/nextcloud-releases/aio-nextcloud:latest        "/start.sh /usr/bin/…"   5 hours ago   Up 34 minutes (healthy)   9000/tcp                                                                                                                                                                                                                                                                                  nextcloud-aio-nextcloud
2826d015b0d6   ghcr.io/nextcloud-releases/aio-imaginary:latest        "/start.sh"              5 hours ago   Up 34 minutes (healthy)                                                                                                                                                                                                                                                                                             nextcloud-aio-imaginary
f3eb9ae0834b   ghcr.io/nextcloud-releases/aio-talk-recording:latest   "/start.sh python -m…"   5 hours ago   Up 34 minutes (healthy)                                                                                                                                                                                                                                                                                             nextcloud-aio-talk-recording
7705a20efde4   ghcr.io/nextcloud-releases/aio-fulltextsearch:latest   "/bin/tini -- /usr/l…"   5 hours ago   Up 34 minutes (healthy)   9200/tcp, 9300/tcp                                                                                                                                                                                                                                                                        nextcloud-aio-fulltextsearch
4cabccc9261b   ghcr.io/nextcloud-releases/aio-clamav:latest           "/start.sh /usr/bin/…"   5 hours ago   Up 34 minutes (healthy)                                                                                                                                                                                                                                                                                             nextcloud-aio-clamav
ad1f09a9da5f   ghcr.io/nextcloud-releases/aio-redis:latest            "/start.sh"              5 hours ago   Up 34 minutes (healthy)   6379/tcp                                                                                                                                                                                                                                                                                  nextcloud-aio-redis
d3246f40f9e2   ghcr.io/nextcloud-releases/aio-postgresql:latest       "/start.sh"              5 hours ago   Up 34 minutes (healthy)   5432/tcp                                                                                                                                                                                                                                                                                  nextcloud-aio-database
0402371015e0   ghcr.io/nextcloud-releases/aio-talk:latest             "/start.sh superviso…"   5 hours ago   Up 34 minutes (healthy)   0.0.0.0:3478->3478/tcp, 0.0.0.0:3478->3478/udp, [::]:3478->3478/tcp, [::]:3478->3478/udp                                                                                                                                                                                                  nextcloud-aio-talk
a8f559c0dc64   ghcr.io/nextcloud-releases/aio-collabora:latest        "/start-collabora-on…"   5 hours ago   Up 34 minutes (healthy)   9980/tcp                                                                                                                                                                                                                                                                                  nextcloud-aio-collabora
3d60ba4dc1f2   ghcr.io/nextcloud-releases/all-in-one:latest           "/start.sh"              5 hours ago   Up 34 minutes (healthy)   0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, [::]:8443->8443/tcp, 9000/tcp                                                                                                                                                   nextcloud-aio-mastercontainer
c10404dbe5b4   ghcr.io/mailu/fetchmail:master                         "/fetchmail.py"          4 days ago    Up 34 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-fetchmail-1
7927f64a4e85   ghcr.io/mailu/dovecot:master                           "/bin/sh -c /start.py"   4 days ago    Up 34 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-imap-1
1b839664124a   ghcr.io/mailu/rspamd:master                            "/bin/sh -c /start.py"   4 days ago    Up 34 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-antispam-1
226775cd1e33   ghcr.io/mailu/postfix:master                           "/bin/sh -c /start.py"   4 days ago    Up 33 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-smtp-1
7f8859c082a7   ghcr.io/mailu/admin:master                             "/bin/sh -c /start.py"   4 days ago    Up 33 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-admin-1
c1be4f0ebf8b   ghcr.io/mailu/nginx:master                             "/bin/sh -c /start.py"   4 days ago    Up 31 minutes (healthy)   192.168.1.100:25->25/tcp, 192.168.1.100:110->110/tcp, 192.168.1.100:143->143/tcp, 192.168.1.100:465->465/tcp, 192.168.1.100:587->587/tcp, 192.168.1.100:993->993/tcp, 192.168.1.100:995->995/tcp, 192.168.1.100:4190->4190/tcp, 192.168.1.100:8011->80/tcp, 192.168.1.100:4431->443/tcp   mailu-front-1
1863e5d390a7   ghcr.io/mailu/oletools:master                          "/bin/sh -c /start.py"   4 days ago    Up 33 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-oletools-1
59866c7a9331   redis:alpine                                           "docker-entrypoint.s…"   4 days ago    Up 33 minutes             6379/tcp                                                                                                                                                                                                                                                                                  mailu-redis-1
158ce0f3b4e7   ghcr.io/mailu/unbound:master                           "/bin/sh -c /start.py"   4 days ago    Up 33 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-resolver-1
02510a9e8391   ghcr.io/mailu/radicale:master                          "/bin/sh -c 'radical…"   4 days ago    Up 33 minutes (healthy)                                                                                                                                                                                                                                                                                             mailu-webdav-1

But I haven’t got any ideas why ACME give me such error.

I check my DNS records and all is correct, for me…

Steps to replicate it (hint: details matter!):

I am not shure it is replicatable but

  1. docker Mailu install
  2. docker nextcloud-aio-mastercontainer install
  3. enable ports forwarding

The error is that ACME (Let’s Encrypt) is failing to reach your server for the HTTP-01 verification of your certificate. This is done via port 80, are you sure the port forward in the firewall has been done to the proper server? Is nothing else listening on port 80?

I’m shure only described facts:

  1. host is in DMZ on router - all ports are open to all internet. It’s not secure, but it is debug process :slight_smile:
  2. I listed netstat - only docker apps listen 80 and 443 ports. When i stop AIO containers ( nextcloud-aio-mastercontainer and nextcloud-aio-apache) netstat give me this:
usr@srv:~$ 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:8125          0.0.0.0:*               LISTEN      14718/netdata
tcp        0      0 192.168.1.100:19999     0.0.0.0:*               LISTEN      14718/netdata
tcp        0      0 0.0.0.0:3478            0.0.0.0:*               LISTEN      2144811/docker-prox
tcp        0      0 192.168.1.100:8011      0.0.0.0:*               LISTEN      2151691/docker-prox
tcp        0      0 192.168.1.100:4431      0.0.0.0:*               LISTEN      2151714/docker-prox
tcp        0      0 192.168.1.100:4190      0.0.0.0:*               LISTEN      2151752/docker-prox
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      1041/systemd-resolv
tcp        0      0 127.0.0.54:53           0.0.0.0:*               LISTEN      1041/systemd-resolv
tcp        0      0 192.168.1.100:465       0.0.0.0:*               LISTEN      2151721/docker-prox
tcp        0      0 192.168.1.100:25        0.0.0.0:*               LISTEN      2151684/docker-prox
tcp        0      0 192.168.1.100:110       0.0.0.0:*               LISTEN      2151698/docker-prox
tcp        0      0 192.168.1.100:143       0.0.0.0:*               LISTEN      2151706/docker-prox
tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN      5685/transmission-d
tcp        0      0 192.168.1.100:995       0.0.0.0:*               LISTEN      2151744/docker-prox
tcp        0      0 192.168.1.100:993       0.0.0.0:*               LISTEN      2151736/docker-prox
tcp        0      0 192.168.1.100:587       0.0.0.0:*               LISTEN      2151728/docker-prox
tcp6       0      0 :::22                   :::*                    LISTEN      1/init
tcp6       0      0 :::3478                 :::*                    LISTEN      2144818/docker-prox
tcp6       0      0 :::51413                :::*                    LISTEN      5685/transmission-d
udp        0      0 0.0.0.0:3478            0.0.0.0:*                           2144825/docker-prox
udp        0      0 0.0.0.0:6771            0.0.0.0:*                           5685/transmission-d
udp        0      0 0.0.0.0:7359            0.0.0.0:*                           1345/jellyfin
udp        0      0 127.0.0.1:8125          0.0.0.0:*                           14718/netdata
udp        0      0 0.0.0.0:50886           0.0.0.0:*                           5685/transmission-d
udp        0      0 0.0.0.0:51413           0.0.0.0:*                           5685/transmission-d
udp        0      0 127.0.0.54:53           0.0.0.0:*                           1041/systemd-resolv
udp        0      0 127.0.0.53:53           0.0.0.0:*                           1041/systemd-resolv
udp        0      0 192.168.1.100:68        0.0.0.0:*                           995/systemd-network
udp6       0      0 :::3478                 :::*                                2144833/docker-prox
udp6       0      0 :::51413                :::*                                5685/transmission-d
udp6       0      0 fe80::2e0:24ff:fe21:546 :::*                                995/systemd-network

I am not see smth on 80/443 ports when i stop aio.
(I start it again after this post)
3. I am not shure about nginx into another docker (with mailu) but it shouldn’t listen not proxiing ports (as show me netstat and docker ps listings from this question main post.

Hi @eniok, can you check What can I do when Nextcloud is not reachable via my domain or if I get `SSL_ERROR_INTERNAL_ERROR_ALERT` or `ERR_SSL_PROTOCOL_ERROR` when opening my Nextcloud domain? · nextcloud/all-in-one · Discussion #2105 · GitHub

Hi.
Yep, I read this, thanks. But it is not my case (or I can’t underscand why it is).
I haven’t got AAAA records on dns.
CNAMES are present but i am not see any of subdomains into ACME requests.
443 port is open, I can touch it by telnet from my windows machine by domain name.
I am not using any external proxing - and I add a host to DMZ.
I am not use ip6 nor by DNS server nor router.

You could try to install either Apache or Nginx to see if you can at all get something thru via port 80? Setup a simple Hello World..

When i run nmap on your domain name it can tell port 80 is open, however, 443 is not.

Starting Nmap 7.93 ( https://nmap.org ) at 2025-05-15 11:49 UTC
Nmap scan report for lifshits.xyz (95.165.5.51)
Host is up (0.051s latency).
rDNS record for 95.165.5.51: mail.lifshits.xyz
Not shown: 998 filtered tcp ports (no-response)
PORT   STATE  SERVICE
53/tcp closed domain
80/tcp open   http

Nmap done: 1 IP address (1 host up) scanned in 5.97 seconds

in my case:

Not shown: 997 filtered tcp ports (no-response)
PORT    STATE SERVICE
53/tcp  open  domain
80/tcp  open  http
443/tcp open  https
1 Like

It was unexpected, but it was correct idea…
I try nmap from my notebook:

C:\Users\ilya>nmap -p 443 192.168.1.100
Starting Nmap 7.97 ( https://nmap.org ) at 2025-05-15 22:02 +0300
Nmap scan report for mail.lifshits.xyz (192.168.1.100)
Host is up (0.0020s latency).

PORT    STATE SERVICE
443/tcp open  https
MAC Address: 00:E0:24:21:24:A7 (Gadzoox Networks)

Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds

But when I try it outside my network (from vps) it was

root@srv1692978866:~# nmap -p 443 lifshits.xyz
Starting Nmap 7.80 ( https://nmap.org ) at 2025-05-15 18:58 UTC
Nmap scan report for lifshits.xyz (95.165.5.51)
Host is up (0.039s latency).
rDNS record for 95.165.5.51: mail.lifshits.xyz

PORT    STATE    SERVICE
443/tcp filtered https

I checked my router settings, but found nothing.
When after reboot it - port 443 was open:

root@srv1692978866:~# nmap -p 443 lifshits.xyz
Starting Nmap 7.80 ( https://nmap.org ) at 2025-05-15 19:03 UTC
Nmap scan report for lifshits.xyz (95.165.5.51)
Host is up (0.038s latency).
rDNS record for 95.165.5.51: mail.lifshits.xyz

PORT    STATE SERVICE
443/tcp open  https

It was so unexpected and strange, but this is not end :frowning:

Now I have other error in log:


{"level":"info","ts":1747340641.9647005,"msg":"[INFO][FileStorage:/mnt/data/caddy] Lock for 'issue_cert_lifshits.xyz' is stale (created: 2025-05-15 19:14:31.003935634 +0000 UTC, last update: 2025-05-15 20:23:51.39693832 +0000 UTC); removing then retrying: /mnt/data/caddy/locks/issue_cert_lifshits.xyz.lock"}
{"level":"error","ts":1747340649.8833447,"logger":"tls.obtain","msg":"will retry","error":"[lifshits.xyz] Obtain: saving assets: mkdir /mnt/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory: permission denied","attempt":1,"retrying_in":60,"elapsed":7.913400362,"max_duration":2592000}

So I suppose, some folder should be chmod -ed… Maybe someone can help to find this folder? :slight_smile:

So, I connect to container and create uniqnamed file, then I find it in filesystem, and grant to user www-data rights on write (chown) into my domain named folder.

it was my experiment.

Now I have too many certificates (5) already issued for this exact set of domains in the last 168h0m0s error, but I think it is the solution.

So

  • just restarting router solve this issue.
    Thanks @puntjuh for usefull ideas! :slight_smile:

@eniok , you are welcome!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.