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:

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.

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:

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

Use of uWSGI protocol is much more common for Django.
The uWSGI project — uWSGI 2.0 documentation

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.org/en/donation.html

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

“Django doesn’t support uwsgi”

How to use Django with uWSGI | Django documentation | Django
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.org/en/donation.html

“Django doesn’t support uwsgi”

Regards

Posted at Nginx Forum: