Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 1736 invoked from network); 17 Mar 2010 16:40:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 16:40:04 -0000 Received: (qmail 5808 invoked by uid 500); 17 Mar 2010 16:40:01 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 5788 invoked by uid 500); 17 Mar 2010 16:40:01 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 5780 invoked by uid 99); 17 Mar 2010 16:40:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 16:40:00 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of leon.kikora@gmail.com designates 209.85.218.210 as permitted sender) Received: from [209.85.218.210] (HELO mail-bw0-f210.google.com) (209.85.218.210) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 16:39:54 +0000 Received: by bwz2 with SMTP id 2so1212903bwz.10 for ; Wed, 17 Mar 2010 09:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=UuZkkQpPSbUEuDb1oR38iZo+znNLEGJtgxtamZqT0Qo=; b=bYRYS6Uwu8P0thURV0/sHXPOT8KST1w0f198K2/2Vd8dmHYKkBUuv77IVjB3lX6axi 3UbvgH8h0YqpNakuUHffwpHn504laWOtU1v750ow+zXwLHd+SxZoCr7QHZRwqdJK3FGX xtJ1V5ZkImrvGvTxNms6dAGxCQgPB/8J6ghg0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=yG+xIpmrOZ/tUp8QGS+MprqXXoQptShkW87MptLe/VV551FVx6dt/JGLMwgz6zf8cu htkWxWOjBONoefhRnIN08DFOYF+fXGJoIWokHZyUtzIgwqJlw+q2AAEdR8YlVz8q7UCk yJ9HIebXACQlJs4X5h7dFwPV0YM/CKuUf2Kl4= MIME-Version: 1.0 Sender: leon.kikora@gmail.com Received: by 10.204.146.148 with SMTP id h20mr1338111bkv.185.1268843972430; Wed, 17 Mar 2010 09:39:32 -0700 (PDT) Date: Wed, 17 Mar 2010 17:39:32 +0100 X-Google-Sender-Auth: 238e24c939829793 Message-ID: <5bea0bb81003170939v7ef1e10bjc9f60b1c304ccc22@mail.gmail.com> From: Leon Ljunggren To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Got error "proxy: pass request body failed", after restart of apache2 it works again Hi, I'm using Apace 2 as a reverse proxy for my Tomcat 5.5 server, redirecting https requests on port 443 to tomcats 8443 (as well as url remapping). The setup has been running well for months but suddenly started producing errors "Unknown error 502: proxy: pass request body failed". The load when this happened was much larger than usual, but would still be considered light (some 200 users) by most standards. The problem went away when I restarted the apache service (I did not restart tomcat or anything else). The only logs showing anything was the apache error log (see below), nothing showed up in the tomcat or system logs. What could be the cause of this, and how would I stop it from happening again (will provide further details below)? I've tried searching the archives for this list and googeling it, and while there are many reports of similar errors I could not find one that could explain what and why it happened. The closest I could find had the most likely culprit as being a expired certificate, but since things started working for me again after apace restart I can't see how that could be the cause of my problems (none of my certificates should expire until summer). Thanks for your attention Leon Ljunggren Technical details: System: Ubuntu 9.04, 2.6.28-11-server Apache/2.2.11 (Ubuntu) Tomcat 5.5.26.0 /var/log/apache2/error.log: [Wed Mar 17 12:53:18 2010] [debug] proxy_util.c(1820): proxy: worker http://tom.kikora.no:8180/kikoraweb2/ already initialized [Wed Mar 17 12:53:18 2010] [debug] proxy_util.c(1897): proxy: initialized worker 1 in child 24989 for (tom.kikora.no) min=0 max=25 smax=25 [Wed Mar 17 12:56:15 2010] [debug] proxy_util.c(1801): proxy: grabbed scoreboard slot 1 in child 27299 for worker http://tom.kikora.no:8180/kikoraweb2/ [Wed Mar 17 12:56:15 2010] [debug] proxy_util.c(1820): proxy: worker http://tom.kikora.no:8180/kikoraweb2/ already initialized [Wed Mar 17 12:56:15 2010] [debug] proxy_util.c(1897): proxy: initialized worker 1 in child 27299 for (tom.kikora.no) min=0 max=25 smax=25 [Wed Mar 17 12:56:15 2010] [error] (502)Unknown error 502: proxy: pass request body failed to 91.205.184.26:8443 (login.kikora.no) [Wed Mar 17 12:56:15 2010] [error] proxy: pass request body failed to 91.205.184.26:8443 (login.kikora.no) from 193.156.194.5 () [Wed Mar 17 12:56:19 2010] [error] (502)Unknown error 502: proxy: pass request body failed to 91.205.184.26:8443 (login.kikora.no) [Wed Mar 17 12:56:19 2010] [error] proxy: pass request body failed to 91.205.184.26:8443 (login.kikora.no) from 91.205.185.76 () The error entries kept on like that for a few hours till I was made aware of the problem and restarted the service. /etc/apache2/sites-enabled/login.kikora.no: ServerAdmin webmaster@localhost ServerName login.kikora.no RewriteEngine On RewriteRule ^/(.*) https://login.kikora.no/$1 # [R=301, L] ServerName login.kikora.no ServerAlias https://login.kikora.no DocumentRoot /var/www/ Header edit Set-Cookie "^(.*; Path=/)(.*)" $1 SSLEngine on SSLProxyEngine on SSLCertificateFile /etc/apache2/ssl/login.kikora.no/login.kikora.no.crt SSLCertificateKeyFile /etc/apache2/ssl/login.kikora.no/login.kikora.no.key_nopass ProxyRequests off # ProxyPreserveHost on ProxyPass / https://login.kikora.no:8443/kikoraweb2/ ProxyPassReverse / https://login.kikora.no:8443/kikoraweb2/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org