Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 19361
86
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!