Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 504 in cherokee: 504 Gateway error

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Jun 23, 2009, 9:37 AM

Post #1 of 15 (180 views)
Permalink
Issue 504 in cherokee: 504 Gateway error

Status: New
Owner: ----

New issue 504 by plun...@areaindex.com: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

What steps will reproduce the problem?
1. Run Cherokee in reverse proxy mode
2. Randomly see 504 Gateway error even though backend server seems fine and
responsive.

What is the expected output? What do you see instead?
Expect to see content from the backend server behind Cherokee.

What version of the product are you using? On what operating system?
.99-19 Ubuntu 8.04

Please provide any additional information below.
Few items to improve with the 504 Gateway error:
1. Are we retrying the processing of the request more than once before
throwing this error?

2. Can we provide a user setting to provide a custom HTML screen should
such error occur?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2009, 4:31 PM

Post #2 of 15 (78 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #19 on issue 504 by skarcha: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

I just commited a patch (r3758:
http://svn.cherokee-project.com/changeset/3758) to
fix (yes, again... :( ) POST issues.

My previous patches (r3655 and r3657) were bad... sorry guys! I don't know
how my
tests works before I commited them.

Maybe it doesn't help with this bug, but some PHP software (like rgtui)
works without
504 errors now.

Anyone could give it a try?


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 30, 2009, 9:17 AM

Post #3 of 15 (71 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Updates:
Status: WaitingQA

Comment #20 on issue 504 by alobbs: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

Just uploaded a related QA test:


http://svn.cherokee-project.com/browser/cherokee/trunk/qa/231-POST-4extra.py


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 18, 2009, 3:03 PM

Post #4 of 15 (42 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #21 on issue 504 by mictlan: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

I don't know if this is the same issue, but I have laaaaarge php scripts, I
have this:

Linux arq-mpacheco 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC
2009
x86_64 GNU/Linux

Running:

Cherokee Web Server 0.99.27

I configured the php.ini of the cgi (e.j. max_execution_time=180), enough
for apache.

I try with two scripts:

<?php

sleep(15);

seems to work

<?php

sleep(20);

gets a 504 Gateway Timeout

what should I do?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 18, 2009, 3:09 PM

Post #5 of 15 (42 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #22 on issue 504 by mictlan: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

Sorry, my issue actually it's 499
(http://code.google.com/p/cherokee/issues/detail?id=499&can=1&q=gateway%20error)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 21, 2009, 6:27 AM

Post #6 of 15 (30 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #23 on issue 504 by alobbs: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

Bug 499 is most likely tightly related to this one:

http://code.google.com/p/cherokee/issues/detail?id=499

Could you please guys try to set a higher timeout in the FastCGI and SCGI
rules? Odds
are that will solve the issue, although I'm not certain. Some testing is
required..

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 24, 2009, 7:45 PM

Post #7 of 15 (15 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #24 on issue 504 by jjamor: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

I just discovered that my reverse proxy (cherokee 0.99.29) usually sends a
5xx
gateway timeout or bad gateway when trying to POST a big text (when editing
a wiki,
for example).



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:00 AM

Post #8 of 15 (15 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #25 on issue 504 by ste...@konink.de: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

Could this possibly be related to the maximum header length?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:17 AM

Post #9 of 15 (15 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Updates:
Status: Started

Comment #26 on issue 504 by alobbs: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

Something funny must be happening in the post manager. I'm checking it out
right away..

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 1:14 AM

Post #10 of 15 (15 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #27 on issue 504 by alobbs: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

@jjamor: A few days ago, I committed a few patches for adding custom
timeout support
to rule entries. That means, a specific rule can define a timeout value,
as it can
define a encoding method, o a handler plug-in.

The target was to allow PHP connections to last longer and the general
timeout limit,
so the server wouldn't reply a 504 error if the php-cgi was still (hanged)
processing
the request when the timeout limit was reached.

I've just realized that, you might be hitting that issue in the back-end
servers.
Depending on the wiki software processing speed, the back-end web server
might be
returning 504 errors whenever that process takes longer than the general
timeout
limit. In that case, the front-end proxy server would be just relying it to
the
outside world.

I have not probed that theory yet, but it makes good sense to me.

The best way to test it would be to add a custom timeout to the Extension
PHP rule of
the back-end servers. A 35 seconds value would be enough (since php.ini
sets 30
seconds of processing limit by default). Hopefully that will fix the issue.

Cherokee 0.99.30 will ship an improved version of the PHP wizard. It checks
the
php.ini file in order to figure the right timeout value. In that way it can
set the
right timeout value to the rule, so it does not return 504 errors when php
scripts
takes a "long" time to be executed (longer than the server-wide timeout
limit).

BTW, I'm talking about PHP, but the underlying idea applies to any other
scripting
language as well.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:21 PM

Post #11 of 15 (14 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #28 on issue 504 by jjamor: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

@alobbs, does this apply to my backend, which is using dokuwiki (python
w/fcgi, not
php)? in any case, I have tested to directly submitting the big POSTs to
the backend,
and the errors do not occur.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:25 PM

Post #12 of 15 (14 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #29 on issue 504 by jjamor: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

@alobbs, does this apply to my backend, which is using Moin (python w/fcgi,
not
php)? in any case, I have tested to directly submitting the big POSTs to
the backend,
and the errors do not occur.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 3:23 PM

Post #13 of 15 (14 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #30 on issue 504 by skarcha: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

@jjamor, I think you must apply to your backends and to the reverse proxy
rule on the
proxy server.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 4:11 PM

Post #14 of 15 (14 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #31 on issue 504 by jjamor: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

@alobbs, @skarcha: finally the backend was moved to apache, because it was
impossible
to get work it with the spawn-fcgi binary (see issue 591). However, the 5xx
errors
are still here but only when using the reverse proxy (with Cherokee).

I'm going to try compilation of the SVN version and test it ...

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 7:10 PM

Post #15 of 15 (14 views)
Permalink
Re: Issue 504 in cherokee: 504 Gateway error [In reply to]

Comment #32 on issue 504 by jjamor: 504 Gateway error
http://code.google.com/p/cherokee/issues/detail?id=504

Ok, compiled and setup a timeout of 60 seconds.

The problem still exists: sometimes the proxy server respond with a Bad
gateway
error. The response is immediate. By analyzing the logs, the backend server
always
responds correctly.

I'm going to switch the reverse proxy to apache until the problem is really
fixed.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.