Error Reading From Socket Apache
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 proxy error reading from remote server returned by apache Stack Overflow the company Business Learn more about hiring developers or posting ads with the proxy server received an invalid response from an upstream server. apache us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is apache proxytimeout a community of 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 ah01102: error reading status line from remote server favorite 14 We're 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,
502 Proxy Error Fix
so it's not thread-constrained. We're 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
here for a quick overview of the site Help Center Detailed answers to any questions you might
(20014)internal Error: Proxy: Error Reading Status Line From Remote Server
have Meta Discuss the workings and policies of this site the proxy server received an invalid response from an upstream server. apache reverse proxy About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting 502 proxy error apache reverse proxy 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 http://stackoverflow.com/questions/169453/bad-gateway-502-error-with-apache-mod-proxy-and-tomcat million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP Mongo Error reading from socket up vote 4 down vote favorite 1 The last couple of days, my error log has been filled with this error: send_package: error reading from socket: The socket is closed I really http://stackoverflow.com/questions/14249768/php-mongo-error-reading-from-socket don't know where this is coming from. It would seem that my MongoDB server is not opening the TCP socket, but I really am just guessing. Has anyone seen this error before or know how to handle it? The line generating the error is: $mongo = new Mongo("mongodb://user:pwd@host/db",array('timeout'=>6000)); I'm also occasionally getting in from within the Pimple DIC: class HurstDI extends \Pimple { public function __construct(){ $this['mongoUser'] = 'user'; $this['mongoPwd'] = 'pwd'; $this['mongoHost'] = "host/db"; $this['mongoTimeout'] = 6000; $this['mongodb'] = function($c){ return new \MongoClient("mongodb://{$c['mongoUser']}:{$c['mongoPwd']}@{$c['mongoHost']}"); }; } } php mongodb share|improve this question asked Jan 10 '13 at 2:06 adear11 830611 What are the logs from mongodb saying? does it restart from time to time? –hek2mgl Jan 10 '13 at 2:10 Well, I'd looked at the logs, but guess I didn't go back far enough. I'm seeing a lot of codeWed Jan 9 18:18:11 [initandlisten] connection accepted from 10.158.26.40:52664 #17298 Wed Jan 9 18:18:11 [initandlisten] connection refused because to
Status:Extension Module Identifier:proxy_module Source File:mod_proxy.c Summary Warning Do not enable proxying with ProxyRequests https://httpd.apache.org/docs/trunk/mod/mod_proxy.html until you have secured your server. Open proxy servers are dangerous both to your network and to the Internet at large. mod_proxy and http://tsplus.net/forum/viewtopic.php?t=3617 related modules implement a proxy/gateway for Apache HTTP Server, supporting a number of popular protocols as well as several different load balancing algorithms. Third-party error reading modules can add support for additional protocols and load balancing algorithms. A set of modules must be loaded into the server to provide the necessary features. These modules can be included statically at build time or dynamically via the LoadModule directive). The set must include: mod_proxy, which from remote server provides basic proxy capabilities mod_proxy_balancer and one or more balancer modules if load balancing is required. (See mod_proxy_balancer for more information.) one or more proxy scheme, or protocol, modules: ProtocolModule AJP13 (Apache JServe Protocol version 1.3)mod_proxy_ajp CONNECT (for SSL)mod_proxy_connect FastCGImod_proxy_fcgi ftpmod_proxy_ftp HTTP/0.9, HTTP/1.0, and HTTP/1.1mod_proxy_http SCGImod_proxy_scgi WS and WSS (Web-sockets)mod_proxy_wstunnel In addition, extended features are provided by other modules. Caching is provided by mod_cache and related modules. The ability to contact remote servers using the SSL/TLS protocol is provided by the SSLProxy* directives of mod_ssl. These additional modules will need to be loaded and configured to take advantage of these features. Topics Forward Proxies and Reverse Proxies/Gateways Basic Examples Access via Handler Workers Controlling Access to Your Proxy Slow Startup Intranet Proxy Protocol Adjustments Request Bodies Reverse Proxy Request Headers Directives BalancerGrowth BalancerInherit BalancerMembe
Installation and Setup Search How to configure Apache mod_proxy for use with TSPlus Get help with installation and setup problems Post Reply Print view Search Advanced search 6 posts • Page 1 of 1 EDV-Team Posts: 2 Joined: Thu Oct 29, 2015 7:54 am How to configure Apache mod_proxy for use with TSPlus Quote Postby EDV-Team » Thu Oct 29, 2015 9:27 am Hi!We want to use TSPlus behind an Apache 2.4 web-server with mod_proxy enabled.This is what we set in our Apache default-ssl.conf for our TSPlus host:Code: Select all
ServerName tsplus.mydomain.com
Redirect / https://tsplus.mydomain.com/
ProxyRequests off
ProxyPreserveHost on
ProxyPass / https://tsplus.mydomain.com/
ProxyPassReverse / https://tsplus.mydomain.com/
SSLEngine on
SSLProxyEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateKeyFile /etc/apache2/ssl/myserver.key
SSLCertificateFile /etc/apache2/ssl/myserver.crt
ErrorLog /var/log/apache2/tsplus-ssl-error.log
CustomLog /var/log/apache2/tsplus-ssl-access.log common
I can successfully connect with the HTML5 client to the TSPlus server, but when the RDP session is initiated all things are extremely slow!First it takes round about 5 Minutes till I see the Windows Desktop, when I start an application it also takes 5 minutes until I see it onthe remote session, and when I type in a user name or something like that, it also takes 5 minutes until I see what I was typing. In the Apache access.log I get this entries every few seconds:[29/Oct/2015:10:19:32 +0100] "GET /socket.io/xhr-polling/ea085b41-6b2c-43f0-890c-22910847638b/1446110387506 HTTP/1.1"