Apache Proxy 502 Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow 502 proxy error tomcat the company Business Learn more about hiring developers or posting ads with us Stack 502 proxy error apache error reading from remote server Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
502 Proxy Error Apache Reverse Proxy
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Bad Gateway 502 error with Apache mod_proxy and Tomcat up vote 39 down vote favorite 14 We're
Apache Proxy Timeout 502
running a web app on Tomcat 6 and Apache mod_proxy 2.2.3. Seeing a lot of 502 errors like this: Bad Gateway! The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /the/page.do. Reason: Error reading from remote server If you think this is a server error, please contact the webmaster. Error 502 Tomcat has plenty of threads, so it's not thread-constrained. We're apache 503 error pushing 2400 users via JMeter against the app. All the boxes are sitting inside our firewall on a fast unloaded network, so there shouldn't be any network problems. Anyone have any suggestions for things to look at or try? We're heading to tcpdump next. UPDATE 10/21/08: Still haven't figured this out. Seeing only a very small number of these under load. The answers below haven't provided any magical answers...yet. :) java apache tomcat mod-proxy share|improve this question edited Oct 21 '08 at 19:45 community wiki 2 revsAlex Miller I am facing this problem for some time during my running application –Uday A. Navapara Mar 12 '15 at 5:27 add a comment| 7 Answers 7 active oldest votes up vote 32 down vote Just to add some specific settings, I had a similar setup (with Apache 2.0.63 reverse proxying onto Tomcat 5.0.27). For certain URLs the Tomcat server could take perhaps 20 minutes to return a page. I ended up modifying the following settings in the Apache configuration file to prevent it from timing out with its proxy operation (with a large over-spill factor in case Tomcat took longer to return a page): Timeout 5400 ProxyTimeout 5400 Some backgound ProxyTimeout alone wasn't enough. Looking at the documentation for Timeout I'm guessing (I'm no
providing any support for the steps described on this page. Please be aware
Apache 500 Error
that this material is provided for your information only, and bad gateway error 502 that you use it at your own risk. Problem Users will occasionally receive an the proxy server received an invalid response from an upstream server. apache reverse proxy error page reporting a "Bad gateway" condition. This means the proxy couldn't get a response from the application server. Cause This can result from http://stackoverflow.com/questions/169453/bad-gateway-502-error-with-apache-mod-proxy-and-tomcat a known issue in Apache, affecting versions 2.0.63 through to 2.2.3, and was marked as resolved with 2.2.4. Apache wasn't checking for one of the possible conditions for its connections to the application server, so would periodically (e.g. once in tens of thousands of requests) use a https://confluence.atlassian.com/confkb/occasional-502-bad-gateway-from-apache-http-proxy-200212803.html connection handle that had been reset by the application server. Resolution Upgrade to the latest version of Apache httpd. If you're using a web server compiled from source and have a strong reason not to upgrade, you also have the option of making a tiny edit to the source as described in one of the comments and recompiling. Was this helpful? Yes No Thanks for your feedback! Why was this unhelpful? It wasn't accurate It wasn't clear It wasn't relevant Submit feedback Cancel Have a question about this article? See questions about this article Powered by Confluence and Scroll Viewport Atlassian Support Ask the community Provide product feedback Contact technical support Atlassian Privacy Policy Terms of use Security Copyright © 2016 Atlassian Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.
♦ ♦ | Report Content as Inappropriate ♦ ♦ 502 proxy error Team, When I try to access an application using reverse proxy, most of the time I will end up with below error. Anybody have an idea what will be causing http://apache-http-server.18135.x6.nabble.com/502-proxy-error-td4758462.html the issue? After few refresh on the page I will get actual page but most of the times end up with below proxy error Proxy ErrorThe proxy server received an invalid response from an upstream server.The proxy server https://gitlab.com/gitlab-org/gitlab-ce/issues/841 could not handle the request GET /testingtool/. Reason: Error reading from remote server -------------------------------------------------------------------------------- Apache/2.2.3 (Fedora) Server at testingserver.test.com Port 443 Thanks, Isha Boyle, Owen Reply | Threaded Open this post in threaded view ♦ ♦ | 502 proxy Report Content as Inappropriate ♦ ♦ RE: 502 proxy error ________________________________ From: isha b [mailto:[hidden email]] Sent: Thursday, October 30, 2008 12:47 PM To: [hidden email]; [hidden email]; [hidden email] Subject: [users@httpd] 502 proxy error Team, When I try to access 502 proxy error an application using reverse proxy, most of the time I will end up with below error. Anybody have an idea what will be causing the issue? After few refresh on the page I will get actual page but most of the times end up with below proxy error Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /testingtool/. Reason: Error reading from remote server ------------------------------------------------------------------------ -------- Apache/2.2.3 (Fedora) Server at testingserver.test.com Port 443 Thanks, Isha Aoache is the proxy, is it? It could be the back-end server is not working reliably - what happens if you access it drectly? If it seems OK, how long does it take to respond? If it's a slow application it may take longer than apache is prepared to wait (see ProxyTimeout, KeepAlivetimeout) Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See
Issues 4,899 Merge Requests 386 Snippets Network Create a new issue Builds Commits Issue Boards Closed Open Issue #841 opened 2014-11-26 12:52:16 UTC by Nonau83@arnaud-grima Proxy Error[502] on web page with apache Hello everyone
I'm trying to install GitLab on my server, and I have this error when trying to reach the web page of gitlab :
Proxy Error
The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /users/sign_in.
Reason: Error reading from remote server
But, all the componants of gitlab are running normally, and the return of
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
showed no errors. (Unicorn is working)
So I think the problem come from Apache, but after tons of attemps, I could not figured out where the problem is.. So there is my apache conf for gitlab :
`
ServerName gitlab.domain.com
ServerSignature Off
ProxyPreserveHost On
ProxyPass / http://www.domain.fr:8080/ retry=1 acquire=3000 timeout=600 Keepalive=On
AllowEncodedSlashes NoDecode