Log i/o timeout meaning

So If caddy just reverse proxy the help.mysite.io to custom.intercom.help what could the following error convey in logs.

May 28 07:07:01 help-dukaan caddy[826]: {"level":"error","ts":1685257621.5380306,"logger":"http.log.error","msg":"dial tcp: lookup custom.intercom.help: i/o timeout","request":{"remote_ip":"152.58.136.72","remote_port":"50697","proto":"HTTP/2.0","method":"GET","host":"help.mywebsite.io","uri":"/en/","headers":{"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Dest":["document"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Fetch-Site":["same-site"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, deflate, br"],"Cookie":[],"Sec-Ch-Ua":["\"Google Chrome\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\""]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"help.mywebsite.io"}},"duration":3.003131,"status":502,"err_id":"c689mrh3s","err_trace":"reverseproxy.statusError (reverseproxy.go:1299)"}

This means Caddy wasn’t able to connect to your upstream and it gave up after 3 seconds (the default dial_timeout). Make sure your upstream address is correct and that if you’re using a hostname instead of an IP address, that your DNS resolvers are correctly configured on your machine.

1 Like

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