The Basics
- Nextcloud Server version (e.g., 29.x.x):
Not sure, haven't really gotten that far - latest as pulled by docker compose
- Operating system and version (e.g., Ubuntu 24.04):
Ubuntu 26.04.1
- Web server and version (e.g, Apache 2.4.25):
Unknown
- Reverse proxy and version _(e.g. nginx 1.27.2)
Caddyv2.11.7 h1:yj0Y4fYZGPkSvibBJ1sTWE33xC0fxztVyXEW5iIdUT4=
- PHP version (e.g, 8.3):
Unknown
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
Once I got a little ways into initial setup
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
AIO Docker Compose
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
Once I get to this page in the initial setup: https://127.0.0.1:8080/containers, and then click on submit domain with my domain in the field (cloud.mydomain.com) I get the error in the title:
Steps to replicate it (hint: details matter!):
- Go through setup and then see entry above
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.
nextcloud-aio-mastercontainer | NOTICE: PHP message: The response of the connection attempt to "https://cloud.mydomain.com:443" was:
nextcloud-aio-mastercontainer | NOTICE: PHP message: Expected was: 1896fb418082504fd8f749c663f2591b0e964a0479c64369
nextcloud-aio-mastercontainer | NOTICE: PHP message:
nextcloud-aio-mastercontainer | NOTICE: PHP message: Please follow https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#how-to-debug in order to debug things!
NOTE: I changed my Caddyfile to match what is in that link for debugging and it still gives the same error:
https://cloud.mydomain.com:443`` {
reverse_proxy localhost:11000
}
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
PASTE
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____:
caddy-1 | {"level":"error","ts":1791580595.3773334,"logger":"http.log.error","msg":"dial tcp [::1]:11000: connect: connection refused","request":{"remote_ip":"149.76.110.196","remote_port":"45952","client_ip":"149.76.110.196","proto":"HTTP/2.0","method":"GET","host":"cloud.mydomain.com","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Dnt":["1"],"Sec-Gpc":["1"],"Sec-Fetch-Site":["none"],"Te":["trailers"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Sec-Fetch-Mode":["navigate"],"Accept-Language":["en-US,en;q=0.9"],"Priority":["u=0, i"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"cloud.mydomain.com","ech":false}},"duration":0.000391073,"status":502,"err_id":"q8vdck4qq","err_trace":"reverseproxy.statusError (reverseproxy.go:1695)"}
Configuration
Nextcloud
The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):
Command 'occ' not found, but there are 21 similar ones.
Apps
The output of occ app:list (if possible).
Other Info
My zone entry is
| cloud.mydomain.com. | 300 | A | X.X.X.X |
|---|
I have another with this entry for another service that works:
| immich.mydomain.com. | 300 | A | X.X.X.X |
|---|
This is my current Caddyfile:
{
# Email for Let's Encrypt notifications (expiration, etc.)
email myemail@email.com
}
Reusable configuration block for security headers
(securite) {
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Referrer-Policy "strict-origin-when-cross-origin"
# Hide the server signature
-Server
}
}
immich.mydomain.com {
import securite
reverse_proxy x.x.x.x:2283
}
https://cloud.mydomain.com:443 {
reverse_proxy localhost:11000
}
This is the one I had before going to the troubleshooting page, it also gave the same error:
cloud.mydomain.com`` {
import securite
reverse_proxy 127.0.0.1:11000
}