You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change made in 953cb29 to add proxy_next_upstream_tries 1; to our nginx config files has an unanticipated side effect: 50% of connections to loginServer and connectSever fail, because localhost is defined in /etc/hosts twice:
It seems that the backends consistently listen on 127.0.0.1, but nginx round-robins between 127.0.0.1 and ::1, and if it happens to pick the latter it fails.
Previously it would automatically retry these failed connections (and succeed on the second attempt) because proxy_next_upstream_tries defaulted to 2, but now they generate a 500 error (which in turn generates another error because loginServer and connectServer do not serve /static/503.html on their respective domains.
The text was updated successfully, but these errors were encountered:
The change made in 953cb29 to add
proxy_next_upstream_tries 1;
to ournginx
config files has an unanticipated side effect: 50% of connections tologinServer
andconnectSever
fail, becauselocalhost
is defined in/etc/hosts
twice:Debian 10:
macOS Catalina:
It seems that the backends consistently listen on
127.0.0.1
, butnginx
round-robins between127.0.0.1
and::1
, and if it happens to pick the latter it fails.Previously it would automatically retry these failed connections (and succeed on the second attempt) because
proxy_next_upstream_tries
defaulted to2
, but now they generate a 500 error (which in turn generates another error becauseloginServer
andconnectServer
do not serve/static/503.html
on their respective domains.The text was updated successfully, but these errors were encountered: