The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
3k views

Why is Upstart not starting uWSGI?

I am trying to set up a django project on my VPS. I am trying to get a uWSGI Emperor to run and thus spawn vassals. I have set up all my config files as suggested by numerous websites including the ...
1
vote
1answer
588 views

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|') ...
2
votes
1answer
357 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
671 views

uwsgi + apache - Invalid command 'uWSGISocket', perhaps misspelled or defined by a module not included in the server configuration

I have this error: Invalid command 'uWSGISocket', perhaps misspelled or defined by a module not included in the server configuration <VirtualHost *:80> ServerAdmin your@email.com ...
2
votes
1answer
344 views

Increased memory usage for uWSGI workers / masters after moving from Debian to Ubuntu

After moving our web servers from Debian to Ubuntu we have noticed a large increase in the amount of memory (RSS) used by uWSGI master and worker processes. The version of uWSGI (1.9.13) remains the ...
0
votes
2answers
129 views

uwsgi emperor mode - Warning message

I use uwsgi running in the emperor mode to serve multiple Django Applications on one server. Therefore for every project I have a own config file like this one: <uwsgi> ...
2
votes
0answers
443 views

Python Threads and uWSGI Harakiri

I have a webapp that is using an API built on nginx, uWSGI, and Django. Recently I have been seeing a lot of harakiris on a particular API call which does some quick processing and then spawns a few ...
-2
votes
1answer
137 views

idle proccesses and high memory bad? uwsgi/django

I have a VPS with 256MB of ram. I'm running nginx, uwsgi and postgresql on Ubuntu 12.04 for a soon to be Django site. About 200MB of ram are being used despite the website not being active, the uwsgi ...
2
votes
0answers
252 views

uwsgi through supervisor too many open files

I have uWSGI set up through supervisor on a ubuntu 12.04 box and lately I noticed that when trying to tail the logs (all the logs in that user account) I get message that too many files opened , uWSGI ...
1
vote
1answer
2k views

How do I debug this Nginx to uWSGI timeout?

I'm running a database-backed web site that receives very little traffic. However, once or twice day, a request will timeout and I'll see this (or a similar) error in Nginx's error.log: 2013/06/13 ...
0
votes
1answer
686 views

Copy and deliver a request to another nginx server for real traffic testing

I have a Flask web service which runs on uwsgi+nginx and it works well. I have another development version of the service which runs on another server. It also runs on uwsgi+nginx. What I want to do ...
1
vote
1answer
974 views

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

Setting up Nginx and uWSGI on different servers

I've done before many setups of both uWSGI for django applications and flask for python-plugin under ubuntu along with Nginx as web server. I've always done it in one box.. As now, we are having a ...
3
votes
2answers
5k 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 ...
3
votes
1answer
412 views

Use uWSGI as a proxy server

Question: Is there a way to use uWSGI as a proxy server? More about the system: 6 load-balanced nginix/uWSGI servers Python Requirements: Set up a few proxy servers that can: Accept requests ...
0
votes
1answer
2k views

“uWSGI Error Python application not found” after trying to add a subdomain to Nginx

Obviously I was wrong to assume adding a subdomain would be as straightforward as duplicating my existing domain & adding a DNS A record. So I tried to run cp -r /var/www/mydomain.com/ ...
0
votes
1answer
61 views

How do I setup nginx and uwsgi when using virtualenv?

I am going to start using virtualenv for the first time. If I am going to have multiple environments with a django project in each, do I have 1 nginx instance running and have each domain point to the ...
2
votes
1answer
511 views

How to run multiple websites from one Django project on nginx and uwsgi

How to run two web sites or subdomains of a site from a single Django code base. Each Django app in the project can then power a website on a different domain, but all the apps can still share a ...
2
votes
0answers
3k views

Nginx/uWSGI - upstream prematurely closed connection while reading response header from upstream

I've got an Ubuntu server configured with Nginx and uWSGI to serve Django which was setup and working with the default start page yesterday. All I have done since is install MySQL and later ...
0
votes
1answer
585 views

OpenStack over NGINX+uWSGI

Following this not so popular question: OpenStack & NGINX+uWSGI I've start to build my dashboard node using well... NGINX and uWSGI of course, but I'm now facing a path problem. Indeed, uWSGI is ...
1
vote
0answers
350 views

NGINX and OpenStack Horizon?

I recently update our web infrastructure to use NGINX instead of our Apache servers. Now, I'm also operating an OpenStack Infrastructure and I was wondering if there is a state of the art way to ...
1
vote
1answer
1k views

uWSGI ignores socket option in config

I'm use Ubuntu 12.04.1 on AWS EC2 Micro instance and trying to set up simple Flask app with uWSGI and nginx. And I faced something strange with uWSGI configuration. Here is my app.conf: [uwsgi] ...
1
vote
1answer
352 views

setup Nginx, uwsgi for RAILS app on non-root location

I've set up and run a RAILS app (graylog2), and bellow config made it worked for root location: server { server_name www.mydomain.com; location / { gzip off; uwsgi_modifier1 ...
0
votes
1answer
305 views

Redmine (RoR rack app) on uWSGI forgets sessions when ran with more than one process

When I log into redmine it forgets that I was logged after first click on any link or immediately after the login redirect. After I refresh the page a few times, I am still logged in in some of this ...
1
vote
1answer
1k views

Nginx FastCGI in subdirectory only?

I have a single domain where the root is served by a python application running under uWSGI. I however need to run a PHP forum on a subfolder /forum/. I have the following in the apps-available ...
0
votes
1answer
76 views

Nginx + uWSGI - Separating configuration logic

I'm a beginner at this, but based on the flask, nginx, and uwsgi documentation and tutorials I've found, the standard seems to be to use nginx to pass configuration variables to uwsgi. Why is this ...
4
votes
1answer
192 views

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, ...
0
votes
1answer
1k 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
1answer
665 views

How to redirect all HTTP traffic to HTTPS for a Django 1.4 application running on an EC2 with nginx/uWSGI behind ELB with an SSL cert

I would like to know how to put my entire django site behind HTTPS. If anyone tries to come via HTTP I want that user to be redirected to HTTPS. Currently, firefox is giving me the error "Firefox has ...
1
vote
1answer
487 views

nginx uwsgi flask rewrite directory as base directory within app

So I have a flask application running using uWSGI on Nginx. Nginx is set to call my app at the location /app. So in my flask application I have to take into account the /app part when I map the url to ...
0
votes
1answer
1k views

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; } ...
3
votes
0answers
347 views

ImportError: No module named flask - uwsgi and buildout

uWSGI config: <uwsgi> <module>app_wsgi:app</module> <pythonpath>./src</pythonpath> <socket>/tmp/uwsgi.sock</socket> ...
1
vote
1answer
537 views

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 ...
1
vote
2answers
189 views

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

systemd initiated uwsgi process shuts down after a while

So I wrote this simple systemd service script:- [Unit] Description=uwsgi server script [Service] User=web Group=web WorkingDirectory=/var/www/prod/myproject/releases/current ExecStart=/bin/bash -c ...
0
votes
1answer
556 views

Serving Django staticfiles via Nginx 404

I host my Djangoproject on Nginx with uwsgi. staticfiles need to be served separately by Nginx server { listen 80; server_name blog.foo.de; location /static { root ...
3
votes
1answer
3k 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 ...
2
votes
1answer
331 views

What's the difference between WSGI <app> and <module>?

I followed these instructions to serve Python (Web2Py) via uWSGI. However, the web server returned an error: uWSGI Error Python application not found until I modified the config.xml config ...
-1
votes
1answer
876 views

Why are my uWSGI processes dying immediately?

I'm using Supervisor and the uWSGI Emperor mode. When I set limit-as to 512 (MB), workers die instantly (respawn, die, respawn, die, every 3/4 of a second or so): [uwsgi] workers = 4 threads = 40 ...
-1
votes
1answer
769 views

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

When starting uWSGI on Ubuntu, opendir(): No such file or directory [uwsgi.c line 471]

I am attempting to start uWSGI on Ubuntu 12.04. Upon $ sudo service uwsgi start or # uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/file.ini, I receive the following ...
2
votes
1answer
166 views

Reload and evil-reload in uwsgi config

What is the difference between reload-on-as and evil-reload-on-as options in uwsgi config? I use reload-on-as and uwsgi worker still consumes unlimited memory and reloads when task is finished. I need ...
0
votes
2answers
616 views

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

Monitor uSWGI via Nagios: invalid socket

I'm trying to monitor uSWGI via Nagios, but according to uWSGI I have specified an invalid socket. The socket path I got from the JSON config file which also says chmod-socket: 666 so I have a hunch ...
2
votes
1answer
825 views

uWSGI & Django 1.4 - Bad Gateway and no error

I am having trouble getting Django and uWSGI to play nice on Ubuntu (12). It seems that the wsgi is loading and then the app is immediately crashing. None of the uwsgi logs are giving me anything to ...
2
votes
0answers
342 views

Application reports timeouts. However nginx has no record or log

We are serving Django via nginx/uwsgi. We use AWS ELB behind a VPC. This is a webservice to Mobile clients. We had reports of timeouts during development so we have added a concept of a request_id ...
3
votes
1answer
2k views

uwsgi_params not in nginx

Firstly I setup nginx and uwsgi via apt-get. And,I add the line to nginx conf file(/etc/nginx/conf.d/default.conf) like below line; server { listen 80; server_name <replace with your ...
1
vote
2answers
2k views

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 ...
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 ...