# letsencrypt acme timeout on apache aio container but not mastercontainer

**URL:** <https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** docker, letsencrypt, nc33, aio\
**Created:** [August 25, 2026, 4:40pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570 "2026-08-25T16:40:20Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 25, 2026, 4:40pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/1 "2026-08-25T16:40:20Z")

</div>

> **Support intro**
>
> ## Sorry to hear you’re facing problems. 🙁
> 
> _The community help forum ([help.nextcloud.com](http://help.nextcloud.com)) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are **volunteering their time to help you.** _
> 
> **If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where Nextcloud engineers can help ensure your business keeps running smoothly.**
> 
> ## Getting help
> 
> In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
> 
> **Before clicking submit** : Please check if your query is already addressed via the following resources:
> 
> - [Official documentation](https://docs.nextcloud.com) (searchable and regularly updated)
> - [How to topics and FAQs](https://help.nextcloud.com/c/how-to-faqs/9)
> - [Forum search](https://help.nextcloud.com/search)
> 
> (Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. ❤

## The Basics

- Nextcloud Server version _(e.g., 29.x.x)_:
  - 33.0.8

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - `Debian 13 Linux 6.12.101 `

- Installation method _(e.g. AlO, NCP, Bare Metal/Archive, etc.)_
  - `AIO`

### Summary of the issue you are facing:

Cannot get acme challange pass for the apache docker container to obtain a cetrificate from letsencrypt but mastercontainer has no issues obtaining a cetrificate.

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

1. start mastercontainer

2. log into webinterface

3. start containers

### Log entries

letsencrypt timeout during connect issues

Thing is i get a valid certificate from letsencrypt for the webinterface on port 8443 so i temporarly solved this by copying over the certificate to the apache instance but thats still not really helpfull if i cannot actually solve this since it will just run out in 7 days.

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [August 26, 2026, 9:34am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/2 "2026-08-26T09:34:42Z")

</div>

Hi, can you please post the nextcloud-aio-apache container logs here when it tries to retrieve a certificate and fails to do so?

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 26, 2026, 11:25am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/4 "2026-08-26T11:25:26Z")

</div>

From what i have found this is supposedly a firewall issue however port 80 is forwarded and the mastercontainer itself manages to grab the certificate without any issues and if this is just an issue with the firewall i would expect the mastercontainer to run into the same issue

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 26, 2026, 11:31am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/5 "2026-08-26T11:31:02Z")

</div>

> {“level”:“error”,“ts”:1787743299.7818086,“logger”:“http.acme\_client”,“msg”:“challenge failed”,“identifier”:“domain”,“challenge\_type”:“tls-alpn-01”,“problem”:{“type”:“urn:ietf:params:acme:error:connection”,“title”:“”,“detail”:“IP: Timeout during connect (likely firewall problem)”,“instance”:“”,“subproblems”:null}}  
> {“level”:“error”,“ts”:1787743299.7818713,“logger”:“http.acme\_client”,“msg”:“validating authorization”,“identifier”:“domain”,“problem”:{“type”:“urn:ietf:params:acme:error:connection”,“title”:“”,“detail”:“IP: Timeout during connect (likely firewall problem)”,“instance”:“”,“subproblems”:null},“order”:“[https://acme-v02.api.letsencrypt.org/acme/order/placeholder/placeholder",“attempt”:1,"max\_attempts](https://acme-v02.api.letsencrypt.org/acme/order/placeholder/placeholder%22,%22attempt%22:1,%22max_attempts)”:3}  
> {“level”:“error”,“ts”:1787743299.7819033,“logger”:“tls.obtain”,“msg”:“could not get certificate from issuer”,“identifier”:“domain”,“issuer”:“acme-v02.api.letsencrypt.org-directory”,“error”:“HTTP 400 urn:ietf:params:acme:error:connection - IP: Timeout during connect (likely firewall problem)”}  
> {“level”:“error”,“ts”:1787743299.7819538,“logger”:“tls.obtain”,“msg”:“will retry”,“error”:“[domain] Obtain: [domain] solving challenge: domain: [domain] authorization failed: HTTP 400 urn:ietf:params:acme:error:connection - IP : Timeout during connect (likely firewall problem) (ca=[https://acme-v02.api.letsencrypt.org/directory](https://acme-v02.api.letsencrypt.org/directory))”,“attempt”:1,“retrying\_in”:60,“elapsed”:12.799862067,“max\_duration”:2592000}

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [August 26, 2026, 11:45am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/6 "2026-08-26T11:45:07Z")

</div>

Is port 443 forwarded as well? This is what the apache container uses to get the certificate…

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 26, 2026, 12:03pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/7 "2026-08-26T12:03:06Z")

</div>

Yes tcp and udp for 443

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [August 26, 2026, 12:08pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/8 "2026-08-26T12:08:33Z")

</div>

Hm… Is maybe some web application firewall in between or cloudflare configured that could block these lind of connections?

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [August 26, 2026, 12:09pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/9 "2026-08-26T12:09:09Z")

</div>

Apart from that does the domain has an aaaa record set? You could temporarily disable that and check if that makes it work

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 26, 2026, 12:12pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/10 "2026-08-26T12:12:38Z")

</div>

I already checked if that would be the cases with dig and can’t see anything unusual except the normal A record.  
Firewall is just a normal NAT that maps the port 1:1 from the internal ip to the external ip.

There exists a webpage filter firewall between the host and the internet however if that was the issue the mastercontainer should be unable to get a certificate as well  
Also no cloudflare proxy etc

---

<div class="post-metadata">

**Author:** ![denNorske](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dennorske/32/17675_2.png) [@denNorske](https://help.nextcloud.com/u/denNorske)\
**Post date:** [August 27, 2026, 9:52am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/11 "2026-08-27T09:52:41Z")

</div>

Hello Marv!

Can you post your docker compose setup that shows the networking and ports configuration for the entire stack?

And perhaps explain how you have forwarded the ports, are they forwarded 1:1 or do some ports change when they are forwarded? (for instance: 443 → 9443)  
And what is the webpage firewall you mentioned - it does not tell me what it is or how it works; could you clarify that so I know I am not missing something?

Finally, pretend you are a letsencrypt service; can you manually reach the container from the public internet on the required ports? If you cannot reach it, letsencrypt will have the same issue. Hint; use netcat; `nc -zv [PUBLIC host] [port]` to test connectivity, externally - not from same network

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 28, 2026, 11:03am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/12 "2026-08-28T11:03:55Z")

</div>

According to this

`# TLS options tls { issuer acme { profile tlsserver # Disable HTTP challenge because that would require port 80, which we don't get (it's exposed to the mastercontainer). # This container by default only exposes port 443 if not configured otherwise via APACHE_PORT. disable_http_challenge }`

the acme challange should be disabled in the apache container anyways if thats the case how is the apache server supposed to get a certificate?

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 28, 2026, 11:13am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/13 "2026-08-28T11:13:38Z")

</div>

I can’t give you a docker compose yaml since its not setup as a composer (since it uses a master container)  
But i can give you a docker ps output that includes the ports

`CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES`  
`6247871ee3bb ``ghcr.io/nextcloud-releases/aio-apache:latest`` "/start.sh /usr/bin/…" 2 days ago Up 2 days (healthy) 80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:443->443/udp nextcloud-aio-apache`  
`884f8add605e ``ghcr.io/nextcloud-releases/aio-nextcloud:latest`` "/start.sh /usr/bin/…" 2 days ago Up 2 days (healthy) 9000/tcp nextcloud-aio-nextcloud`  
`19faeded5ba5 ``ghcr.io/nextcloud-releases/aio-imaginary:latest`` "/start.sh" 2 days ago Up 2 days (healthy) nextcloud-aio-imaginary`  
`b3ef40f333c5 ``ghcr.io/nextcloud-releases/aio-redis:latest`` "/start.sh" 2 days ago Up 2 days (healthy) 6379/tcp nextcloud-aio-redis`  
`5df06c7e5d0d ``ghcr.io/nextcloud-releases/aio-postgresql:latest`` "/start.sh" 2 days ago Up 2 days (healthy) 5432/tcp nextcloud-aio-database`  
`559b1db16078 ``ghcr.io/nextcloud-releases/aio-whiteboard:latest`` "/start.sh" 2 days ago Up 2 days (healthy) 3002/tcp nextcloud-aio-whiteboard`  
`0f8004300c46 ``ghcr.io/nextcloud-releases/aio-notify-push:latest`` "/start.sh" 2 days ago Up 2 days (healthy) nextcloud-aio-notify-push`  
`c31aa1ecbc75 ``ghcr.io/nextcloud-releases/all-in-one:latest`` "/start.sh" 2 days ago Up 2 days (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`

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 28, 2026, 11:18am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/14 "2026-08-28T11:18:27Z")

</div>

![image](https://help.nextcloud.com/uploads/default/original/3X/9/7/976829c01bc91e77eb14d3c0d5549a468a930827.png)

Maps directly to the corresponding Port.

There is a content filter active on the firewall that might filter out some websites but if that was the issue the mastercontainer would be unable to do anything either

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 28, 2026, 11:20am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/15 "2026-08-28T11:20:02Z")

</div>

This btw also shows that apache (or something else inside the container) does in fact listen to port 80 but said port is not fowarded outside the docker bridge network

---

<div class="post-metadata">

**Author:** ![denNorske](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dennorske/32/17675_2.png) [@denNorske](https://help.nextcloud.com/u/denNorske)\
**Post date:** [August 28, 2026, 12:06pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/16 "2026-08-28T12:06:20Z")

</div>

> [@marv\_n](#):
>
> how is the apache server supposed to get a certificate?

The config does not disable ACME, it disables HTTP-01 - Apache container relies on `TLS-ALPN-01` which basically is acme challenge over HTTP **S**. That is why HTTP is explicitly disabled in that configuration, because that is the default unless you override it (over port 80).  
You can also see that it is using TLS-ALPN-01 in the logs:

> [@marv\_n](#):
>
> “challenge\_type”:“tls-alpn-01”

The `docker ps` output shows that port 443 is mapped to the host port 443, which should be correct, too. And it does not need to expose port 80 in this case.

You did not test the connectivity as I asked you - Are you able to reach port 443?🙂

> [@denNorske](#):
>
> Hint; use netcat; `nc -zv [PUBLIC host] [port]` to test connectivity, externally - not from same network

Since letsencrypt says it times out, _something_ is not answering, and you need to figure out what is between the container and letsencrypt that might block it. Geo-blocking? Etc..

---

<div class="post-metadata">

**Author:** ![denNorske](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dennorske/32/17675_2.png) [@denNorske](https://help.nextcloud.com/u/denNorske)\
**Post date:** [August 28, 2026, 12:11pm UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/17 "2026-08-28T12:11:53Z")

</div>

Also finally, worth verifying that the DNS you are using is public, and that it points to the right public IP where nextcloud is hosted 🙂 If it resolves the wrong IP, you will also not get anywhere. Double check to be sure

---

<div class="post-metadata">

**Author:** ![marv\_n](https://help.nextcloud.com/letter_avatar/marv_n/32/6_449c533f586939b6e5f246632a46421f.png) [@marv\_n](https://help.nextcloud.com/u/marv_n)\
**Post date:** [August 31, 2026, 6:16am UTC](https://help.nextcloud.com/t/letsencrypt-acme-timeout-on-apache-aio-container-but-not-mastercontainer/248570/18 "2026-08-31T06:16:03Z")

</div>

`Ncat: Version 7.92 ( ``https://nmap.org/ncat`` )`  
`Ncat: Connected to IP:443.`  
`Ncat: 0 bytes sent, 0 bytes received in 0.22 seconds.`
