Apache Proxy Error Reading From Remote Server Returned By
Contents |
Start 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 (20014)internal error proxy error reading status line from remote server About Us Learn more about Stack Overflow the company Business Learn more about ah01102 error reading status line from remote server hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is proxy-initial-not-pooled a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best
Proxy Error Reading From Remote Server Returned By Tomcat
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 22 Apache is receiving requests at port :80 and proxying them to Jetty at port :8080 The proxy server received an invalid response from an upstream server The proxy server could not handle the ah00898: error reading from remote server returned by 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 ProxyTimeout 600 ## I have tried this, does not help NameVirtualHost *:80
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and error reading status line from remote server localhost policies of this site About Us Learn more about Stack Overflow the company
Setenv Proxy-initial-not-pooled
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
(70007)the Timeout Specified Has Expired: Proxy: Error Reading Status Line From Remote Server
Badges Ask 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 http://serverfault.com/questions/185894/proxy-error-502-reason-error-reading-from-remote-server-with-apache-2-2-3-de minute: Sign up Apache Proxy Error up vote 7 down vote favorite 4 I am getting the following error intermittently on my server: **Proxy Error** The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading from remote server The error logs show the following: [Sun Feb 06 http://stackoverflow.com/questions/4924377/apache-proxy-error 03:06:00 2011] [error] [client 82.43.154.57] proxy: Error reading from remote server returned by /login, referer: https://demo.XXXXX.us/ [Sun Feb 06 03:06:30 2011] [error] [client 82.43.154.57] (70007)The timeout specified has expired: proxy: error reading status line from remote server XXXXX.us [Sun Feb 06 03:06:30 2011] [error] [client 82.43.154.57] proxy: Error reading from remote server returned by / [Sun Feb 06 03:13:31 2011] [error] [client 82.43.154.57] (70007)The timeout specified has expired: proxy: error reading status line from remote server XXXXX.us [Sun Feb 06 03:13:31 2011] [error] [client 82.43.154.57] proxy: Error reading from remote server returned by / I have read a lot of posts suggesting connection timeout settings in tomcat and environment settings in Apache. I have set the following in httpd.conf:
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 the company http://stackoverflow.com/questions/169453/bad-gateway-502-error-with-apache-mod-proxy-and-tomcat Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, https://community.bitnami.com/t/proxy-timeout-occur-when-trying-to-export-very-long-issues-list-into-csv/29318 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 running a web app on error reading 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 pushing 2400 users via JMeter against the from remote server 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 not sure) that this is because while Apache is waiting for a response fro
proxy server received an invalid response from an upstream server.The proxy server could not handle the request GET /redmine/projects/censored/issues.csv. Reason: Error reading from remote server The apache error.log have this lines regarding this error: [Mon Jan 12 18:12:29.692419 2015] [proxy_http:error] [pid 4292:tid 1244] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : [client censored] AH01102: error reading status line from remote server 127.0.0.1:3002, referer: http://redmine-srv/redmine/projects/censored/issues?per_page=500&query_id=823 [Mon Jan 12 18:12:29.692419 2015] [proxy:error] [pid 4292:tid 1244] [client censored] AH00898: Error reading from remote server returned by /redmine/projects/censored/issues.csv, referer: http://redmine-srv/redmine/projects/censored/issues?per_page=500&query_id=823 I understand that this might be fixed by setting a higher timeout limit value somewhere on the apache configuration, but I'm not sure how and where. My setup is 'Bitnami redmine stack version 2.6.0-3',Running on Windows server 2008R2: Environment: Redmine version 2.6.0.stable Ruby version 2.0.0-p594 (2014-10-27) [i386-mingw32] Rails version 3.2.19 Environment production Database adapter Mysql2SCM: Mercurial 2.6.3 Filesystem Redmine plugins: redmine_watcher_groups 0.0.3git Thanks in advance!Eitan beltran1 2015-01-12 23:12:28 UTC #2 Could you try to do the same from http://localhost:3001/redmine ? It seems a timeout issue because Apache. With this test you can see if it is necessary to increase the timeout for Apache or it is related to Rails Thin server. eharshosh 2015-01-13 08:18:12 UTC #3 First of all, thanks for your quick response When I run locally on the server as you advised, It takes a while but it completes.Sounds like Apache configuration...Can you please guide me on what setting should I change? I thought about changing the time