You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/05/17 15:33:41 UTC

DO NOT REPLY [Bug 47207] New: mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

https://issues.apache.org/bugzilla/show_bug.cgi?id=47207

           Summary: mod_proxy_balancer + mod_proxy_http does not consider
                    500 responses "Err"
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_balancer
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Bjorn.Wiberg@its.uu.se


500 Internal Server Errors reported by backend server get forwarded to client;
the balancer does not flag the failing balancer member with the "Err" flag but
instead continues to try to use it leaving it at "Ok" status. Should this
really be so?

500 errors show up in both frontend and backend Apache logs.


Topology is:

FRONTEND: Apache + mod_proxy + mod_proxy_balancer + mod_proxy_http --> BACKEND:
Apache + mod_proxy + mod_proxy_http --> BACKEND: Tomcat Coyote --> the
application


Configuration is (FRONTEND):

      ProxyPass /infoglueCMS balancer://admin_cluster/infoglueCMS
stickysession=JSESSIONID
      ProxyPass /infoglueDeliverWorking
balancer://admin_cluster/infoglueDeliverWorking stickysession=JSESSIONID
      ProxyPass /infoglueDeliverPreview
balancer://admin_cluster/infoglueDeliverPreview stickysession=JSESSIONID
      <Proxy balancer://admin_cluster>
        BalancerMember http://10.0.1.11 keepalive=on route=admin1_1

        # For monitoring/administrative purposes ONLY
        # redirect parameter *should* be enough to redirect all new sessions to
the desired worker, but is not (bug?), so we add lbset > 0 (default) as well
        BalancerMember http://10.0.2.11 keepalive=on route=admin2_1
redirect=admin1_1 lbset=1
      </Proxy>

Configuration is (BACKEND):

      ProxyPass / http://127.0.0.1:8080/ keepalive=on
      ProxyPassReverse / http://127.0.0.1:8080/

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207





--- Comment #6 from Bj <Bj...@its.uu.se>  2009-05-19 04:56:47 PST ---
Answering one of my own questions -- no, mod_proxy_balancer does not seem to
consider neither 500 nor 503 a severe enough error that the backend gets the
"Err" flag set.

Only a connection failure (backend HTTP server not listening), and possibly a
somehow interrupted connection, results in the Err flag.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207


Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #4 from Nick Kew <ni...@webthing.com>  2009-05-17 07:58:29 PST ---
Any HTTP response means a a backend that's up-and-running.  500 might mean, for
example, you're testing some newly-installed script and it bombed out.

What exactly are you asking for?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207





--- Comment #3 from Bj <Bj...@its.uu.se>  2009-05-17 06:36:14 PST ---
The question appears to have been raised on the httpd-users mailing list a
couple of years ago, but I could not find any answer.

http://mail-archives.apache.org/mod_mbox/httpd-users/200709.mbox/%3C29FB0BFB91D3104A9415ABC902354492049C8230@MBIXCHG2.moody.edu%3E

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207

Daniel Ruggeri <DR...@primary.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |DRuggeri@primary.net

--- Comment #8 from Daniel Ruggeri <DR...@primary.net> 2010-03-30 18:50:53 UTC ---
Hello;
   While this does not exactly match what you are describing, I have created a
patch that does similar things but is directly controlled by the ServerAdmin:
https://issues.apache.org/bugzilla/show_bug.cgi?id=48939

   Please try it out and let me know if it is useful to you. Consider posting
any test cases you have in that patch.

After patching, add this to your balancers (I use ProxySet) to force all 500
errors to be an error:
ErrorOnStatus=500,501,502,503,504,505

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207

Bj <Bj...@its.uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.apache.org/b
                   |                            |ugzilla/show_bug.cgi?id=489
                   |                            |39

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207





--- Comment #5 from Bj <Bj...@its.uu.se>  2009-05-17 10:52:09 PST ---
If possible, I would like mod_proxy_balancer to consider any 50x status code
from the backend (here, an HTTP backend via mod_proxy_http) an error, such that
the BalancerMember gets the Err status. (Retry attempts and intervals can
already be configured.) Perhaps a configuration directive for status codes that
should be considered errors by the balancer manager?

This leads to a question -- does mod_proxy_balancer + mod_proxy_http consider
anything but a connection failure (connection refused or closed in the middle
of the request) an error such that the Err flag gets set? What about a 503
response from the backend?

(If it does consider 503 as a severe enough error that it raises the Err flag,
then perhaps I could compose a work-around transforming 500 to 503 using
mod_rewrite on the backend -- although I do admit that this is not a clean or
appealing work-around, that its use is limited, and that 500 usually does fill
a much valid purpose -- to tell what went wrong, although it seldom does.)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #10 from Nick Kew <ni...@webthing.com> 2010-04-01 22:52:46 UTC ---


*** This bug has been marked as a duplicate of bug 48939 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207

--- Comment #9 from Bj <Bj...@its.uu.se> 2010-03-31 15:31:38 UTC ---
(In reply to comment #8)
> Hello;
>    While this does not exactly match what you are describing, I have created a
> patch that does similar things but is directly controlled by the ServerAdmin:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48939
> 
>    Please try it out and let me know if it is useful to you. Consider posting
> any test cases you have in that patch.
> 
> After patching, add this to your balancers (I use ProxySet) to force all 500
> errors to be an error:
> ErrorOnStatus=500,501,502,503,504,505

Thank you Daniel. This sounds just like what I was looking for.

I'm currently bound to the RHEL5 Apache 2.2 releases but would very much like
to see this in future Apache releases (which eventually will propagate to
RHEL).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207





--- Comment #2 from Bj <Bj...@its.uu.se>  2009-05-17 06:35:15 PST ---
Using 2.2.3 bundled with RHEL5.3 Server x86_64. If you know that this has
changed in any newer versions, please let me know. Thanks.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207


Bj <Bj...@its.uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207


Bj <Bj...@its.uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Bjorn.Wiberg@its.uu.se




--- Comment #1 from Bj <Bj...@its.uu.se>  2009-05-17 06:34:16 PST ---
Added myself to Cc.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47207] mod_proxy_balancer + mod_proxy_http does not consider 500 responses "Err"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47207

Edward <ed...@igindex.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |edward.quick@igindex.co.uk

--- Comment #7 from Edward <ed...@igindex.co.uk> 2010-03-10 15:58:03 UTC ---
I have run into this problem myself.

http://osdir.com/ml/users/2010-03/msg03537.html

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org