Forum: NGINX unsupported FastCGI protocol - Django

Posted by michela (Guest)
on 2012-11-22 13:41
(Received via mailing list)
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
Posted by Igor Sysoev (Guest)
on 2012-11-22 14:05
(Received via mailing list)
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 "<html>".
This means that Django response is HTTP but not is FastCGI protocol.


--
Igor Sysoev
http://nginx.com/support.html
Posted by Wireless (Guest)
on 2012-11-23 19:36
(Received via mailing list)
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
Posted by Valentin V. Bartenev (Guest)
on 2012-11-23 20:33
(Received via mailing list)
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
Posted by Wireless (Guest)
on 2012-11-24 07:09
(Received via mailing list)
Posted by Valentin V. Bartenev (Guest)
on 2012-11-24 15:32
(Received via mailing list)
On Saturday 24 November 2012 10:09:19 Wireless wrote:
> "Django doesn't support uwsgi"
>
> https://docs.djangoproject.com/en/dev/howto/deploy...
> 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.