Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 20107
101
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.
 
Do not set lab on fire. Or this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!