The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
29 views

Why do I need nginx when I have uWSGI

There are many tutorials on how to configure nginx to cooperate with when I want to deploy Django application. But why do I need nginx in this kit? uWSGI itself can serve WSGI Python applications, ...
3
votes
1answer
1k 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
26 views

Creating a virtualenv debian- What is my python path? [on hold]

I am new to the world of python and virtualenv's and I am trying to setup UWSGI. It asks me to specify the path of my virtualenv and my python path. Although knowing the path of my virtualenv is ...
1
vote
2answers
919 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
0answers
8 views

uwsgi & nginx unknown directive

On my local pc everything works. On VPS: sudo nginx -s quit && sudo nginx nginx: [emerg] unknown directive "uwsgi_pass" in /etc/nginx/sites-enabled/mysite_nginx.conf:36 cat mysite_nginx.conf ...
0
votes
0answers
87 views

upstream timed out (110: Connection timed out) while reading response header from upstream

For some reason, I am getting this error whenever I am running a query on my server. On my local setup, this query takes around 7-8 seconds to return, but it keeps timing out on my actual server. ...
0
votes
1answer
31 views

Uwsgi - Socket file or URL

I was installing UWSGI and it looks like for the socket I can specify either a URL and port or instead I can specify a socket location file. I was wondering if anyone can tell me what the difference ...
0
votes
1answer
133 views

Can't deploy uWSGI Python Script: Mount Point = 0

When I run my application I get the following error: *** Operational MODE: single process *** unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in ...
0
votes
0answers
35 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: ...
0
votes
1answer
58 views

Using uwsgi and gunicorn at the same time or fully switch to gunicorn?

We are running our python app behind nginx. First we used uWSGI, because it is fast, reliable and easy to deploy. Next, as the number of simultaneous clients (using server-sent events/eventstream) ...
0
votes
0answers
29 views

How to use Redis as a cache backend for uwsgi_cache in Nginx

I'm using Nginx with HttpUwsgiModule and i want to perform caching. I know that there is a uwsgi_cache which can be used to cache pages on the local file system. But i want to use Redis to cache pages ...
0
votes
0answers
21 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
2answers
60 views

Django (uWSGI) and php (fastcgi) NGINX

I am new to configuring servers and i'm having issues getting php to work with my django app using UWSGI on nginx. Django works great using uwsgi and php works great when I remove the django site ...
0
votes
1answer
73 views

Ubuntu 12.04 Server - Django with uWsgi not working

I am fairly new to working with servers. I am attempting to run Django on an Ubuntu 12.04 AWS with uwsgi & nginx. I found a tutorial that I was following: ...
0
votes
1answer
22 views

CPU 100% on uWSGI master getting killed, server not taking requests

I am facing this problem where my uWSGI error logs show "UAAAAAAH my master disconnected: i will kill myself !!!". This has happened twice in 2 weeks and surfaces only when we deploy code, which ...
0
votes
0answers
42 views

supervisor & uwsgi - no log output via web interface

I'm just starting out with supervisord and got it working with uwsgi. I have the web interface running and i assume when i click on the entry and a new window opens I'm supposed to be able to see the ...
0
votes
1answer
202 views

uWSGI permissions issue

I'm trying to set up a chef recipe that will get my site running and everything seems to be working fine except for uWSGI which is giving me the following error: *** has_emperor mode detected (fd: 6) ...
0
votes
1answer
103 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 ...
0
votes
1answer
31 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 ...
0
votes
1answer
30 views

I can compile GeoIP support into uWSGI or Nginx. What's the difference?

I'm running uWSGI with PHP and Python support through Nginx. All of this is compiled from source. I want GeoIP support. Both Nginx and uWSGI can be compiled with their own GeoIP plugins/modules. Are ...
0
votes
1answer
65 views

nginx + uwsgi - what is serving static files?

I am using nginx as a proxy to a couple of flask apps, with uwsgi as the middleware. Here's my nginx config for a test app. server { listen 80; server_name test.myapp.com ...
0
votes
1answer
32 views

uwsgi, multiple environment variables

I am using uWSGI to run a Django application on nginx. I have configured the server and all seems to be running well. What I would really like to be able to do is store the django secret key within ...
1
vote
1answer
94 views

Serving django with nginx and uWSGI

I followed this post to serve my django project. The project runs well with manage.py runserver and I want to set it up for production. Here are my setting files: nginx.conf: upstream django { ...
0
votes
1answer
121 views

How to stop uwsgi when no pidfile in config?

I've just installed uwsgi by pip install uwsgi in a virtual env. In "ini" file I used: socket = 127.0.0.1:3000 # no pidfile option And run uwsgi --ini config.ini But how to stop this instance of ...
1
vote
1answer
330 views

Nginx + uwsgi… 502 bad gateway

So I am trying to set up Nginx with uwsgi for my Django app. Here is my /etc/nginx/nginx.conf file: # /etc/nginx/nginx.conf user richard richard; ## Default: nobody worker_processes 5; ## ...
1
vote
1answer
120 views

Django doesn't find CSS files for admin pages using uWSGI

Even if I followed the official instructions, when I start a Django test site using uWSGI, CSS files for the admin interface are not loaded. If I open the URL of a CSS file, for example ...
0
votes
0answers
91 views

Ubuntu Locales Incorrect for Python Application

I have a NGINX -> UWSGI -> Django(python) stack installed on an Ubuntu AMI on Amazon EC2. I've run into a problem when accessing a file with unicode characters in the name. The exact output from the ...
0
votes
0answers
209 views

uwsgi Import Error: No module named 'encodings'

I'm trying to setup flask with uwsgi. This is my directory structure: /srv/http/www/myapp | +-- env -> virtualenv | +-- mpd -> the project directory | +-- main.py -> main application ...
0
votes
1answer
48 views

uWSGI snmp stats

I'm interested in collecting stats for uWSGI via snmp for graphing in Cacti. Per these docs I'm starting uwsgi with: uwsgi -s :3031 --udp 192.168.10.1:2222 --snmp --snmp-community foo --emperor ...
2
votes
1answer
134 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 ...
1
vote
1answer
403 views

Unable to load configuration from uwsgi

Since yesterday I have been wrestling with this problem: unable to load configuration from uwsgi When I google it, nothing comes up. I am trying to run UWSGI under nginx with a very simple uwsgi.ini ...
0
votes
1answer
38 views

Unloading uwsgi dynamic app

I have a uWSGI setup where I run dynamic mode and add applications to it. All applications are working off the same codebase, but each have their own settings file. Its working beautifully. Say for ...
0
votes
1answer
158 views

Uwsgi starts from root but not as a service

I have nginx + uwsgi setup for flask website. thats my nginx server { listen 80; server_name _; location /static/ { alias /var/www/site/app/static/; } location / { uwsgi_pass ...
0
votes
1answer
308 views

unable to correctly configure nginx with HTTP auth on a sub-directory for uWSGI

I have an nginx.conf that looks something like this: server { server_name subdomain.example.com; listen 443 ssl; ssl_certificate /srv/ssl/something.crt; ssl_certificate_key ...
0
votes
1answer
53 views

supervisord launches with wrong setuid

I am trying to test a pilot system with nginx connecting to uwsgi served application controlled by supervisord running on ubuntu-server. Application is written in python with Flask in virtualenv, ...
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 ...
0
votes
2answers
133 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
2answers
1k 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 ...
1
vote
0answers
89 views

How to tell uWSGI to prefer processes to threads for load balancing

I've installed Nginx + uWSGI + Django on a VDS with 3 CPU cores. uWSGI is configured for 6 processes and 5 threads per process. Now I want to tell uWSGI to use processes for load balancing until all ...
0
votes
1answer
54 views

uwsgi processes * threads = maximum simultanous connections?

We are using uwsgi to serve the python app behind nginx. Can I hope that the theoretical maximum of simultaneously served client connections is equal to uwsgi processes * threads? We are using ...
0
votes
1answer
67 views

uwsgi - harakiri workers with broken pipes

Is it possible to configure uwsgi to kill workers with broken pipes? The reason: - we are using server-sent events (events are form a pubsub service); - when client disconnects, there is no way to ...
0
votes
1answer
1k 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/ ...
1
vote
1answer
282 views

Bottle.py app can't be found by nginx+uwsgi

I have a Python 3 bottle.py app that I install into a virtual environment (letting pip automatically fetch dependencies). I'm trying to get it to run under nginx and uwsgi on my raspberry pi. When I ...
0
votes
3answers
335 views

Nginx bad gateway (502) error on django 500 errors (instead of showing django 500 page) with DEBUG = False setting

I have a problem with my current setup... And the issue is, that if i set DEBUG = False in django settings.py file nginx stops showing django tracebacks on 500 errors, but does not show our 500 page ...
0
votes
2answers
62 views

Serving files from GIT with uWSGI

Good morning everyone! On my daily job, we are using NGINX+uWSGI+MongoDB as Python Application container. For versionning and collaborative developpement we are using GIT install on each developer ...
1
vote
2answers
1k 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
1answer
145 views

How do I make html files accessible from OpenShift server running python?

I have an OpenShift DIY app running Python. However, I cannot reach static files like html. (or run php) If I try accessing: mydomain.rhcloud.com/hello.html, I get: uWSGI Error Python application not ...
0
votes
1answer
157 views

Microcaching with nginx & uwsgi [closed]

i am running my personal website written with python on nginx with uwsgi. Since the site is very static i want to improve the performace by adding microcaching. Both nginx and also uwsgi do offer ...
0
votes
1answer
205 views

Why is UFW blocking some allowed internal connections?

My set up is this: Server 1 (192.168.1.1) - nginx (load balance) - Ubuntu 12.04 LTS Server 2 - uwsgi - Debian 7.1 Server 3 - uwsgi - Debian 7.1 UFW on server 2 and server 3, is blocking ...
0
votes
1answer
177 views

Why is uWSGI not loading the app specified in the nginx configuration?

I have a server serving multiple Django sites using nginx (1.1.19) and uWSGI (0.9.8). uWSGI is running in VirtualHosting mode and loading apps dynamically as documented here: ...