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
7
votes
1 answer

Unable to load configuration from uwsgi

Since yesterday I have been wrestling with this problem: unable to load configuration from uwsgi When I google it, nothing comes up. I am trying to run UWSGI under nginx with a very simple uwsgi.ini file. The file is being pointed to correctly. Can…
J.Zil
  • 1,123
  • 3
  • 21
  • 29
7
votes
1 answer

Python Threads and uWSGI Harakiri

I have a webapp that is using an API built on nginx, uWSGI, and Django. Recently I have been seeing a lot of harakiris on a particular API call which does some quick processing and then spawns a few threads to handle some long-running functions. The…
jmetz
  • 181
  • 1
  • 4
7
votes
4 answers

ubuntu + nginx + uwsgi + django No Python application found

I am trying to setup my server with a nginx to uwsgi to django stack, but I am having problems with the uwsgi part. When I run uwsgi and pass in all the parameters on the command line, it works properly. My uwsgi call looks like this: uwsgi…
OpIvy
  • 113
  • 1
  • 1
  • 5
7
votes
0 answers

ImportError: No module named flask - uwsgi and buildout

uWSGI config: app_wsgi:app ./src /tmp/uwsgi.sock /tmp/uwsgi.pid uwsgi.log buildout.cfg [buildout] parts =…
Pavel Paulau
  • 171
  • 3
7
votes
2 answers

uWSGI cannot find "application" using Flask and Virtualenv

Using uWSGI to serve a simple wsgi app, (a simple "Hello, World") my configuration works, but when I try to run a Flask app, I get this in uWSGI's error logs: current working directory: /opt/python-env/coefficient/lib/python2.6/site-packages writing…
skyler
  • 465
  • 3
  • 8
  • 17
7
votes
3 answers

uwsgi.ini configuration for python apps

So I am experimenting with uWSGI and liking it a lot. I have a question regarding the use of its .ini file though. Is it possible to calculate values for its .ini configuration parameter dynamically? For instance, for the "chdir" value in my…
Calvin Cheng
  • 1,136
  • 4
  • 14
  • 18
6
votes
1 answer

uWSGI permissions issue

I'm trying to set up a chef recipe that will get my site running and everything seems to be working fine except for uWSGI which is giving me the following error: *** has_emperor mode detected (fd: 6) *** [uWSGI] getting INI configuration from…
Nalum
  • 259
  • 1
  • 3
  • 13
6
votes
2 answers

Django doesn't find CSS files for admin pages using uWSGI

Even if I followed the official instructions, when I start a Django test site using uWSGI, CSS files for the admin interface are not loaded. If I open the URL of a CSS file, for example http://localhost:8443/static/admin/css/base.css, I get a 404…
Marco Sulla
  • 207
  • 2
  • 4
  • 15
6
votes
2 answers

uwsgi processes * threads = maximum simultanous connections?

We are using uwsgi to serve the python app behind nginx. Can I hope that the theoretical maximum of simultaneously served client connections is equal to uwsgi processes * threads? We are using server-sent events, so, the connections are held for a…
saabeilin
  • 419
  • 1
  • 4
  • 12
6
votes
2 answers

Copy and deliver a request to another nginx server for real traffic testing

I have a Flask web service which runs on uwsgi+nginx and it works well. I have another development version of the service which runs on another server. It also runs on uwsgi+nginx. What I want to do is, test the development server with 'real'…
Younggun Kim
  • 351
  • 1
  • 2
  • 11
6
votes
2 answers

I can't run uwsgi as regular user

I want to run uwsgi server as www user, but if I write: uwsgi --socket $SOCKET --chmod-socket 666 --pidfile $PIDFILE --daemonize $LOGFILE --chdir $CHDIR --pp $PYTHONPATH --module main --post-buffering 8192 --workers 1 --threads 10 --uid www --gid…
atomAltera
  • 189
  • 1
  • 2
  • 7
6
votes
4 answers

Ubuntu 11.10 with Nginx and uWSGI

I'm trying to get a LNP [Linux Nginx Python] stack (is that even a thing? heh) going, but I'm having some difficulties. A lot of blog posts and documentation on doing this seems to revolve around using Upstart to manage the uWSGI process, which…
devians
  • 223
  • 2
  • 7
6
votes
2 answers

"ImportError: No module named flask" - Trouble with nginx + uWSGI + Flask in a virtualenv setup

I got nginx + uWSGI running on localhost inside a virtualenv with a simple hello world program, but I get this error when I replace the hello world with a simple Flask app: File "./wsgi_configuration_module.py", line 1, in from flask…
vjk2005
  • 175
  • 1
  • 2
  • 8
6
votes
4 answers

Comet with uwsgi and nginx, how to turn off the output buffer?

How can I prevent Nginx from buffering the output of my uwsgi app? For my comet style application I'm using long polling and the requests are now buffered. I tried to reduce the size of the buffers, but I'm not allowed to put uwsgi_buffer_size and…
Peter Smit
  • 1,669
  • 4
  • 21
  • 37
5
votes
2 answers

nginx works on LAN IP but not on public IP

I have setup a nginx web server with uwsgi to host my flask app. When I access it through the LAN ip (192.168.1.x) I get the website just fine but when I access it through my public IP i am greeted with "404 Not Found nginx/1.14.0 (Ubuntu)". Why is…
david doyyer 32
  • 53
  • 1
  • 1
  • 4
1
2
3
23 24