The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
23 views

uWSGI raises segfaults when defining several mount points in preforking+threaded mode

I'm hosting an application consisting of several Python modules. So far we use Apache in MPM worker mode and mod_wsgi, which is a working environment. Now we want to check if nginx + uwsgi may be a ...
0
votes
1answer
44 views

Nginx no longer servers uwsgi application behind HAProxy - Looks for static file instead

We implemented our web application using web2py. It consists of several modules offering a REST API at various resources (e.g. /dids, /replicas, ...). The API is used by clients implementing ...
0
votes
1answer
25 views

How to serve static files for multiple Django projects via nginx to same domain

I am trying to setup my nginx conf so that I can serve the relevant files for my multiple Django projects. Ultimately I want each app to be available at www.example.com/app1, www.example.com/app2 ...
0
votes
1answer
43 views

uwsgi + Django with nginx: High Availability Setup

Moved from : http://stackoverflow.com/questions/25304968/uwsgi-django-with-nginx-high-availability-setup to here. I was setting up High Availability on RHEL 6.5 . My Stack is 1. uwsgi 2. nginx ...
0
votes
0answers
24 views

exact same nginx + uwsgi settings, but after getting SSL for my domain, can't connect to flask

im using the exact same nginx + uwsgi settings, but after getting SSL for my domain, I cannot connect to the flask app. what could have gone wrong? There's nothing in the error.log, although the ...
0
votes
0answers
12 views

Can I change uWSGI options when sending SIGHUP?

I'm using uWSGI to host a Python web app, and am interested in graceful reloading. It seems like sending SIGHUP to the master process is the simplest solution for my setup. The docs don't seem to ...
0
votes
0answers
36 views

Occasional uwsgi errors with nginx

I'm getting occasional 502 bad gateway errors with nginx and uwsgi. Inspecting my uwsgi log file I occasionally see uwsgi_proto_uwsgi_parser(): Error 0 [proto/uwsgi.c line 35] I did a load test ...
-1
votes
1answer
22 views

i'm having to restart the uwsgi process

i am using a combination of uwsgi and nginx to serve my flask app. what happens is that after a few hours (under very low load, < several hundred requests) the requests time out until i restart the ...
0
votes
1answer
17 views

Socket error with uWSGI

I am trying to run uwsgi.ini file with uwsgi --ini uwsgi.ini and it gives me an error The -s/--socket option is missing and stdin is not a socket. [wsgi.ini] socket=0.0.0.0:8001 ...
2
votes
0answers
38 views

uWSGI vs Twisted Matrix

uWSGI can be configured in ashyncronous mode same as Twisted Matrix, but has anyone tried to compare these to servers in terms of performance? If we need to develop a Python web app handling thousands ...
1
vote
1answer
33 views

Nagios check fails: UWSGI CRITICAL: could not connect() to workers Operation now in progress

All seems to be installed and work as it should (site/server is running) but keep getting this error: UWSGI CRITICAL: could not connect() to workers Operation now in progress when running: uwsgi ...
0
votes
0answers
21 views

Configuring uwsgi and SNI with main domain and one subdomain

SNI is quite underdocumented feature of uwsgi Can anyone provider pointers how uwsgi config https directive sni directives should be set with domains example.com, subdomain.example.com when both ...
0
votes
1answer
64 views

centos + apache + uWSGI any option?

I am trying to setup 'apache + uWSGI' on centos. But I am getting the following error: Invalid command 'uWSGISocket', perhaps misspelled.. For that I found a solution that I need a package ...
0
votes
1answer
481 views

Running uWSGI with supervisor in a docker container is giving permission denied

I have Django app that I want to run with UWSGI in a Docker container using Supervisor. I am using OSX so to successfully mount my OSX filesystem inside my boot2docker VM (so I can mount volumes with ...
0
votes
0answers
41 views

Configure Supervisor to manage init.d services

I installed uwsgi and created a bash script, which allows me to start/stop uwsgi in the following manner: service uwsgi [start|stop]. This bash script is located in /etc/init.d/uwsgi. Now, I want to ...
0
votes
0answers
35 views

Python uWSGI logs have no read permissions

I am running a Python Flask server on uWSGI over an EC2 Ubuntu 14.04 LTS. The server is configured as follows: [uwsgi] http-socket = :9000 plugin = python wsgi-file = /path/to_wsgi.py ...
1
vote
1answer
115 views

uWSGI and Python on Arch Linux, encoding failure

I am running an Arch Linux box and have setup a Python 3.4 virtualenv. I have a uwsgi vassal being run by the emperor, which specifies the following ini: (some snipped for brevity) [uwsgi] ...
2
votes
0answers
135 views

How to deploy django with uWsgi and nginx on CentOS

My version of Django is 1.6.3 I downloaded uwsgi-2.0.4. Someone says installing uwsgi with command make while someone use python setup.py build. What exactly is the difference? I saw a tutorial that ...
0
votes
0answers
91 views

UWSGI is not creating my socket

So, i'm getting an error because my .sock file is not being created by uwsgi. I'm also running a VB with vagrant. my uwsgi.ini [uwsgi] master = true pidfile = /tmp/uwsgi-%n.pid workers = 12 ...
0
votes
0answers
39 views

Can thousands of files in a directory seriously slow down access to unix socket file?

I try to find out why a site has juddering performance problems. It works well most of the time. And for short time a 2-minute delay occurs. I don't see any database problems. Memory consumed looks ...
0
votes
0answers
165 views

uwsgi complains about python application not found

looks like quite common with uWSGI application, but still can't find any valuable solution. I ma working on ubuntu 12.04 with uwsgi 1.0.3 and python2.7 Here is my config.ini file: [uwsgi] uid = ...
0
votes
0answers
95 views

AWS + Nginx + Uwsgi + couple flask applications. Can't separate static files

I'm trying to build 1 aws-testserver for all of my Flask-applications. Nginx conf: server { listen 80; server_name localhost; location /app1/ { uwsgi_pass unix:/tmp/app1.sock; ...
0
votes
1answer
61 views

Set nginx to show maintenance page when uWSGI down

I have nginx set up to serve uWSGI for a Flask app. Sometimes there will be errors or I will be restarting the uWSGI service, but I want nginx to serve a nicer maintenance page instead of the default ...
0
votes
0answers
87 views

AssertionError when using uwsgi with pypy with the sample test app

I'm trying to get the sample pypy test hello world application to run using uwsgi with pypy. I've attempted to build uwsgi with the pypy plugin (using python uwsgiconfig.py --plugin plugins/pypy) and ...
1
vote
1answer
278 views

Getting pypy to run in uwsgi?

I'm trying to setup uwsgi to use pypy following what is posted here, using the build PyPy support as a plugin method. http://uwsgi-docs.readthedocs.org/en/latest/PyPy.html I have seemed to manage to ...
0
votes
2answers
299 views

uWSGI and python virtual env

I'm trying to use uWSGI with a virtual env in order to use the Trac bug tracker on it. I've installed system-wide uwsgi via pip. Next, I've installed trac in a virtualenv $ virtualenv venv $ . ...
6
votes
1answer
150 views

Why do I need nginx when I have uWSGI

There are many tutorials on how to configure nginx to cooperate with uWGSI when I want to deploy Django application. But why do I need nginx in this kit? uWSGI itself can serve WSGI Python ...
0
votes
0answers
69 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 ...
1
vote
0answers
1k 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
128 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 ...
3
votes
0answers
169 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
177 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
76 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
1answer
127 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
1answer
102 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 ...
1
vote
1answer
237 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
2answers
241 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
0answers
79 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 ...
-1
votes
1answer
552 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
2answers
75 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
672 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
40 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
437 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
114 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 ...
3
votes
1answer
405 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 { ...
3
votes
1answer
888 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
812 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
651 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 ...
1
vote
0answers
238 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
458 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 ...