The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
14 views

uwsgi queue of socket message flood?

I found my website unresponsive and I see a ton of *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! (101/100) *** *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! ...
0
votes
1answer
39 views

Is it possible to get uwsgi to restart on 500 errors

I occasionally have issues where a db will restart or something similar. In these cases I need to go in and manually restart uwsgi. Is it possible to setup uwsgi to restart on 500 errors? Ideally I ...
-1
votes
0answers
26 views

Why do I need the nginx uwsgi module?

I have a nginx server that has two django apps running behind it. Django's manage.py happily starts a webserver on some port over localhost. Why should I not just have nginx reverse proxy the ...
-1
votes
1answer
32 views

Error: “invalid number of arguments in ”uwsgi_param“ directive” on nginx restart

CentOS 6.6, nginx 1.0.15. I'm trying to configure nginx <-> uwsgi <-> Django stack, using this tutorial. The nginx conf file is: upstream django { server 127.0.0.1:8001; } server { ...
0
votes
0answers
46 views

Internal Server Error with Nginx and uWSGI

I'm trying to host an app using Nginx on Linode.com but I'm stuck early on uWSGI config. I've used "Getting Started" guide and "WSGI using uWSGI and nginx on Ubuntu 12.04 (Precise Pangolin)" guide ...
0
votes
1answer
55 views

uWSGI is ignoring uid, gid and chown-socket

I'm trying to use uWSGI with nginx. The root problem I am having is that I'm getting "No such file or directory" from nginx trying to connect to the uWSGI socket file. When I use the following ...
1
vote
0answers
31 views

Nginx - How to authorize access to repositories using python script

I have set up a local Git server using Nginx ( in Ubuntu ) ,Now I want to authorize users using external python script , which should authorize them against predefined database . AFAIK, I have to ...
0
votes
1answer
28 views

Nginx : How to server error_pages (404, etc) using uwsgi url?

I know it's possible to server static files using error_page in NGinx, but I was wondering if it was possible to server an url from my local (socketed) Flask app that is served through UWsgi. Here's ...
0
votes
1answer
15 views

Troubleshooting Curl Timeouts

I run a SaaS monitoring service. Our standard integration example is to make a curl request to a special URL we provide. We have an intermittent issue where a user is hitting a 10 second curl timeout ...
0
votes
1answer
67 views

UWSGI Bad Gateway - Connection refused while connecting to upstream

Trying to get a basic Django app running on nginx using UWSGI. I keep getting a 502 error with the error in the subject line. I am doing all of this as root, which I know is bad practice, but I am ...
0
votes
0answers
35 views

Mapping uWSGI processes to specific cpu cores

I have 2 sites on my server (debian) with 4 cpu cores. For both of them I use workers=2 and cpu-affinity=1 so workers are mapped to cpu 0 and 1 for both sites like that: spawned uWSGI master process ...
1
vote
0answers
36 views

No Module Named OS - NGINX/UWSGI/NGINX

Have looked at many related posts and most point to an outdated version of python that is cause the 'no module named os' during the uwsgi boot. I've run print sys.version_info And it shows python ...
1
vote
1answer
148 views

NGINX + uWSGI + Flask. Some requests very slow

We're running a fairly large Flask application and finding that at random times we'll end up with a very slow request (sometimes a minute or more) I presume the issue is related to lazy-loading ...
0
votes
0answers
155 views

Django / uWSGI - Nginx giving 502 status code: error.log says “Permission Denied”

I'm trying to setup my Django app to use uWSGI and Nginx. I'm following this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html I'm on the "Using Unix sockets ...
0
votes
1answer
47 views

Upstart script doesn't work on boot - only manually

I followed this tutorial on setting up Flask with nginx + uwsgi. I created an upstart script at /etc/init/flask-uwsgi.conf: start on [2345] stop on [06] pre-start script mkdir -p ...
1
vote
0answers
180 views

Django uwsgi Nginx not serving media files - Django returns 404 status code

I originally posted this on SO but I think it might belong here instead. I'm following this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html Everything was going ...
0
votes
1answer
36 views

uWSGI: chdir(): No such file or directory

I'm configuring uWSGI and with this im.ini configuration file: [uwsgi] uid = www-data gid = www-data plugins = python chdir = '/var/www/im/' module = texst master = true processes = 5 I'm getting ...
0
votes
0answers
58 views

wsgi nginx error: permission denied while connecting to upstream

There seem to be a few questions on stackoverflow and serverfault about this but unfortunately nothing has worked for me. I'm getting a 502 bad gateway on nginx, and the following on the logs: ...
0
votes
0answers
34 views

uwsgi process not quitting after stopping in django app

I have uwsgi 2.0.10 with django and supervisor. I am running uwsgi with command = /usr/local/bin/uwsgi --ini /var/www/conf/uwsgi.ini --die-on-term When i do supervisorctl stop app-uwsgi I see ...
0
votes
1answer
188 views

why django project failed deploying? - django + nginx + uwsgi

I am trying to deploy a Django project through Nginx and uWSGI. If I run the project manually running python manage.py runserver :8000 it works fine, so the project itself is not the problem I guess. ...
0
votes
0answers
174 views

502 Bad Gateway from relocated instance on AWS EC2

I tried to move some instance from tokio region (which by the way, it's working normally) to sao paulo region, then I followed this basic steps to perform but when I launch the instance from the ...
0
votes
0answers
110 views

Weird 502 responses of AWS ELB

My website suddenly failed to work this afternoon, responding every request with 502. I've set up 3 backend instances behind ELB, each with Nginx installed. At first, I suspected there's something ...
0
votes
1answer
811 views

502 bad gateway nginx. uwsgi, flask

Ok so I developed a web app in python and it worked with the internal server: if __name__ == '__main__': app.app.run(debug = True) with no issue at all. I am now trying to start up a nginx ...
0
votes
0answers
93 views

uWSGI reload not picking up new code changes

I've setup a server with nginx and uWSGI to server a django application. I deployed some changes to the server this morning which weren't picked up so I assumed my reload method wasn't working - sudo ...
0
votes
1answer
107 views

Django mail reports blocked by Gmail

I configured my Django 1.6 framework to send error reports to a Gmail account so I can check them. Before this worked well, though I had to define filters to catch the sender mail addresses I ...
1
vote
1answer
241 views

uwsgi configuration with Nginx, with python scripts as cgi - 502 Bad Gateway

This is my .ini file to run the uwsgi "pyApp.py" [uwsgi] plugins = cgi socket = 127.0.0.1:9010 cgi = /=/usr/share/test/ cgi-allowed-ext = .py cgi-helper = .py=python i have a file "firstapp.py" at ...
2
votes
0answers
51 views

What does the --master option ACTUALLY do in uwsgi?

While the uwsgi documentation is perhaps fine for someone already familiar with server administration, it is definitely not so helpful for someone trying to learn it. I hope someone can help out with ...
0
votes
0answers
46 views

uwsgi error when serving git repo over http

I am trying to serve my git repo over HTTP on CentOS using uwsgi and nginx. However, when I try and clone the repo, my uswgi log says:- unavailable modifier requested: 9 I think that this means ...
0
votes
2answers
115 views

uwsgi starts and works from console but doesn't want to with config file

I've got an issue with uwsgi. When I start uwsgi from conole: uwsgi --socket 127.0.0.1:5555 --chdir /var/www/proj/smth/ --wsgi-file /var/www/.../rest_api/wsgi.py & it shows web pages and ...
0
votes
0answers
36 views

Init script only offers help suggestion

I modified the uwsgi init.d script for debian from the apt-get package download. This is the script I have below: #!/bin/sh ### BEGIN INIT INFO # Provides: uwsgi # Required-Start: ...
0
votes
0answers
85 views

uWSGI backtrace: semgentation fault errors

I'm getting the following backtrace in my uWSGI logs, I don't know where to begin looking to figure this out: DAMN ! worker 5 (pid: 29056) died :( trying respawn ... Respawned uWSGI worker 5 (new ...
0
votes
0answers
64 views

Uwsgi many many (zombie?) threads when crawlbot is on site

I'm running a django application with nginx/uwsgi. It has multiple domains, about 15. What I've noticed is that sometimes the performance starts getting really bad. Then when I run ps aux -T | grep ...
0
votes
1answer
125 views

apache2 mod_proxy_uwsgi internal server error

I have run uwsgi service. uwsgi run on localhost:3031 and works ok (tested via http). # apache2 -v Server version: Apache/2.2.22 (Debian) # uwsgi --version 2.0.9 I have a mod_proxy_uwsgi, ...
0
votes
0answers
80 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
314 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 ...
-2
votes
1answer
634 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 ...
2
votes
2answers
2k 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
23 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 ...
0
votes
1answer
622 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
2answers
5k 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
0answers
244 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 = ...
0
votes
0answers
94 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
63 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
375 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
83 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 ...
1
vote
1answer
545 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
243 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
0answers
240 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 ...
1
vote
1answer
360 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 ...
1
vote
3answers
200 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 ...