Welcome! Log In Create A New Profile

Advanced

Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Denis Papathanasiou
January 08, 2014 08:16PM
I've installed nginx via apt, using the nginx stable pkg as described here:
http://nginx.org/en/linux_packages.html#stable

It works perfectly for serving static files using the default configuration.

Next, I installed uwsgi from source, as described here:
https://pypi.python.org/pypi/uWSGI/1.2.3

When I do the steps in the python quickstart guide --
http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html -- and open
my browser to localhost:9090, everything works as expected.

When I change the nginx config file to use uwsgi_pass to localhost:9090 as
described here --
http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html#putting-behind-a-full-webserver--
however, I get time out errors:

> upstream timed out (110: Connection timed out) while reading response
header from upstream

It is as though nginx is *not* passing those requests to the uwsgi process
(which is still running).

Here is the content of server{ } inside the nginx config file:

location / {
include uwsgi_params;
uwsgi_pass localhost:9090;
}

Any ideas on what the problem might be?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Denis Papathanasiou January 08, 2014 08:16PM

Re: Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Maxim Dounin January 09, 2014 10:04AM

Re: Time out errors using uwsgi with ngnix on debian 7 (wheezy)

Denis Papathanasiou January 09, 2014 12:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready