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

nginx and uwsgi; different ports

I have Nginx and two python virtual environments with uwsgi. These environments are for dev and production. What I want is to run production on :80 and dev on :6544 ports Here's the config I have server { listen 80; access_log …
KennyPowers
  • 111
  • 1
  • 4
1
vote
1 answer

uwsgi nginx web.py interal server error: application not found

Within my nginx sites-available/default this is the relevant portion for my app: location /app/ { include uwsgi_params; uwsgi_pass unix:///tmp/uwsgi.socket; } My app.xml file within the uwsgi/sites-available/…
eatonphil
  • 183
  • 3
  • 12
1
vote
1 answer

How can I pass environment variables to a WSGI script, using uWSGI?

I've added the following line to /etc/environment: FOO_DEPLOYMENT_ENV="vbox" Upon logging in via SSH, I can echo $FOO_DEPLOYMENT_ENV and, of course, see vbox output to the shell. If I open a Python shell and run os.getenv('FOO_DEPLOYMENT_ENV'), it…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
1
vote
2 answers

Restarting nginx backends without losing requests

I'm sure it's been asked before in different words but I run several Django sites via uwsgi (emporer mode) behind nginx. It's all a fairly standard configuration but I find that if I restart the central uwsgi process, nginx just bombs out 502s…
Oli
  • 1,799
  • 19
  • 27
1
vote
1 answer

How can I use the uWSGI Emperor to limit resources to a given amount for all apps (instead of per each)

I have a Django application for which I want to limit the resources used by uWSGI to 12288MB and processes (workers) to 6. With 3 separate apps, I can limit each to 2 workers, and each worker to 2048MB of memory (limit-as), but I'd rather allow all…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
1
vote
2 answers

uWSGI error: my master disconnected: i will kill myself. How it happened

error message: uWSGI worker 5 screams: UAAAAAAH my master disconnected: i will kill myself !!! I use uWSGI as server to hold my pyramid app on Ubuntu 12.04
Tallmad
  • 111
  • 1
  • 3
1
vote
2 answers

Nginx with http/https - Http seemed redirected to https all the time

I've this really weird behaviour with my ubuntu 10.04 / nginx 1.2.3 server. Basically I changed the SSL certificates this morning. And ever since it has been behaving weirdly on all apps. Godaddy is reporting that HTTPS/SSL setup is correct. When I…
dwarfy
  • 121
  • 1
  • 6
1
vote
2 answers

nginx + uwsgi: -- unavailable modifier requested: 0 --?

I'm following this to install and configure Nginx, uWSGI, and Django on Gentoo. Everything looks good until the last step: Nginx returns the 502 Bad Gateway error and the following appears in the uWSGI log: *** Starting uWSGI 1.2.4 (32bit) on [Mon…
quanta
  • 51,413
  • 19
  • 159
  • 217
1
vote
0 answers

Bottle.py application times out on mod_wsgi and uwsgi but works in dev mode

I have a bottle.py application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out when run on mod_wsgi on apache. How should I go…
Don Albrecht
  • 111
  • 2
1
vote
1 answer

Nginx,Uwsgi and Django App Not Found

I have configured Nginx with uWSGI and Django on CentOS. Django Directory(contains all my django app): /home Django Project Directory: /home/hdblog /home/hdapp.py contains below: import os,…
user121450
1
vote
1 answer

uwsgi memory usage optimisation

I'm running several django sites on uwsgi, and I'm attempting to optimise my configuration for memory usage, but the --idle and --die-on-idle flags don't seem to be doing anything. Each daemon starts off at around 10-12MB and increases to around…
Greg
  • 239
  • 1
  • 12
1
vote
1 answer

Does uwsgi workers share a common memory ? [ With Nginx ]

I have configured my Nginx with Django uwsgi. When the django server starts, it reads a 5MB file from the hard-disk. Now, Without Nginx with Django default server python manage.py runserver => Runs immediately and starts serving pages. Problem: With…
Yugal Jindle
  • 161
  • 1
  • 6
1
vote
2 answers

How to run Django 1.3/1.4 on uWSGI on nginx on EC2 (Apache2 works)

I am posting a question on behalf of my administrator. Basically he wants to set up Django app (made on Django 1.3, but will be moving to Django 1.4, so it should not really matter which one of these two will work, I hope) on WSGI on nginx,…
Tadeck
  • 119
  • 7
1
vote
1 answer

Nginx remove base url

I'm trying to setup Django through UWSGI using Nginx. I got the UWSGI pass to work using this function location / { include uwsgi_params; uwsgi_pass 127.0.0.1:9001; …
adam
  • 11
  • 3
1
vote
1 answer

Is there a way to force pid in upstart script

I am running a uwsgi-python server under ubuntu 10.04. I use upstart to start/stop a uwsgi daemon(daemonize option is set for uwsgi). Start and stop commands work fine, but when i try to reload my job, it won't work. The reason for this is that…