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

Mailing List Archive: Cherokee: dev

Issue 504 in cherokee: 504 Gateway error

 

 

First page Previous page 1 2 Next page Last page  View All Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Jun 23, 2009, 9:37 AM

Post #1 of 40 (3317 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 29, 2009, 4:31 PM

Post #2 of 40 (3160 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 30, 2009, 9:17 AM

Post #3 of 40 (3143 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 18, 2009, 3:03 PM

Post #4 of 40 (3124 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 18, 2009, 3:09 PM

Post #5 of 40 (3118 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 21, 2009, 6:27 AM

Post #6 of 40 (3106 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 24, 2009, 7:45 PM

Post #7 of 40 (3112 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:00 AM

Post #8 of 40 (3092 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:17 AM

Post #9 of 40 (3092 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 1:14 AM

Post #10 of 40 (3100 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:21 PM

Post #11 of 40 (3092 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 12:25 PM

Post #12 of 40 (3087 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 3:23 PM

Post #13 of 40 (3096 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 4:11 PM

Post #14 of 40 (3088 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
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 25, 2009, 7:10 PM

Post #15 of 40 (3092 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
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 11, 2010, 4:33 PM

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

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

@jjamor: Do you still have this problem?


--
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
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 12, 2010, 12:40 AM

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

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

I am running cherokee 0.99.41 since 2010-01-26 and I did not need to
restart it
since then. However sometimes previous versions worked normally a month or
so and
then started to serve 5xx errors until it is restarted. I'd wait some weeks
more
before closing this issue.

--
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
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Feb 12, 2010, 12:47 AM

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

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

Great! Thanks for the follow up ;)

--
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
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jun 7, 2010, 7:46 AM

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

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

It seems this was finally fixed in February. Can anybody confirm it so we
can close
the bug? Thanks guys.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jul 12, 2010, 3:17 AM

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

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

I think I'm suffering this issue now. With a fresh Drupal install, going
through the installation steps ends up in a 504 when adding
the 'Administrator account' (last step). After that, the Drupal install is
available though. But when I try to register a new account, I end up with a
504 after the submit. The error log doesn't show anything. I will provide a
trace in a few minutes.

Software and versions:
Cherokee 1.0.5 (from source)
Drupal 6.17 (used the Cherokee-admin wizard to configure it)
Ubuntu Linux (10.04, aptitude updated just today)
php-cgi -v:
PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cgi-fcgi)

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jul 12, 2010, 4:00 AM

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

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

@hendriks.luuk: so, it took ~30 seconds until the error message showed up,
didn't it?

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jul 12, 2010, 5:13 AM

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

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

Indeed, I checked it with another user registration attempt, it took 30
seconds before the 504 showed up.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Jul 22, 2010, 12:30 AM

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

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

I tried the same thing on CentOS with Cherokee 1.0.0 (from the EPEL repo)
and PHP 5.2 (from Utter-ramblings). No 504 with that configuration!

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Aug 25, 2010, 5:08 AM

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

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

I'm having the same issue when performing a long operation (downloading and
adding user avatars to databasse). The task itself (PHP) finishes, but the
webserver gives up after almost exactly 30 seconds (with the infamous 504
Gateway timeout error)

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

Aug 25, 2010, 5:12 AM

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

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

Oh, using Cherokee 1.08 on OS X 10.6.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

First page Previous page 1 2 Next page Last page  View All Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.