1. The problem I’m having:
I use reverse proxy to access 3 services remotely. They mostly work, but will occasionally individually timeout. Internally the services never drop. The Caddy logs say 502. Uptime Kuma will say getaddrinfo ENOTFOUND
or getaddrinfo EAI_AGAIN
2. Error messages and/or full log output:
":"http.acme_client","msg":"got renewal info","names":["hass.bout10bucks.duckdns.org"],"window_start":1730316650,"window_end":1730489450,"selected_time":1730406787,"recheck_after":1729523547.2381563,"explanation_url":""}
Oct 21 04:12:27 caddy caddy[1121]: {"level":"info","ts":1729501947.238502,"logger":"tls.cache.maintenance","msg":"updated ACME renewal information","identifiers":["hass.bout10bucks.duckdns.org"],"cert_hash":"2a5fc6176ed1ad180185a05a13b5e2db215a110b566d830c1187b91586decd17","ari_unique_id":"nytfzzwhT50Et-0rLMTGcIvS1w0.A7I9AFsPwllXOSDhgpuV-BVR","cert_expiry":1732993880,"selected_time":1730443602,"next_update":1729523547.2381563,"explanation_url":""}
Oct 21 04:32:27 caddy caddy[1121]: {"level":"info","ts":1729503147.1958883,"logger":"http.acme_client","msg":"got renewal info","names":["rss.bout10bucks.duckdns.org"],"window_start":1731604705,"window_end":1731777505,"selected_time":1731644763,"recheck_after":1729524747.1958847,"explanation_url":""}
Oct 21 04:32:27 caddy caddy[1121]: {"level":"info","ts":1729503147.1962414,"logger":"tls.cache.maintenance","msg":"updated ACME renewal information","identifiers":["rss.bout10bucks.duckdns.org"],"cert_hash":"f9a588d534a4deaae71989d6e5dd801df9766a21a62c983e8411504228870e3b","ari_unique_id":"nytfzzwhT50Et-0rLMTGcIvS1w0.BNVbMimBEwZKHYl28rbHbzxV","cert_expiry":1734281935,"selected_time":1731718730,"next_update":1729524747.1958847,"explanation_url":""}
Oct 20 09:05:50 caddy caddy[1121]: {"level":"error","ts":1729433150.0831206,"log
ger":"http.log.error","msg":"dial tcp 10.0.10.6:80: i/o timeout","request":{"rem
ote_ip":"10.0.10.8","remote_port":"33434","client_ip":"10.0.10.8","proto":"HTTP/
1.1","method":"GET","host":"rss.bout10bucks.duckdns.org","uri":"/","headers":{"C
onnection":["close"],"Accept":["text/html,application/xhtml+xml,application/xml;
q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b
3;q=0.9"],"User-Agent":["Uptime-Kuma/1.23.15"]},"tls":{"resumed":false,"version"
:772,"cipher_suite":4865,"proto":"","server_name":"rss.bout10bucks.duckdns.org"}
},"duration":3.001667522,"status":502,"err_id":"30si1e28c","err_trace":"reversep
roxy.statusError (reverseproxy.go:1269)"}
3. Caddy version:
v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
4. How I installed and ran Caddy:
dnf install 'dnf-command(copr)'
dnf copr enable @caddy/caddy
dnf install caddy
a. System environment:
AlmaLinux 9.4 LXC running on Proxmox 8.2.5
b. Command:
caddy run
c. Service/unit/compose file:
d. My complete Caddy config:
hass.bout10bucks.duckdns.org {
reverse_proxy http://10.0.30.9:8123
}
rss.bout10bucks.duckdns.org {
reverse_proxy http://10.0.10.6:80
}
ntfy.bout10bucks.duckdns.org {
reverse_proxy http://10.0.10.9:80
@httpget {
protocol http
method GET
path_regexp ^/([-_a-z0-9]{0,64}$|docs/|static/)
}
redir @httpget https://{host}{uri}
}
Additional info from Kuma Dashboard
Caddy Home Assistant Resolution Up 2024-10-21 07:32:47 200 - OK
Caddy Home Assistant Resolution Down 2024-10-21 07:31:47 getaddrinfo ENOTFOUND hass.bout10bucks.duckdns.org
Caddy RSS Resolution Up 2024-10-21 07:17:51 200 - OK
Caddy RSS Resolution Down 2024-10-21 07:16:21 getaddrinfo EAI_AGAIN rss.bout10bucks.duckdns.org
Caddy Home Assistant Resolution Up 2024-10-21 06:56:05 200 - OK
Caddy ntfy Resolution Up 2024-10-21 06:54:47 200 - OK
Caddy Home Assistant Resolution Down 2024-10-21 06:54:35 getaddrinfo EAI_AGAIN hass.bout10bucks.duckdns.org
Caddy ntfy Resolution Down 2024-10-21 06:53:21 getaddrinfo EAI_AGAIN ntfy.bout10bucks.duckdns.org
Caddy ntfy Resolution Up 2024-10-21 06:31:04 200 - OK
Caddy RSS Resolution Up 2024-10-21 06:30:46 200 - OK
Caddy ntfy Resolution Down 2024-10-21 06:29:24 getaddrinfo EAI_AGAIN ntfy.bout10bucks.duckdns.org
Caddy RSS Resolution Down 2024-10-21 06:29:06 getaddrinfo EAI_AGAIN rss.bout10bucks.duckdns.org
Caddy Home Assistant Resolution Up 2024-10-21 06:28:08 200 - OK