The server encountered a temporary error and could not complete your request.Please try again in 30 seconds.
502 Bad Gateways are usually caused by an intermediary entity getting a bad response from the internal server. So, the error is technically being sent by the load balancer, but the actual issue is likely somewhere behind the scenes, whether it be the instance itself or a firewall issue. This[0] article does a great job explaining what 502’s are, & this[1] Stackoverflow thread addresses various 502 issues within GCP that were resolved.
What is the health check status of your instances? Are you able to track down which instance the 502 is coming from? Have you checked the HTTPS traffic from the log viewer? Also, if you can find out an instance that is producing these errors, check the logs of that machine & make sure it is functioning correctly. You can use a tool like Wireshark or tcpdump to check the traffic
[0] How to Solve 502 Bad Gateway Issues?: https://www.keycdn.com/support/502-bad-gateway/
[1] HTTPS Load Balancer in Google Container Engine: https://stackoverflow.com/questions/32188284/https-load-balancer-in-google-container-engineHave you checked the HTTPS traffic from the log viewer?
Hello James,
To view the load balancer monitoring graph, I think you need the Stackdriver monitoring viewer role, or Project viewer role per this document. If neither worked or you already have the roles/permissions, please open a private issuetracker report that includes a screenshot of the error, your account and project information for an investigation.
As for the logs mentioned, I believe Christian meant checking Stackdriver load balancer logs, but that is still in alpha and only available to select customers. The same applies to Stackdriver Monitoring per this document.
The server encountered a temporary error and could not complete your request.Please try again in 30 seconds.
Also, if you can find out an instance that is producing these errors, check the logs of that machine & make sure it is functioning correctly.
The server encountered a temporary error and could not complete your request.Please try again in 30 seconds.
Another incident happened about half an hour ago
Two instances started in the instance group. I found the instance I'd created with the last rolling update (a few hours ago), and it took nearly 20 minutes (and 2 or 3 retries) to get a terminal session on it. Once I did, I scp'd the catalina.out to a safe location where I could easily reach it. (It had some interesting stacktraces; I'm forwarding it to our Tomcat specialist.)
Meanwhile, of the two that had started, only one achieved "green light" status. The other just kept showing a throbber, and eventually the one that had shown a green light also went back to a throbber, and both of them eventually showed a yellow alert icon, with the following tooltip (sensitive information redacted):
Instance 'foo-cluster-01a-0p2w' creation failed: Code: '5684970836364578664'
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/6efcf2b8-e701-4130-838d-7257b103c02d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
We had an incident about that time, and was already mitigated. For more information, you can check Google Cloud Status Dashboard.