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

343 questions
4
votes
0 answers

Show config of running UWSGI instance

I have an instance of UWSGI that is getting it's config from an INI file. Everything seems fine, except it does not seem to be accepting the buffer-size config option properly. I have it set to 65535, but I'm getting error messages in my logs like…
user3113357
  • 41
  • 1
  • 3
4
votes
1 answer

What's the difference between running Python web applications in normal way and running them under wsgi?

I know that in order to run a Python web application(an application developed with frameworks such as Flask & Django) on the server, you need to deploy it using things such as uwsgi, wsgi.. gunicorn.. etc, and configure it to run with the web…
4
votes
1 answer

Trouble with Uwsgi settings

I have a uwsgi ini that looks like this: [uwsgi] socket = :8001 processes = 4 master = true wsgi-file = /project/dev/myproject/conf/deployment/wsgi/dev/myproject-site.wsgi harakiri = 30 daemonize = /logs/log/myproject/myproject-uwsgi.log uid =…
James R
  • 141
  • 1
  • 2
4
votes
1 answer

Python uWSGI logs have no read permissions

I am running a Python Flask server on uWSGI over an EC2 Ubuntu 14.04 LTS. The server is configured as follows: [uwsgi] http-socket = :9000 plugin = python wsgi-file = /path/to_wsgi.py enable-threads = true The logs, however, are…
Adam Matan
  • 12,504
  • 19
  • 54
  • 73
4
votes
0 answers

UWSGI is not creating my socket

So, i'm getting an error because my .sock file is not being created by uwsgi. I'm also running a VB with vagrant. my uwsgi.ini [uwsgi] master = true pidfile = /tmp/uwsgi-%n.pid workers = 12 enable-threads = true uid = www-data gid =…
user3646167
  • 141
  • 1
  • 3
4
votes
1 answer

Getting pypy to run in uwsgi?

I'm trying to setup uwsgi to use pypy following what is posted here, using the build PyPy support as a plugin method. http://uwsgi-docs.readthedocs.org/en/latest/PyPy.html I have seemed to manage to build the pypy plugin using: Linux x86 64-bit:…
monkut
  • 255
  • 2
  • 13
4
votes
1 answer

Supervisor cannot correctly stop uwsgi

Supervisor can start uwsgi but after stopping uwsgi, when i try to start it again I get this error: 2014-03-16 08:38:34,249 DEBG 'app' stderr output: thunder lock:…
J.Zil
  • 1,103
  • 3
  • 20
  • 29
4
votes
1 answer

Serving django with nginx and uWSGI

I followed this post to serve my django project. The project runs well with manage.py runserver and I want to set it up for production. Here are my setting files: nginx.conf: upstream django { server /tmp/vc.sock; #server…
Terry
  • 45
  • 1
  • 4
4
votes
0 answers

Ubuntu Locales Incorrect for Python Application

I have a NGINX -> UWSGI -> Django(python) stack installed on an Ubuntu AMI on Amazon EC2. I've run into a problem when accessing a file with unicode characters in the name. The exact output from the Django App (Mezzanine) is Access was attempted…
OpIvy
  • 113
  • 1
  • 1
  • 5
4
votes
1 answer

uwsgi Import Error: No module named 'encodings'

I'm trying to setup flask with uwsgi. This is my directory structure: /srv/http/www/myapp | +-- env -> virtualenv | +-- mpd -> the project directory | +-- main.py -> main application And I'm using this command: uwsgi -s 127.0.0.1:3002 --chdir…
fengshaun
  • 141
  • 1
  • 1
  • 2
4
votes
1 answer

UWSGI can't import module 'mysite' with nginx and flask

I'm new to using uwsgi and nginx and I haven't been able to figure out why I am getting this error from uwsgi: ImportError: No module named mysite unable to load app 0 (mountpoint='my_ipaddr|') (callable not found or import error) Here is my nginx…
Mark Berger
  • 71
  • 1
  • 5
4
votes
2 answers

Nginx 502 bad gateway runing django in uwsgi

I tryed to restart a project in production and it stoped working. This is a django==1.5.1 and django-cms==2.4.1 project. I restarted because I've updated the project from django==1.4.1 to django==1.5.1, but as long as I know it doesn't change…
Mauricio
  • 203
  • 1
  • 2
  • 8
4
votes
1 answer

mongo and app server cpu

The beginning: We are using uwsgi and I decided to switch our configuration to use more workers/processes. Why: We have been seeing a traffic increase lately and in my tests with apache benchmark, the new configuration with more workers and…
tonyl7126
  • 213
  • 2
  • 6
4
votes
1 answer

UWSGI and NGINX for Python Apps on Ubuntu 11.10

I am trying to find an optimal way to set up my server to use NGINX and UWSGI to serve python applications. The following has worked so far: Initial setup: sudo apt-get install nginx uwsgi uwsgi-plugin-http uwsgi-plugin-python…
knpwrs
  • 357
  • 1
  • 4
  • 14
4
votes
1 answer

Analyze uwsgi strace log to find out why it takes high CPU usage

I'm running a django site with nginx through uwsgi. The problem is uwsgi process take a lot of CPU time when traffic become heavy. The same configuration works fine on test server and siege/ab simulate heavy concurrent traffic. Here is one strace…
chenxee
  • 141
  • 1
  • 4