1. The problem I’m having:
I have a nuxt3 application running with pm2. Randomly, when accessing the site it appears unreachable, I try to refresh it again a few times and then it starts again.
2. Error messages and/or full log output:
{"level":"error","ts":1739434239.724818,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"localhost:3000","duration":0.001969559,"request":{"remote_ip":"xx.xxx.xxx.xxx","remote_port":"46888","client_ip":"xx.xxx.xxx.xxx","proto":"HTTP/2.0","method":"GET","host":"","uri":"/_nuxt/B4ngE-ut.js","headers":{"X-Forwarded-Host":["xxxxxxxxxxxxxx"],"Sec-Fetch-Site":["same-origin"],"Te":["trailers"],"Sec-Fetch-Dest":["script"],"Accept":["*/* "],"Accept-Language":["it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3"],"X-Forwarded-Proto":["https"],"Sec-Fetch-Mode":["cors"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Referer":["xxxxxxxxxxxxxxx"],"Priority":["u=1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0"],"X-Forwarded-For":["xx.xxx.xxx.xxx"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"xxxxxxxxxxxxxxxx"}},"error":"reading: context canceled"}
3. Caddy version: 2.8.4
4. How I installed and ran Caddy: with apt
a. System environment: ubuntu
d. My complete Caddy config:
my_address {
#Another common task is to set up a reverse proxy:
reverse_proxy localhost:3000
tls {
issuer zerossl token
}
}