The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
1k views

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 ...
1
vote
0answers
77 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 ...
1
vote
0answers
28 views

Make nginx stop accepting incoming connections when upstream is not available

I am running the following Puppet setup: Two puppet masters,each running nginx and uwsgi as a backend. Load balancing and HA between the two puppet masters is done via simple DNS round robin. The ...
0
votes
0answers
13 views

Permission denied when uwsgi app tries to write to a file [duplicate]

I have a Flask application that I want to deploy using Nginx + uWSGI. In my application, I have a log handler that creates a log file at /srv/www/mysite/logs/mysite.log. When I start uWSGI, however, I ...
0
votes
1answer
87 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/ ...
3
votes
1answer
56 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
22 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 ...
0
votes
0answers
26 views

nginx performance on hardware like AWS c1.xlarge [duplicate]

I'm using nginx+uwsgi+django to build application running on AWS c1.xlarge which have 8 cpu cores and about 7G memory. for benchmarking a small dynamic page (37byte return, without DB access, just a ...
0
votes
0answers
16 views

How to decrease the timeout for my python application connecting to mysql server [migrated]

We have a python application running with uwsgi, nginx. We have a fallback mechanism for DBs. ie., if one server refuses to connect, we connect to the other server. But the issue is that the ...
0
votes
0answers
32 views

What is a foolproof way to integrate nginx uwsgi and django?

I done some research on integrating Nginx with uWSGI and Django. I can get each work individually but not together. My server originally has Apache which I disabled. I came up with the following ...
0
votes
0answers
275 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
0answers
23 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
2answers
418 views

Installing Pootle with uwsgi on ubuntu server

I'm trying to install a Pootle server on an ubuntu server under uwsgi. While everything went ok on my local dev server, when online i got this error i cannot overcome. It seems application-related, ...
4
votes
1answer
66 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
69 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 ...
0
votes
1answer
74 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
0answers
60 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 ...
0
votes
0answers
58 views

Can't post with nginx-uwsgi-django.

I'm having a lot of trouble getting my nginx-uwsgi-django stack up and running. The biggest problem I have is that I can't figure out how to get POST requests through nginx so I can handle them in ...
5
votes
5answers
3k views

Ubuntu 11.10 with Nginx and uWSGI

I'm trying to get a LNP [Linux Nginx Python] stack (is that even a thing? heh) going, but I'm having some difficulties. A lot of blog posts and documentation on doing this seems to revolve around ...
0
votes
0answers
18 views

uWSGI repeated execution of Flask app.route() function

I'm currently running uWSGI with a Flask web app, via the command line. The command used is: uwsgi --http :80 --file /scripts/flaskWebApp/app.py --callable app --processes 4 --threads 2 -b 25000 -M ...
-1
votes
1answer
34 views

Nginx server error when configuring with uwsgi [closed]

On my Ubuntu 10.04, I have installed nginx (apt-get nginx) and uwsgi (pip install uwsgi). Also, I have configured nginx.conf (in /etc/nginx) to have following setup: server { listen 8083; ...
1
vote
1answer
105 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 ...
2
votes
2answers
724 views

how to do a graceful uwsgi reload via bash script?

I have a django application which is executing a bash script. I require the nginx server to restart so I run /etc/init.d/nginx reload which works great. I have been using restart uwsgi for uwsgi but I ...
0
votes
0answers
73 views

nginx not forwarding request to uwsgi

I started working on some server side code with no documentation and not really able to communicate with the original developers and i have been racking my head trying to set up a local development ...
0
votes
1answer
104 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
128 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 ...
-2
votes
1answer
105 views

Why uWSGI emperor keeps killing workers? [closed]

I'm new to using uWSGI. Can someone explain the process of spawning and respawning workers? Why does this happen? And in my uWSGI logs, I keep seeing this message brutally killing workers. And then ...
0
votes
1answer
49 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 ...
0
votes
1answer
174 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 ...
0
votes
1answer
86 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 ...
3
votes
4answers
734 views

Comet with uwsgi and nginx, how to turn off the output buffer?

How can I prevent Nginx from buffering the output of my uwsgi app? For my comet style application I'm using long polling and the requests are now buffered. I tried to reduce the size of the buffers, ...
0
votes
0answers
65 views

Trac server never produces meaningful HTTP error responses

I'm serving Trac (1.0) through an nginx(1.0.5)/uwsgi(0.9.8.1-debian) setup on Ubuntu 11.10 and everything is working fine except for error handling. Every error generated by Trac produces an nginx 502 ...
0
votes
0answers
141 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 ...
0
votes
1answer
96 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
267 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; } ...
2
votes
0answers
131 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> ...
0
votes
1answer
178 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 ...
0
votes
1answer
47 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
86 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 ...
0
votes
2answers
512 views

Configure uWSGI (+cherokee) to run as a specified user?

I have a cherokee serving django app using uWSGI. I want the uwsgi process user and group to be specified by me - how do I do this? (now uwsgi runs as 'www-data' user)
0
votes
2answers
323 views

I can't run uwsgi as nornal 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
0answers
189 views

500 Internal Server Error - cherokee + django (uwsgi HARAKIRI)

I had a working django project at nginx server, and now I moved to another vps, trying Cherokee web server and uwsgi. Just copied all files and database. Everything works great except of the 500 ...
1
vote
1answer
83 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
152 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
vote
2answers
473 views

nginx configuring uwsgi and gzip buffers for different usage scenarios

I'm trying to configure two URL path groups for relatively different usage scenarios and resource consumption in nginx. Both are served by same uwsgi application. Group 1: Regular HTML pages up to ...
-1
votes
1answer
123 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
1answer
318 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
62 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
153 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
99 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 ...

1 2 3