We’ve encountered stale DNS records again on our app and deploying new versions seems to be not working
Here are some of the latest logs:
2021-08-14T13:19:07.680324565Z app[d6b74b0f] lhr [info] {"level":"error","ts":1628947147.6683795,"logger":"http.log.error.log0","msg":"dial tcp: lookup payments.internal on [fdaa::3]:53: no such host","request":{"remote_addr":"185.40.232.122:40406","proto":"HTTP/1.1","method":"POST","host":"payments.paypack.rw","uri":"/api/auth/agents/authorize","headers":{"Content-Length":["146"],"Fly-Forwarded-Ssl":["on"],"Fly-Dispatch-Start":["t=1628947147604283;instance=d6b74b0f"],"Accept":["*/*"],"X-Request-Start":["t=1628947147604219"],"Content-Type":["application/json"],"Fly-Forwarded-Proto":["https"],"X-Forwarded-Proto":["https"],"X-Forwarded-Ssl":["on"],"Fly-Region":["fra"],"User-Agent":["python-requests/2.25.1"],"Accept-Encoding":["gzip, deflate"],"Fly-Client-Ip":["84.244.69.73"],"X-Forwarded-For":["84.244.69.73, 213.188.209.3"],"Fly-Request-Id":["01FD2D1TTMRCE61V8B082Q31XE"],"Via":["1.1 fly.io"],"Fly-Forwarded-Port":["443"],"X-Forwarded-Port":["443"]}},"duration":0.053964321,"status":502,"err_id":"7e2kmgrtd","err_trace":"reverseproxy.statusError (reverseproxy.go:852)"}
2021-08-14T13:19:07.693711039Z app[d6b74b0f] lhr [info] {"level":"error","ts":1628947147.668471,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"185.40.232.122:40406","proto":"HTTP/1.1","method":"POST","host":"payments.paypack.rw","uri":"/api/auth/agents/authorize","headers":{"Content-Type":["application/json"],"Fly-Forwarded-Proto":["https"],"X-Forwarded-Proto":["https"],"X-Forwarded-Ssl":["on"],"Fly-Region":["fra"],"User-Agent":["python-requests/2.25.1"],"Accept-Encoding":["gzip, deflate"],"X-Request-Start":["t=1628947147604219"],"Fly-Client-Ip":["84.244.69.73"],"X-Forwarded-For":["84.244.69.73, 213.188.209.3"],"Via":["1.1 fly.io"],"Fly-Forwarded-Port":["443"],"X-Forwarded-Port":["443"],"Fly-Request-Id":["01FD2D1TTMRCE61V8B082Q31XE"],"Fly-Forwarded-Ssl":["on"],"Fly-Dispatch-Start":["t=1628947147604283;instance=d6b74b0f"],"Accept":["*/*"],"Content-Length":["146"]}},"common_log":"185.40.232.122 - - [14/Aug/2021:13:19:07 +0000] \"POST /api/auth/agents/authorize HTTP/1.1\" 502 0","duration":0.053964321,"size":0,"status":502,"resp_headers":{"Server":["Caddy"]}}
2021-08-14T13:19:07.706992846Z app[d6b74b0f] lhr [info] {"level":"error","ts":1628947147.668471,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"185.40.232.122:40406","proto":"HTTP/1.1","method":"POST","host":"payments.paypack.rw","uri":"/api/auth/agents/authorize","headers":{"Fly-Client-Ip":["84.244.69.73"],"X-Forwarded-For":["84.244.69.73, 213.188.209.3"],"Fly-Forwarded-Port":["443"],"X-Forwarded-Port":["443"],"Fly-Request-Id":["01FD2D1TTMRCE61V8B082Q31XE"],"Via":["1.1 fly.io"],"Fly-Dispatch-Start":["t=1628947147604283;instance=d6b74b0f"],"Accept":["*/*"],"Content-Length":["146"],"Fly-Forwarded-Ssl":["on"],"Fly-Forwarded-Proto":["https"],"X-Forwarded-Proto":["https"],"X-Forwarded-Ssl":["on"],"Fly-Region":["fra"],"User-Agent":["python-requests/2.25.1"],"Accept-Encoding":["gzip, deflate"],"X-Request-Start":["t=1628947147604219"],"Content-Type":["application/json"]}},"common_log":"185.40.232.122 - - [14/Aug/2021:13:19:07 +0000] \"POST /api/auth/agents/authorize HTTP/1.1\" 502 0","duration":0.053964321,"size":0,"status":502,"resp_headers":{"Server":["Caddy"]}}
2021-08-14T13:19:07.801205478Z app[d6b74b0f] lhr [info] {"level":"debug","ts":1628947147.7860308,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"payments.internal:8080","request":{"remote_addr":"185.40.232.122:40432","proto":"HTTP/1.1","method":"POST","host":"payments.paypack.rw","uri":"/api/auth/agents/authorize","headers":{"Content-Length":["146"],"Fly-Forwarded-Port":["443"],"X-Forwarded-Port":["443"],"Via":["1.1 fly.io"],"Accept-Encoding":["gzip, deflate"],"Fly-Client-Ip":["84.244.69.73"],"Fly-Dispatch-Start":["t=1628947147738915;instance=d6b74b0f"],"Accept":["*/*"],"Content-Type":["application/json"],"X-Forwarded-Proto":["https"],"Fly-Request-Id":["01FD2D1TYTQ6SGR3DEVMW4DNV5"],"X-Forwarded-For":["84.244.69.73, 213.188.209.3, 185.40.232.122"],"Fly-Forwarded-Proto":["https"],"Fly-Forwarded-Ssl":["on"],"X-Forwarded-Ssl":["on"],"Fly-Region":["fra"],"User-Agent":["python-requests/2.25.1"],"X-Request-Start":["t=1628947147738810"]}},"duration":0.038522101,"error":"dial tcp: lookup payments.internal on [fdaa::3]:53: no such host"}
2021-08-14T13:19:07.812699517Z app[d6b74b0f] lhr [info] {"level":"error","ts":1628947147.7861497,"logger":"http.log.error.log0","msg":"dial tcp: lookup payments.internal on [fdaa::3]:53: no such host","request":{"remote_addr":"185.40.232.122:40432","proto":"HTTP/1.1","method":"POST","host":"payments.paypack.rw","uri":"/api/auth/agents/authorize","headers":{"Accept-Encoding":["gzip, deflate"],"Content-Length":["146"],"Fly-Forwarded-Port":["443"],"X-Forwarded-Port":["443"],"Via":["1.1 fly.io"],"Accept":["*/*"],"Content-Type":["application/json"],"Fly-Client-Ip":["84.244.69.73"],"Fly-Dispatch-Start":["t=1628947147738915;instance=d6b74b0f"],"X-Forwarded-Proto":["https"],"Fly-Request-Id":["01FD2D1TYTQ6SGR3DEVMW4DNV5"],"User-Agent":["python-requests/2.25.1"],"X-Request-Start":["t=1628947147738810"],"X-Forwarded-For":["84.244.69.73, 213.188.209.3"],"Fly-Forwarded-Proto":["https"],"Fly-Forwarded-Ssl":["on"],"X-Forwarded-Ssl":["on"],"Fly-Region":["fra"]}},"duration":0.038726511,"status":502,"err_id":"nt86y43cp","err_trace":"reverseproxy.statusError (reverseproxy.go:852)"}
2021-08-14T13:19:07.823517418Z app[d6b74b0f] lhr [info] {"level":"error","ts":1628947147.786191,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"185.40.232.122:40432","proto":"HTTP/1.1","method":"POST","host":"payments.paypack.rw","uri":"/api/auth/agents/authorize","headers":{"Accept":["*/*"],"Content-Type":["application/json"],"Fly-Client-Ip":["84.244.69.73"],"Fly-Dispatch-Start":["t=1628947147738915;instance=d6b74b0f"],"X-Forwarded-Proto":["https"],"Fly-Request-Id":["01FD2D1TYTQ6SGR3DEVMW4DNV5"],"X-Forwarded-Ssl":["on"],"Fly-Region":["fra"],"User-Agent":["python-requests/2.25.1"],"X-Request-Start":["t=1628947147738810"],"X-Forwarded-For":["84.244.69.73, 213.188.209.3"],"Fly-Forwarded-Proto":["https"],"Fly-Forwarded-Ssl":["on"],"Via":["1.1 fly.io"],"Accept-Encoding":["gzip, deflate"],"Content-Length":["146"],"Fly-Forwarded-Port":["443"],"X-Forwarded-Port":["443"]}},"common_log":"185.40.232.122 - - [14/Aug/2021:13:19:07 +0000] \"POST /api/auth/agents/authorize HTTP/1.1\" 502 0","duration":0.038726511,"size":0,"status":502,"resp_headers":{"Server":["Caddy"]}}
2021-08-14T13:19:07.834156373Z app[d6b74b0f] lhr [info] {"level":"error","ts":1628947147.786191,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_addr":"185.40.232.122:40432","proto":"HTTP/1.1","method":"POST","host":"payments.paypack.rw","uri":"/api/auth/agents/authorize","headers":{"Fly-Client-Ip":["84.244.69.73"],"Fly-Dispatch-Start":["t=1628947147738915;instance=d6b74b0f"],"Accept":["*/*"],"Content-Type":["application/json"],"X-Forwarded-Proto":["https"],"Fly-Request-Id":["01FD2D1TYTQ6SGR3DEVMW4DNV5"],"X-Forwarded-For":["84.244.69.73, 213.188.209.3"],"Fly-Forwarded-Proto":["https"],"Fly-Forwarded-Ssl":["on"],"X-Forwarded-Ssl":["on"],"Fly-Region":["fra"],"User-Agent":["python-requests/2.25.1"],"X-Request-Start":["t=1628947147738810"],"Content-Length":["146"],"Fly-Forwarded-Port":["443"],"X-Forwarded-Port":["443"],"Via":["1.1 fly.io"],"Accept-Encoding":["gzip, deflate"]}},"common_log":"185.40.232.122 - - [14/Aug/2021:13:19:07 +0000] \"POST /api/auth/agents/authorize HTTP/1.1\" 502 0","duration":0.038726511,"size":0,"status":502,"resp_headers":{"Server":["Caddy"]}}