The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
14 views

Running (and monitoring) nginx with supervisord

I will start with my use case, since I very well may not be using the correct tools for this job. Please let me know if I am going about this all the wrong way use case: I have a CentOS server ...
1
vote
3answers
71 views

nginx failed (13: Permission denied) uwsgi (502 bad gateway)

I am having trouble running my application on a new DigitalOcean droplet. The machine runs CentOS 6.5 My /etc/nginx/nginx.conf user nginx www-data; worker_processes 1; error_log ...
1
vote
0answers
22 views

Trouble with Uwsgi settings

I have a uwsgi ini that looks like this: [uwsgi] socket = :8001 processes = 4 master = true wsgi-file = /project/dev/myproject/conf/deployment/wsgi/dev/myproject-site.wsgi harakiri = 30 daemonize = ...
0
votes
0answers
15 views

uWSGI suddenly won't start again after server crash on Debian

After my server crashed i am unable to start uWSGI again, and keep getting following errors on unlink() and bind(). I start my service as root, so it makes it even more strange. Sun Nov 16 15:25:24 ...
0
votes
1answer
10 views

uWSGI writes log as root

I have following uwsgi.ini: [uwsgi] uid = myuser gid = myuser master = true daemonize = /path-to-log/uwsgi.log ... I run uwsgi in rc.local. I can see workers run as myuser, I can see uwsgi switches ...
1
vote
0answers
48 views

Pyramid + Nginx + uWSGI Server 500 Errors

I have a uWSGI application written in Python using the Pyramid framework. Nginx is configured like below (I left out a few bits, but I don't think they will matter): upstream uwsgicluster { ...
0
votes
1answer
40 views

How to run WSGI-file with Nginx

I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file. Now, i have a wsgi-file, but how can i execute this with ...
0
votes
1answer
65 views

uWSGI cannot load virtualenv

I'm setting up a Python app using nginx and uWSGI. My dependencies are in a virtualenv. If I activate the virtualenv manually, everything works by running this command: uwsgi --ini uwsgi.ini But if ...
-1
votes
0answers
79 views

Nginx cannot connect to .sock file

2014/10/25 03:42:06 [error] 2324#0: *708 connect() to unix:/tmp/steam.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: xx.xx.x.xxx, server: steam.uwot.me$ I ...
0
votes
0answers
109 views

uWSGI appears to be losing requests

I'm seeing the following in the uWSGI logs, specifically ...The work of process 43017 is done. Seeya!: [pid: 43017|app: 0|req: 103/114] 207.140.171.16 () {50 vars in 847 bytes} [Fri Oct 17 12:59:49 ...
0
votes
0answers
66 views

uwsgi cannot start or stop correctly

I have setup uwsgi and it seems to be working along with nginx, but when i (1) start the service it says it has failed to start, but it is running in the background, (2) when i attempt to stop it, it ...
0
votes
1answer
55 views

Different Python versions under the same uwsgi Emperor?

I'm running an uwsgi Emperor with various Vassals that each serve a specific Python app from a different virtualenv. Since uwsgi was compiled with it's own Python 2.7 interpreter, trying to use a ...
1
vote
3answers
91 views

Increasing nginx performance past 1k req/s

I am trying to scale an nginx installation to the best of it's ability. I am running one nginx instance with 6 worker_processes (6 cores) and 5 backend servers consisting af a uwsgi setup with 10 ...
0
votes
0answers
25 views

Webserver needed for django WSGI API?

My app is just a REST API written in django. There is no static content or html pages served. In setting up our production environment, we are planning on using amazon ELB (load balancer) to balance ...
0
votes
1answer
46 views

Nginx/uWSGI Flask app suddenly return 401

I'm kind of new to deploying uSWGI python apps behind nginx as a reverse proxy, but so far I have had no trouble at all. I have a small linode where I deploy all my python webapps simultaneously. As ...
0
votes
1answer
56 views

How do I properly chroot Nginx and uwsgi?

I have a pretty good idea of how to do this, I just wanted to make sure I wasn't going to be seriously screwing stuff up before I deployed it. I have a web application which uses uwsgi and nginx, and ...
0
votes
1answer
121 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
194 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
163 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
151 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
43 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
24 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
91 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
39 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
61 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
82 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
55 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
30 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
167 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
1k 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
63 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
62 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
191 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
261 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 ...
1
vote
0answers
135 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
54 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
492 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
164 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
112 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
109 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
447 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
1k 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 $ . ...
9
votes
1answer
401 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
97 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 ...
2
votes
0answers
2k 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
264 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
1answer
270 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
262 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
114 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
515 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 = ...