The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
0answers
14 views

uwsgi and nginx not working properly

These are my configuration files for uwsgi and nginx but when running lsof /path/flask.sock I get nothing. Nothing's connected to the socket and I get 504 Gateway Timeout error. flask.ini: [uwsgi] ...
1
vote
0answers
16 views

Nginx can't speak with uwsgi (prematurely closed connection)

What I'm missing in my nginx/uwsgi/php-embed configuration? rpm -qa|grep php php-cli-5.4.16-36.el7_1.x86_64 php-xml-5.4.16-36.el7_1.x86_64 php-devel-5.4.16-36.el7_1.x86_64 ...
1
vote
0answers
12 views

Piwik + uWSGI setup

I have a problem setting up uWSGI+piwik using nginx. My configuration follows this blog entry. My uwsgi ini file looks like this [uwsgi] plugins = php chown-socket = www-data:www-data uid = piwik gid ...
1
vote
0answers
30 views

Flask faster requests/sec with nginx and uwsgi [closed]

I'm trying to deploy a flask app with uwsgi and nginx. I use ab and I get the following results: ab -n 10000 -c 100 http://127.0.0.1:5000/ Document Path: / Document Length: 65694 ...
3
votes
1answer
25 views

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

root location of Flask app returns 403 on nginx server

I've seen other posts say that either file permissions or the lack of an index directive are the cause. However, my Flask application does not have an index file at all, and most of the site works ...
0
votes
0answers
18 views

CentOS + uwsgi + virtualenv no python application found

I have installed Python 2.7 on CentOS and created a virtualenv for my project using: $ virtualenv -p /usr/local/bin/python2.7 venv I have installed uwsgi and uwsgi-plugin-python with virtualenv ...
0
votes
0answers
31 views

uwsgi_proto_uwsgi_parser(): Resource temporarily unavailable

I'm running uwsgi this way : sudo uwsgi - - socket /run/uwsgi/app/myapp/socket.http --wsgi-file /usr/share/nginx/myapp/wsgi_websocket .py - - chmod-socket=666 - - buffer-size=32768 I'm getting ...
0
votes
0answers
16 views

How can multiple users share their (uwsgi) sockets with nginx, but not with each other?

On a shared domain, currently, each linux user sets up his website through his www-data-writable directory + uwsgi socket - one nginx instance serves them all. However, I do not like the idea of one ...
0
votes
0answers
61 views

uwsgi and “No module named django.core.wsgi”

On a fairly vanilla FreeBSD system without virtualenv, I'm having trouble getting uwsgi to work with Django. Attempting to run generates this error: Traceback (most recent call last): File ...
1
vote
1answer
36 views

nginx - serve only with backend or 404, no static files in root

I am trying to serve all requests with the backend (uwsgi for flask in this case) and if the backend has no such path, nginx should return 404. Somehow I only can get the backend to take over when I ...
0
votes
0answers
20 views

uwsgi native https support?

I want to run my uwsgi server with https. Yes, I know it is a wrong thing to do in production. The docs clearly say: configure your keys and use --https option: ...
0
votes
0answers
9 views

Uwsgi Fallback Strategies

I'm giving some thought to application redundancy, and I was wondering what the best-practices are for improved reliability using uwsgi fallback features. Specifically, I had two thoughts: 1) We ...
0
votes
1answer
15 views

uWSGI doesn't execute chdir

Title. When I run uwsgi as uwsgi *** or /usr/local/bin/uwsgi *** it works perfectly, but when I run it as /usr/bin/uwsgi *** (as it being runned as service) it doesn't execute chdir directive of .ini ...
0
votes
0answers
31 views

Uwsgi “Permission denied” after “Gracefully killing worker”

I run python environment with uwsgi on old centos 6.6 (it necessary for customer). But often i get error 502. log of uwsgi with error: 1) Request to /show/12763 took 0.474370002747 seconds Request ...
0
votes
0answers
41 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
48 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
1answer
70 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
150 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
102 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
41 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
41 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
21 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
174 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
68 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
50 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
183 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
207 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
66 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
230 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
49 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
68 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
39 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 ...
2
votes
1answer
221 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
241 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
139 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
1k 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
117 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
125 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
277 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
58 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
48 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
140 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
41 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
95 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
72 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
149 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
98 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
368 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
716 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 ...