• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Greenhorn
Posts: 9
Postgres Database Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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




 
Saloon Keeper
Posts: 28316
207
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I'm so happy! And I wish to make this tiny ad happy too:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic