This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Bad Gateway The proxy server received an invalid response from an upstream server  RSS feed

 
Greenhorn
Posts: 9
Java Postgres Database Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error, while accessing the site hosted in Microsoft Azure Virtual Server after waiting for few minutes.



502 Bad Gateway The proxy server received an invalid response from an upstream server.



**The most confusing part is that, if we refresh the page, it works perfectly fine and loads very fast**



The following is the configuration:





Apache workers conf:





The following is the lines from the log file




 
Bartender
Posts: 19725
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that there's 2 primary ways to get that message. One is when you're confusing SSL and non-SSL on the proxy channel.

The other would be what appears to be hurting you. It looks like the handshaking is failing due to timeouts.

Check the VM and Tomcat to ensure that you have enough memory allocated. If the VM paging rate is high, timeouts are a consequence.

You can also have timeouts if the VM itself is being starved of resources, but that's a lot harder to diagnose from an internal point of view.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!