Hey,
Anyone seen this behavior? Any ideas on what to check?
As I said, I'm pretty sure something has changed with Cherokee between 0.99.20 to 0.99.21 that causes these "502 Bad Gateway" errors.
My server is a production server and I'm right now it's not quite working as it should... :-p
Yo'av2009/8/12 Yo'av Moshe <bje...@gmail.com>
Hey,
I updated to Cherokee 0.99.21 and then to .22 as soon as it was out, and I love the new status page and the graphs. Congratulations!
It seems that ever since the upgrade, I'm having various problems with Cherokee as a Reverse Proxy. I'm using Cherokee to serve a TurboGears application, and ever since 0.99.21 I get "502 Bad Gateway" all the time on certain pages. Most of these pages are where my TurboGears application is trying to redirect the browser, but I also have redirects that works.
I'm not sure what other information to provide, but I'm also having troubles to downgrade to 0.99.20 because my config file has 0.99.21+ specific keys now ("ERROR: Server parser: Unknown key "collector""), so basically my application isn't running too-good now... :(
Please help!
P.S.
Needless to to say, all these pages that I get "502 Bad Gateway" for are working perfectly when not connecting through the reverse proxy.
Also, my code hasn't changed, so these 2 things make me believe something got wrong with Cherokee... :-s
Thanks!
--
Yo'av Moshe
--
Yo'av Moshe
_______________________________________________
Cherokee mailing list
Cher...@lists.octality.com
http://lists.octality.com/listinfo/cherokee
On 13-ago-09, at 15:13, Miguel Angel wrote:
> I don't have any idea, but may be that could be related with the php-
> cgi behaviour alex is suffering.
I'll investigate it as soon as I finish some really urgent stuff I
must finish today.
Meanwhile, could you please check whether reverting the change-set
3488 helps?
--
Greetings, alo
http://www.alobbs.com/
Yo'av, don't know enough about your setup, sorry, joined list just today.
But, from some extensive testing I did few days ago, I know one thing.
Using UNIX sockets for communication between cherokee and php-cgi farm
is very fragile. At some point in time, under high load, php-cgi's
become unresponsive and cherokee starts retunring 504 Gateway timeout.
To make matters worse, the problem won't remedy itself, full restart
(cherokee + php-cgi) is required to fix it. Now, I don't know the cause
of the problem, it might be even in kernel (some race condition in
socket code under high load), php-cgi mechanism or the way cherokee
communicates with it...
What I do know is that using TCP/IP sockets for the communication (e.g.
127.0.0.1:9000, instead of /tmp/cherokee-php.socket) makes it much more
robust. And before anyone says that using TCP/IP is slower, I don't
think so, couldn't find any difference in speed, although I didn't
measure it extensively. It seems that localhost TCP/IP transport on
Linux is heavily optimized. But, my primary concern at this time is
robustness.
Anybody having gateway problems, try switching to TCP/IP communication,
you might be pleasantly surprised.
--
http://www.linuxinsight.com/
What is your backend web server (the one with python application) and
how are you connected to python interpreter? Don't know how Turbogears
operates, does it have built in HTTP server?
Also, when you get those gateway errors, is your backend server
functioning properly?
Yo'av Moshe wrote:What is your backend web server (the one with python application) and how are you connected to python interpreter? Don't know how Turbogears operates, does it have built in HTTP server?
Hey everyone!
I'm *not* using PHP anywhere...
My application is a TurboGears application, which is running it's on server and Cherokee is standing infront of it as a Reverse Proxy. For what it worth - it's a Python application.
Also, when you get those gateway errors, is your backend server functioning properly?
--
http://www.linuxinsight.com/
~/% svn co svn://svn.cherokee-project.com/cherokee/trunk@3488 cherokee-3488
svn: Can't connect to host 'svn.cherokee-project.com': Connection timed out
On 13-ago-09, at 15:13, Miguel Angel wrote:
I don't have any idea, but may be that could be related with the php-cgi behaviour alex is suffering.
I'll investigate it as soon as I finish some really urgent stuff I must finish today.
Meanwhile, could you please check whether reverting the change-set 3488 helps?
--
Greetings, alo
http://www.alobbs.com/
> ~/% svn co svn://svn.cherokee-project.com/cherokee/trunk@3488
> cherokee-3488
> svn: Can't connect to host 'svn.cherokee-project.com': Connection
> timed out
>
> I tried both on my server and locally...
> Is there any other way to get that revision? a tarball somewhere?
Are you DNS working?
$ svn co svn://svn.cherokee-project.com/cherokee/trunk@3488
cherokee-3488
A cherokee-3488/m4
....
--
Greetings, alo
http://www.alobbs.com/
_______________________________________________
On 13-ago-09, at 15:55, Yo'av Moshe wrote:
~/% svn co svn://svn.cherokee-project.com/cherokee/trunk@3488 cherokee-3488
svn: Can't connect to host 'svn.cherokee-project.com': Connection timed out
I tried both on my server and locally...
Is there any other way to get that revision? a tarball somewhere?
Are you DNS working? A cherokee-3488/m4
....
> No, DNS is working.
>
> 'ping svn.cherokee-project.com' works, and besides, every other
> thing on the internet works too. Maybe it's a firewall thing.
> I can't seem to find a way to check that specific revision.
>
> I tried to latest SVN checkout for the tarball and it didn't help.
> Any other idea?
Yeah, then I suppose the (outgoing) TCP port 3690 is blocked in your
network. It could be either your local firewall, your router/firewall
and any of its uplinks.
There have been a number of people using the SVN during the last days,
so the problem must be at your side. I wish I could help more..
http://lists.octality.com/pipermail/cherokee-commits/2009-August/thread.html
--
Greetings, alo
http://www.alobbs.com/
_______________________________________________
On 17-ago-09, at 22:54, Yo'av Moshe wrote:Yeah, then I suppose the (outgoing) TCP port 3690 is blocked in your network. It could be either your local firewall, your router/firewall and any of its uplinks.
No, DNS is working.
'ping svn.cherokee-project.com' works, and besides, every other thing on the internet works too. Maybe it's a firewall thing.
I can't seem to find a way to check that specific revision.
I tried to latest SVN checkout for the tarball and it didn't help.
Any other idea?
There have been a number of people using the SVN during the last days, so the problem must be at your side. I wish I could help more..
http://lists.octality.com/pipermail/cherokee-commits/2009-August/thread.html
On 19-ago-09, at 15:27, Yo'av Moshe wrote:
> I managed to get revision 3488 from another computer, and still, it
> doesn't work. I get a Bad Gateway error of Cherokee 0.99.21.
We are currently at revision 3573 - almost a hundled changes ahead.
Could you please test the latest trunk?
http://www.cherokee-project.com/download/trunk/
--
Greetings, alo
http://www.alobbs.com/
_______________________________________________
Hello Yo'av,We are currently at revision 3573 - almost a hundled changes ahead. Could you please test the latest trunk?
On 19-ago-09, at 15:27, Yo'av Moshe wrote:
I managed to get revision 3488 from another computer, and still, it doesn't work. I get a Bad Gateway error of Cherokee 0.99.21.
http://www.cherokee-project.com/download/trunk/
Yo'av
2009/8/19, Yo'av Moshe <bje...@gmail.com>:
--
Yo'av Moshe
On Wed, Aug 19, 2009 at 4:13 PM, Yo'av Moshe<bje...@gmail.com> wrote:
> Hey, I had no problem to get the latest trunk from the tarball, I didn't
> need to use SVN for that...
> I thought you wanted me to try that specific version... :-s
I think Álvaro says you that try trunk REVERTING changeset 3488 (3488
and 3489 actually). Here's how you can do it:
$ svn co svn://svn.cherokee-project.com/cherokee/trunk cherokee
$ cd cherokee/
$ svn merge -r 3489:3487 .
Or downloading the latest trunk from the tarball and applying the
attached patch.
Please, it'd be useful if you could give it a try.
>
> I'll try it in an hour and will let you know.
>
> Yo'av.
>
> 2009/8/19 Alvaro Lopez Ortega <alv...@alobbs.com>
>>
>> Hello Yo'av,
>>
>> On 19-ago-09, at 15:27, Yo'av Moshe wrote:
>>
>>> I managed to get revision 3488 from another computer, and still, it
>>> doesn't work. I get a Bad Gateway error of Cherokee 0.99.21.
>>
>>
>> We are currently at revision 3573 - almost a hundled changes ahead. Could
>> you please test the latest trunk?
>>
>> http://www.cherokee-project.com/download/trunk/
>>
>> --
>> Greetings, alo
>> http://www.alobbs.com/
>>
>
>
> --
> Yo'av Moshe
>
> _______________________________________________
> Cherokee mailing list
> Cher...@lists.octality.com
> http://lists.octality.com/listinfo/cherokee
>
>
--
Saludos:
Antonio Pérez
This is obviously a cherokee problem, and it started at 0.99.21.
I would love to supply any additional information about my setup.
Please help!
Yo'av.
--
Sent from Gmail for mobile | mobile.google.com
> I would love to supply any additional information about my setup.
Ok, let's try to refocus this whole issue.
Do you know how could I reproduce the issue locally? That'd be enough
for me to debug the problem.
--
Octality
http://www.octality.com/
On 14/10/2009, at 19:19, Yo'av Moshe wrote:Ok, let's try to refocus this whole issue.
I would love to supply any additional information about my setup.
Do you know how could I reproduce the issue locally? That'd be enough for me to debug the problem.
--
Octality
http://www.octality.com/