Questions tagged [uwsgi]

Questions regarding uWSGI which is a full stack for building hosting services

The uWSGI project

The uWSGI project aims at developing a full stack for building hosting services.

Application servers (for various programming languages and protocols), proxies, process managers and monitors are all implemented using a common api and a common configuration style.

Thanks to its pluggable architecture it can be extended to support more platforms and languages.

Currently, you can write plugins in C, C++ and Objective-C.

The “WSGI” part in the name is a tribute to the namesake Python standard, as it has been the first developed plugin for the project.

Versatility, performance, low-resource usage and reliability are the strengths of the project (and the only rules followed).

Github Docs

346 questions
1
vote
1 answer

uWSGI Emperor new apps are not started immediately

I run uWSGI in Emperor mode. Everything is fine and works but if i add a new myapplication.ini uWSGI needs minutes to hours bevor recognize the change and starts a new app. The Documentation says nothing about a timing or monitoring frequenc…
monocult
  • 21
  • 4
1
vote
1 answer

What does uwsgi_socket_keepalive affect when using the uwsgi protocol?

I was looking at some options to optimize for nginx with a uwsgi upstream and noticed that at the end of the entry for keepalive the docs say: SCGI and uwsgi protocols do not have a notion of keepalive connections but there a parameter named…
lonetwin
  • 151
  • 5
1
vote
0 answers

How to run user installed app with uwsgi

How to run an app installed with pip install --user ? suppose I install this package as the Unix user py_user : pip install --user pkg and that I can import the app as following : from pkg.ws import app (suppose app a flask app) How do I setup…
hl037_
  • 267
  • 2
  • 10
1
vote
1 answer

uwsgi with flask and python3 conda environment is loading python2 instead

I'm trying to run a python3 flask web application with uwsgi. If I run /usr/bin/uwsgi --ini /var/www/QCQuan/uwsgi_config.ini --logto /tmp/log then uwsgi fails and the log file shows: Python version: 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC…
PDiracDelta
  • 181
  • 3
  • 8
1
vote
0 answers

Connection refused by Unix socket file

Having some trouble linking up Django + uWSGI + NGINX If I run the Django development server, the page works perfectly. If I run with: uwsgi --http 0.0.0.0:8134 --wsgi-file /test/test_project/wsgi.py and access it at localhost:8134 the site works…
user58446
  • 141
  • 2
  • 5
1
vote
0 answers

uwsgi errno 24 too many open files on CentOS / nginx

I have a python bottle app being served by nginx and uwsgi. After running for a very few hours, I start getting a 500 error from the web app, and in /var/log/messages I see: uwsgi: OSError: [Errno 24] Too many open files lsof for the failing…
Mojo
  • 955
  • 2
  • 9
  • 24
1
vote
1 answer

Nginx/uwsgi request buffer or queue

Our web servers run a Python app behind nginx + uwsgi. Sometimes we have short spikes (2-5x avg no requests) for a second resulting in some requests getting a 502 if there are no workers available to handle them. Is there a way for nginx or uwsgi to…
user28906
  • 13
  • 3
1
vote
1 answer

NGINX ignoring upstream in server block

This is how my /etc/nginx/nginx.conf file looks like (as per nginx -T): # configuration file /etc/nginx/nginx.conf: # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian…
arielnmz
  • 433
  • 1
  • 4
  • 13
1
vote
0 answers

How can you configure nginx to prevent it blocking on a slow uwsgi backend service?

Lets say I have a simple nginx config that talks to a uwsgi backend: server { listen 9900 default_server; listen [::]:9900 default_server; location / { include uwsgi_params; uwsgi_pass …
Doug
  • 247
  • 2
  • 5
  • 10
1
vote
1 answer

Different size of HTTP responsens with Nginx cache for UWSGI

I need to configure cache for python(django) app on nginx. Everything works fine but from time to time I get blank page from cache. I dont see any errors in nginx and uwsgi logs. In normal situation i get HTTP/1.1 200 resposne 24615 bytes long from…
1
vote
0 answers

ngnix socket file not found in /tmp and /var/tmp/uwsgi?

On centos 7 with nginx 1.10.2 and uwsgi 2.0.14 When I configure uwsgi to open a socket in /var/tmp/uwsgi or in /tmp, I go a message from nginx saying it cannot find the socket file : 2017/06/07 16:54:53 [crit] 2642#0: *7 connect() to…
Eric
  • 229
  • 4
  • 15
1
vote
2 answers

uwsgi error - connect() to unix:/home/user/www/www.sock failed

I am confused. Where I make mistake? Project files location: /home/username/www /etc/uwsgi/sites/mysite.com [uwsgi] project = www base = /home/username uid = www-data gid = www-data chdir = %(base)/%(project) home =…
Chalist
  • 145
  • 2
  • 10
1
vote
1 answer

Compress traffic between uwsgi-nginx and nginx load balancer

I have 7 nginx webservers running a python app and serving it to nginx via uwsgi and a socket file, infront of these 7 webservers there is an nginx load balancer, the trafic that gets out of the load balancer to the public is compressed correctly…
SteveL
  • 167
  • 9
1
vote
1 answer

python uwsgi not loading changes

i am using uwsgi to serve python application. app was using a particular vrsion of falcon python now i upgraded the package by removing it and reinstalling it. but the change is not reflected by the uwsgi server it is still using the older code even…
anekix
  • 11
  • 1
1
vote
1 answer

Which is Best way to serve multiple wsgi apps using apache2 with different python versions?

Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to python2. What are my alternatives to do the deploy?…
Liam
  • 241
  • 4
  • 10