Error 502 Proxy Error Apache
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta 502 proxy error tomcat Discuss the workings and policies of this site About Us Learn more 502 proxy error apache error reading from remote server about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault 502 proxy error apache reverse proxy Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign 502 proxy error dns lookup failure up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Proxy Error 502 “Reason: Error reading from remote server” with Apache 2.2.3 (Debian) mod_proxy and Jetty 6.1.18 up vote 46 down vote favorite 23 Apache is receiving requests at port :80 and proxying them
502 Proxy Error Reason Error Reading From Remote Server
to Jetty at port :8080 The proxy server received an invalid response from an upstream server The proxy server could not handle the request GET /. My dilemma: Everything works fine normally (fast requests, few seconds or few tens of seconds long requests are processed ok). Problems occur when request processing takes long (few minutes?). If I issue request instead directly to Jetty at port :8080 the request is processed OK. So problem is likely to sit somewhere between Apache and Jetty where I am using mod_proxy. How to solve this? I have already tried some "tricks" related to KeepAlive settings, without luck. Here is my current configuration, any suggestions? #keepalive Off ## I have tried this, does not help #SetEnv force-proxy-request-1.0 1 ## I have tried this, does not help #SetEnv proxy-nokeepalive 1 ## I have tried this, does not help #SetEnv proxy-initial-not-pooled 1 ## I have tried this, does not help KeepAlive 20 ## I have tried this, does not help KeepAliveTimeout 600 ## I have tried this, does not help ProxyTime
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
502 Proxy Error Openshift
this site About Us Learn more about Stack Overflow the company Business 502 proxy error chrome Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask 502 proxy error web service Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up http://serverfault.com/questions/185894/proxy-error-502-reason-error-reading-from-remote-server-with-apache-2-2-3-de What is 502 Proxy error? How to Resolve it up vote 2 down vote favorite When i try to login into Artifactory web appliaction ,its showing proxy error. The Error message is below. Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request POST /artifactory/webapp/login.html. Reason: Error reading from remote server Apache/2.2.15 http://stackoverflow.com/questions/29642042/what-is-502-proxy-error-how-to-resolve-it (CentOS) Server at XX.XX.XX.XX Port 80 Any Solution for this? apache tomcat artifactory share|improve this question asked Apr 15 '15 at 5:12 Anil Yadav 125112 Do you see any errors in the Artifactory log? how is your proxy configured? can you login Artifactory directly (bypassing the proxy)? –drorb Apr 15 '15 at 11:53 In error log also same error...connection time out..and proxy: Error reading from remote server returned by ............. –Anil Yadav Apr 15 '15 at 13:01 This looks like an error from an Apache log not Artifactory. I guess you have an Apache HTTPd server in front of Artifactory serving as a proxy. –drorb Apr 16 '15 at 6:25 Yes Drorb..I increased the timeout to 120 sec in httpd.conf . Now i m able to login. But the Artifactory appliaction is taking more than 100 sec to login...Is there any way to reduce this time. –Anil Yadav Apr 16 '15 at 6:33 This is not normal, should be much faster. I would start by making sure it has enough memory to run - jfrog.com/confluence/display/RTF/System+Requirements –drorb A
providing any support for the steps described on this page. Please be aware https://confluence.atlassian.com/confkb/occasional-502-bad-gateway-from-apache-http-proxy-200212803.html that this material is provided for your information only, and http://www.webratio.com/forum/question-details/502-proxy-error?link=ln27d that you use it at your own risk. Problem Users will occasionally receive an 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 502 proxy 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 502 proxy error 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.
to fix that? The proxy server received an invalid response from an upstream server. The proxy server could not handle the requestGET/. Reason:Error reading from remote server
x 0 Follow Answer Answer at this question and get points! 3 Answers most voted oldest newest 05 Feb '15, 07:26 AM Laurentiu Radu Forum Starter - Level 2 Hi, This error typically appearswhen Apache web server does not receive a valid HTTP response from the upstream server, which in this case is your Tomcat web application. If you are not using Apache HTTP Server and your are using only Tomcat the error may be generated due the following reasons: The Tomcat threads are timing out A network device is blocking the request, perhaps as some sort of connection timeout or DoS attack prevention system, or maybe a firewalll Tomcat may have crashed If you are using Apache, the solution is simple. Just edit thehttpd.conf file increasing the Timeout and ProxyTimeout values and adding theProxyBadHeader parameter. Timeout 3000 ProxyTimeout 3000 ProxyBadHeader Ignore More information you can find on Apache website (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html) Also, please tell us in which configuration this error apears (Apache-Tomcat, only Tomcat,Nginx-Tomcat, etc.) x 0 05 Feb '15, 08:04 AM jisu lim No Forum Badges Thank you for your answer soon. I just deployed my project on the cloud. x 0 10 Mar '15, 02:51 PM Alexander Marquez No Forum Badges hola tengo el mismo erro pero no tengo instalado apache, como valido el log de webratio? x 0 Your answer Answer at this question and get points!