luctus
June 11, 2025, 8:21pm
1
Hey there!
My app is hosted in LHR. It has the basic “Sign in with Google” and it also consumes the Google Analytics API.
It has been working perfectly fine for more than 1 year but today all the connections to Google has stopped responding. Even the sign in is taking ages!
I just checked that yesterday there was a network issue in LHR but it says it has been solved.
The errors I’m getting are like this:
Net::OpenTimeout (Failed to open TCP connection to accounts.google.com:443
Do you have any insights?
Thanks!
luctus
June 11, 2025, 11:44pm
3
To add information here, I just added a little script on my app:
def index
@checks = {
"Google Accounts": can_connect?("accounts.google.com", 443),
"Google Analytics Admin": can_connect?("analyticsadmin.googleapis.com", 443),
"Google Analytics Data": can_connect?("analyticsdata.googleapis.com", 443)
}
end
private
def can_connect?(host, port, timeout_sec = 5)
Timeout.timeout(timeout_sec) do
socket = TCPSocket.new(host, port)
socket.close
true
end
rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH, SocketError, Timeout::Error
false
end
If I run this on my local machine, the three domains pass the check instantly, but if I then run this in production (LHR), they fail randomly.
1 Like
halfer
June 12, 2025, 11:25am
4
Would you shell into your machine and try a ping or nslookup from the shell? I assume it will produce the same result, but it’s worth a confirmation.