Unsupported FastCGI protocol - Django

I can no longer access my Django app via a nginx / fastcgi proxy on
Centos
5.7 after upgrading to Django 1.4.2

Upgrading nginx via yum didn’t solve the problem.

The error message in the logs is:

upstream sent unsupported FastCGI protocol version: 60 while reading
response header from upstream

There’s a thread in the Russian list on this error. Can any Russian
speakers
shed any light on this?

Thanks

Michela

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,233136,233136#msg-233136

On Nov 22, 2012, at 16:40 , michela wrote:

I can no longer access my Django app via a nginx / fastcgi proxy on Centos
5.7 after upgrading to Django 1.4.2

Upgrading nginx via yum didn’t solve the problem.

The error message in the logs is:

upstream sent unsupported FastCGI protocol version: 60 while reading
response header from upstream

60 is a code of “<” character and probably begin of “”.
This means that Django response is HTTP but not is FastCGI protocol.


Igor S.
http://nginx.com/support.html

Use of uWSGI protocol is much more common for Django.
http://projects.unbit.it/uwsgi/

Both NGINX and Django natively support this protocol.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,233136,233191#msg-233191

On Friday 23 November 2012 22:35:28 Wireless wrote:

Use of uWSGI protocol is much more common for Django.
http://projects.unbit.it/uwsgi/

Both NGINX and Django natively support this protocol.

Django doesn’t support uwsgi. You probably have confused it with wsgi.
It’s completely different thing.

wbr, Valentin V. Bartenev


http://nginx.com/support.html
http://nginx.org/en/donation.html

On Saturday 24 November 2012 10:09:19 Wireless wrote:

“Django doesn’t support uwsgi”

https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/#how-to-u
se-django-with-uwsgi

According to your link: “Configuring and starting the uWSGI server for
Django”.

It doesn’t mean that django supports the uwsgi protocol natively
(please, do not
confuse the uwsgi protocol with the uWSGI server).

To use FastCGI you need Flup or any other application server that talks
with
Django by WSGI and with nginx by FastCGI.

To use uwsgi you need uWSGI.

So there’s no difference.

wbr, Valentin V. Bartenev


http://nginx.com/support.html
http://nginx.org/en/donation.html

“Django doesn’t support uwsgi”

https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/#how-to-use-django-with-uwsgi

Regards

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,233136,233197#msg-233197

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs