The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
27 views

uWSGI emperor spawning two processes for one application

I did setup uWSGI application, ini file /etc/uwsgi/vassals/test_uwsgi.ini looks like this: [uwsgi] base = /home/fenikso/Flask/Test module = app:app socket = /home/fenikso/Flask/Test/%n.sock ...
1
vote
0answers
40 views

uwsgi + nginx + flask: upstream prematurely closed after file is downloaded

I created an endpoint on my flask which generates a spreadsheet from a database query (remote db) and then sends it as a download in the browser. Flask doesn't throw any errors. Uwsgi doesn't ...
-1
votes
1answer
46 views

Nginx Internal Server Error

I am new to NGINX and uwsgi and Im deploying my first python web application. Having tried numerous times, I get an internal server error. There may be something wrong with my configurations but i ...
1
vote
1answer
861 views

Restart single uWSGI application (when it's in emperor mode)

I'm running uWSGI in emperor mode to host a bunch of Django sites based on their individual configs. These are supposed to update when it detects a change in the config file and this largely works ...
0
votes
0answers
45 views

Nginx & uWSGI: ImportError: No module named site

I'm receiving an error: ImportError: No module named site according to my uWSGI log. test_proj.ini: [uwsgi] chdir = /home/%n/app module = %n.wsgi home = /home/%n/app/venv master = true processes = ...
0
votes
1answer
15 views

Nginx: Tracking try_files misses

We are using try_files as cache rather than hitting the UWSGI to serve the file. Using a rule like the following: try_files $uri @uwsgi_app; I was wondering what is the best way of logging the ...
2
votes
1answer
2k views

I can't run uwsgi as normal 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 ...
0
votes
1answer
38 views

Running (and monitoring) nginx with supervisord

I will start with my use case, since I very well may not be using the correct tools for this job. Please let me know if I am going about this all the wrong way use case: I have a CentOS server ...
1
vote
3answers
265 views

nginx failed (13: Permission denied) uwsgi (502 bad gateway)

I am having trouble running my application on a new DigitalOcean droplet. The machine runs CentOS 6.5 My /etc/nginx/nginx.conf user nginx www-data; worker_processes 1; error_log ...
1
vote
1answer
808 views

Deploying Flask application with nginx, uWSGI and virtualenv

I'm having a lot of trouble to deploy a Flask application on a CentOS 6 server. I know a few other questions have been asked concerning this problem, but I haven't succeeded yet. Description ...
1
vote
0answers
41 views

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 = ...
2
votes
2answers
2k views

Correct number of uWSGI processes?

On a 4-core box which scenario makes the better setup: 4 uWSGI processes with a deep queue to handle requests 8 uWSGI processes with a deep queue As many many processes as the server's memory ...
0
votes
0answers
20 views

uWSGI suddenly won't start again after server crash on Debian

After my server crashed i am unable to start uWSGI again, and keep getting following errors on unlink() and bind(). I start my service as root, so it makes it even more strange. Sun Nov 16 15:25:24 ...
0
votes
1answer
15 views

uWSGI writes log as root

I have following uwsgi.ini: [uwsgi] uid = myuser gid = myuser master = true daemonize = /path-to-log/uwsgi.log ... I run uwsgi in rc.local. I can see workers run as myuser, I can see uwsgi switches ...
1
vote
0answers
88 views

Pyramid + Nginx + uWSGI Server 500 Errors

I have a uWSGI application written in Python using the Pyramid framework. Nginx is configured like below (I left out a few bits, but I don't think they will matter): upstream uwsgicluster { ...
0
votes
1answer
46 views

How to run WSGI-file with Nginx

I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file. Now, i have a wsgi-file, but how can i execute this with ...
18
votes
3answers
5k views

How do I make uWSGI restart when a Python script is modified?

Can't remember where, but I read uWSGI can reload itself like Django development server when a project script is modified. I can't find that in the docs, nor in the internets. How can I do this? I ...
0
votes
1answer
94 views

uWSGI cannot load virtualenv

I'm setting up a Python app using nginx and uWSGI. My dependencies are in a virtualenv. If I activate the virtualenv manually, everything works by running this command: uwsgi --ini uwsgi.ini But if ...
0
votes
0answers
127 views

uWSGI appears to be losing requests

I'm seeing the following in the uWSGI logs, specifically ...The work of process 43017 is done. Seeya!: [pid: 43017|app: 0|req: 103/114] 207.140.171.16 () {50 vars in 847 bytes} [Fri Oct 17 12:59:49 ...
0
votes
2answers
328 views

Extra 301 redirect with nginx and uwsgi

I've the following nginx conf: server { server_name tawp.in; location / { rewrite ^/r/([^/]*)$ /s/ta/$1; rewrite ^/e/(.*)$ /en/ta/$1; uwsgi_pass ...
0
votes
0answers
78 views

uwsgi cannot start or stop correctly

I have setup uwsgi and it seems to be working along with nginx, but when i (1) start the service it says it has failed to start, but it is running in the background, (2) when i attempt to stop it, it ...
0
votes
1answer
71 views

Different Python versions under the same uwsgi Emperor?

I'm running an uwsgi Emperor with various Vassals that each serve a specific Python app from a different virtualenv. Since uwsgi was compiled with it's own Python 2.7 interpreter, trying to use a ...
3
votes
1answer
283 views

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: ...
1
vote
3answers
98 views

Increasing nginx performance past 1k req/s

I am trying to scale an nginx installation to the best of it's ability. I am running one nginx instance with 6 worker_processes (6 cores) and 5 backend servers consisting af a uwsgi setup with 10 ...
0
votes
2answers
2k views

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 ...
0
votes
0answers
28 views

Webserver needed for django WSGI API?

My app is just a REST API written in django. There is no static content or html pages served. In setting up our production environment, we are planning on using amazon ELB (load balancer) to balance ...
0
votes
1answer
55 views

Nginx/uWSGI Flask app suddenly return 401

I'm kind of new to deploying uSWGI python apps behind nginx as a reverse proxy, but so far I have had no trouble at all. I have a small linode where I deploy all my python webapps simultaneously. As ...
0
votes
1answer
71 views

How do I properly chroot Nginx and uwsgi?

I have a pretty good idea of how to do this, I just wanted to make sure I wasn't going to be seriously screwing stuff up before I deployed it. I have a web application which uses uwsgi and nginx, and ...
0
votes
1answer
150 views

uWSGI raises segfaults when defining several mount points in preforking+threaded mode

I'm hosting an application consisting of several Python modules. So far we use Apache in MPM worker mode and mod_wsgi, which is a working environment. Now we want to check if nginx + uwsgi may be a ...
0
votes
1answer
251 views

Nginx no longer servers uwsgi application behind HAProxy - Looks for static file instead

We implemented our web application using web2py. It consists of several modules offering a REST API at various resources (e.g. /dids, /replicas, ...). The API is used by clients implementing ...
0
votes
1answer
215 views

How to serve static files for multiple Django projects via nginx to same domain

I am trying to setup my nginx conf so that I can serve the relevant files for my multiple Django projects. Ultimately I want each app to be available at www.example.com/app1, www.example.com/app2 ...
0
votes
1answer
159 views

uwsgi + Django with nginx: High Availability Setup

Moved from : http://stackoverflow.com/questions/25304968/uwsgi-django-with-nginx-high-availability-setup to here. I was setting up High Availability on RHEL 6.5 . My Stack is 1. uwsgi 2. nginx ...
0
votes
0answers
44 views

exact same nginx + uwsgi settings, but after getting SSL for my domain, can't connect to flask

im using the exact same nginx + uwsgi settings, but after getting SSL for my domain, I cannot connect to the flask app. what could have gone wrong? There's nothing in the error.log, although the ...
0
votes
1answer
648 views

Uwsgi configuration - No module called site

I am trying to get uwsgi working in combination with nginx for a flask application. This is UWSGI ini file: [uwsgi] socket = 127.0.0.1:8001 processes = 4 module = run:manager virtualenv = ...
0
votes
0answers
27 views

Can I change uWSGI options when sending SIGHUP?

I'm using uWSGI to host a Python web app, and am interested in graceful reloading. It seems like sending SIGHUP to the master process is the simplest solution for my setup. The docs don't seem to ...
0
votes
0answers
101 views

Occasional uwsgi errors with nginx

I'm getting occasional 502 bad gateway errors with nginx and uwsgi. Inspecting my uwsgi log file I occasionally see uwsgi_proto_uwsgi_parser(): Error 0 [proto/uwsgi.c line 35] I did a load test ...
-1
votes
1answer
43 views

i'm having to restart the uwsgi process

i am using a combination of uwsgi and nginx to serve my flask app. what happens is that after a few hours (under very low load, < several hundred requests) the requests time out until i restart the ...
0
votes
1answer
71 views

Socket error with uWSGI

I am trying to run uwsgi.ini file with uwsgi --ini uwsgi.ini and it gives me an error The -s/--socket option is missing and stdin is not a socket. [wsgi.ini] socket=0.0.0.0:8001 ...
2
votes
0answers
93 views

uWSGI vs Twisted Matrix

uWSGI can be configured in ashyncronous mode same as Twisted Matrix, but has anyone tried to compare these to servers in terms of performance? If we need to develop a Python web app handling thousands ...
-1
votes
1answer
995 views

how is it possible to configure uwsgi in emperor-mode with cgi-plugin + heartbeat in combination with nginx

After having the migration from fcgiwrap to uWSGI (which also brings plenty of other benefits that I'm planning to use) on my ToDo-list for some time I finally managed to setup a debian-wheezy ...
1
vote
1answer
62 views

Nagios check fails: UWSGI CRITICAL: could not connect() to workers Operation now in progress

All seems to be installed and work as it should (site/server is running) but keep getting this error: UWSGI CRITICAL: could not connect() to workers Operation now in progress when running: uwsgi ...
1
vote
1answer
261 views

uWSGI Returning Empty Response

I have a Django site which I am trying to server via uWSGI. I have started the server like so: uwsgi --emperor . Ctrl+Z bg 1 (There are two .ini files which point to the test version and production ...
0
votes
1answer
946 views

gunicorn working vs uwsgi timeout

I've setup my Python / Django app on a vmware machine with CentOS, uwsgi and gunicorn along with all my apps dependencies. After running my app with gunicorn with the following command: gunicorn ...
1
vote
2answers
3k views

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 ...
0
votes
0answers
32 views

Configuring uwsgi and SNI with main domain and one subdomain

SNI is quite underdocumented feature of uwsgi Can anyone provider pointers how uwsgi config https directive sni directives should be set with domains example.com, subdomain.example.com when both ...
0
votes
2answers
117 views

Setting UWSGI to run a module in a venv

I am having a hard time trying to run a module from UWSGI. This is part of my deployment code: # ENVIRONMENT /usr/bin/pip install virtualenv mkdir -p /srv/www/test /usr/local/bin/virtualenv ...
3
votes
2answers
3k views

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 ...
0
votes
1answer
184 views

centos + apache + uWSGI any option?

I am trying to setup 'apache + uWSGI' on centos. But I am getting the following error: Invalid command 'uWSGISocket', perhaps misspelled.. For that I found a solution that I need a package ...
0
votes
1answer
1k views

Running uWSGI with supervisor in a docker container is giving permission denied

I have Django app that I want to run with UWSGI in a Docker container using Supervisor. I am using OSX so to successfully mount my OSX filesystem inside my boot2docker VM (so I can mount volumes with ...
0
votes
0answers
67 views

Configure Supervisor to manage init.d services

I installed uwsgi and created a bash script, which allows me to start/stop uwsgi in the following manner: service uwsgi [start|stop]. This bash script is located in /etc/init.d/uwsgi. Now, I want to ...