A Python WSGI HTTP Server for UNIX, light and speedy. It's a pre-fork worker model ported from Ruby's Unicorn project. http://gunicorn.org

learn more… | top users | synonyms

0
votes
0answers
17 views

Nginx 502 timeout error while using Registration with Django

I am using Django-registration-redux as email app to send registration emails and I am getting error while configuring it with Zoho.com. Following is my code for Nginx datahunt: upstream ...
0
votes
1answer
8 views

Gunicorn intermittently returning HTTP502

I'm running gunicorn 19.5.0 with 3 workers and a 30 second timeout on a single Xeon core. Gunicorn is sitting between nginx and postgres. Ngix is on the same server as gunicorn (the webserver), ...
0
votes
1answer
38 views

nginx + gunicorn caching pages

I have a simple web app running behind nginx using flask+gunicorn and somewhere along the line a stale version of the page is being cached. My nginx config has add_header Cache-Control no-cache; and ...
0
votes
1answer
111 views

Docker how to Django + uwsgi/gunicorn + nginx?

I can't get my head around on what's the "correct" way to deploy a Django project that uses uwsgi/gunicorn (I haven't decide yet what to use, probably uwsgi since it has better performances, ...
2
votes
1answer
114 views

Keepalive setting for Gunicorn behind ELB without Nginx

Our app's REST API is served by Gunicorn (not behind Nginx) running on AWS EC2 instances with a typical auto-scaling/load balancing setup. The load balancer's idle timeout is 60 seconds, and Gunicorn'...
0
votes
0answers
16 views

Apache Reverse Proxy to Socketfile

I have a gunicorn server that is bound to a socket file, now I want the Apache Server to ReverseProxy to this connection (I know that nginx can do this with ease) how would I do this with Apache?
1
vote
0answers
31 views

Nginx+gunicorn 404

supervisorctl says that gunicorn procces have a RUNNING state and I thought that it is success. But something is wrong yet. Resource available only by IP Nginx config: upstream hello_app_server { ...
2
votes
0answers
36 views

What is the right way to host different Django apps as nginx locations

I have a static website (www.example.com) and a Django app (example.com/app1) running on a single server machine (machine 1). Both the website and the app are served using nginx. I am using gunicorn ...
1
vote
0answers
38 views

Gunicorn root view no longer works with SSL nginx proxy

I have a Django project that shows a login view on the root directory. Here's the url pattern: url(r'^$', views.login_view, name="root_login") This works on an unencrypted connection: when I visit ...
0
votes
0answers
38 views

Amazon EC2 public DNS not working, getting nginx needs to be configured screen

I have successfully deployed a Django project. The Both the IP address and the domain name work. The Amazon EC2 public DNS doesn't work. When I navigate to http://ec2-54-218-54-156.us-west-2.compute....
1
vote
1answer
74 views

Nginx and Gunicorn 'err_conn_refused', but nginx not logging error

I've been playing around with Django Cookie Cutter for local projects, and wanted to put it on my DO Droplet as a semi-production staging environment. The server is set up with Nginx reverse ...
0
votes
2answers
307 views

Can nginx run both for gitlab and taiga.io on the same VM?

I having troubles running GitLab and Taiga.io on the same VM (i.e. sharing the same IP). Both use nginx. My VM runs Debian 8. I have followed the classical Omnibus installation of GitLab for Debian 8,...
0
votes
1answer
49 views

What user should run the gunicorn process?

When running a Django application on a Debian server, should you create some sort of application user (e.g. "myappuser") and run the gunicorn process as that user or can/should gunicorn be run as ...
0
votes
0answers
131 views

Gunicorn Flask Deployment with Supervisord doesn't find command on boot

I am deploying a Flask application with Gunicorn, Nginx and Supervisord. Here is my config file for the application: [program:apwd-flask] command = /home/aaron/dev/apwd-flask/venv/bin/gunicorn --...
0
votes
0answers
167 views

Multiple Gunicorn daemons for Django projects with Nginx result in 502 Bad Gateway for one

I want to run two Django applications on the same server, with Nginx and Gunicorn. I can run them separately, but not both at the same time: When I try, one is OK, but for the other one I receive 502. ...
0
votes
2answers
64 views

Nginx configuration for long-running tasks

I have a web-based application that conducts some linguistic analysis of user-submitted texts. This is a rather memory-intensive task and typically takes an extended period of time (e.g., up to 3 ...
0
votes
0answers
8 views

Flask Deployment - Security/clone

I've recently deployed a flask app with Gunicorn to a VPS. Within 4 days of deploying I found an exact copy of my flask app in France - assuming by the French domain. A few days later I had a worker ...
2
votes
3answers
657 views

How to run Gunicorn upstream with an Nginx SSL configuration?

I have an nginx server with an SSL certificate installed. I want to pass any requests upstream to my Gunicorn server running at 0.0.0.0:8000. However, whenever I run the Gunicorn server, it gives me ...
0
votes
0answers
43 views

guncorn supervisor service is automatically getting restarted nginx

I am getting trouble for keeping service constantly running. my job_name.conf [group:job_name] programs=gunicorn_job_name [program:gunicorn_job_name] command=/var/www/job_name/bin/gunicorn_django -...
1
vote
1answer
413 views

setup ssl on nginx for a django project

I want to setup ssl for nginx, my project is a django and i also use gunicorn as wsgi http server. I add following lines in my settings.py code : CSRF_COOKIE_SECURE = True SESSION_COOKIE_SECURE = ...
-2
votes
1answer
399 views

Sending emails via django does not work on Gunicorn / NGinx`

I am trying to send an email from my django application. However, this does not work on my NGINX (used for static resources) + GUNICORN Server. But, the same works on django's default webserver. I ...
1
vote
1answer
148 views

nginx redirect ip to domain name

I am trying to deploy a website with nginx and gunicorn. Nginx is serving static files and acting as a proxy to gunicorn. Here is the content of my /etc/nginx/sites-available/herbop file server { ...
1
vote
0answers
148 views

Supervisor doesn't run gunicorn with django

I want to run supervisor in my Django server with gunicorn and Nginx, but when I run "supervisord" the supervisor log says: 2015-11-06 23:23:36,746 INFO daemonizing the supervisord process 2015-11-06 ...
0
votes
0answers
331 views

duplicate upstream “app_server” in /etc/nginx/sites-enabled/django (nginx, Django)

I have an error with my nginx setup. I use digital ocean, and tried to point my domain to my droplet (a digital ocean partition) and when I visited it, I get a blank django app: Using the URLconf ...
0
votes
0answers
385 views

Nginx 502 Bad Gateway

Server X and Server Y are two virtual machines in different locations running with the same specs: Ubuntu 14.04.3 LTS 64-bit 8 CPU cores 12 Gb RAM They are both running the same Django application ...
1
vote
0answers
48 views

ReverseProxy with NGINX: hide second app instance [closed]

I have two instances running on same Azure VM server on Ubuntu 12.04. Azure gives me by default PUBLIC VIRTUAL IP (VIP) ADDRESS and INTERNAL IP ADDRESS so configuring passproxy is not so obvious. ...
0
votes
0answers
74 views

How to tell what nginx and Gunicorn are listening to?

I'm having issues getting a nginx - gunicorn server running, on Ubuntu server. What commands can I use to tell what ports and sockets nginx and gunicorn are listening to?
2
votes
1answer
558 views

502 bad gateway: nginx & gunicorn

I'm getting a 502 error, here's the nginx log: 2015/09/04 15:25:31 [error] 1563#0: *1 connect() to unix:/home/90158/test/test.sock failed (111: Connection refused) while connecting to upstream, ...
1
vote
0answers
382 views

Can't connect to (or write to) a socket file, despite being owner?

I am working on Debian Jessie with Django 1.8, trying to set up Gunicorn to run my Django site. I have made a user called opuser, and made this user the owner of the gunicorn.sock file and of the ...
0
votes
0answers
445 views

Nginx 400 Bad Request on ec2 Public IP works, but domain name does not

A couple days ago, my ubuntu t2.micro ec2 instance stopped working. I just got it restarted again, but now only my public IP address given by amazon works. The domain name I bought does not. It worked ...
0
votes
1answer
74 views

SSL off for a specific URL Nginx

This configuration was working before, and now it is not. I should mention this is Django,Gunicorn, and Nginx. We are trying to make https://toontowninfinite.com/rpc/ use http, not SSL. and the rest ...
0
votes
1answer
459 views

nginx - 502 Bad Gateway ubuntu 14.04 aws ec2 django project + gunicorn

I'm trying to get my django project up and running on an aws ec2 instance. I'm using gunicorn with nginx, and I'm not really sure how I can tackle this problem. I've spent a couple hours on it already,...
0
votes
1answer
442 views

Running Nginx as reverse proxy for gunicorn and apache2

I want to use nginx as a reverse for apache and gunicorn location / should be handled by apache location /webapps/should be handled by gunicorn upstream gfbu_app_server { server unix:/...
1
vote
1answer
132 views

nginx suspicious symbols warning in my nginx config file

My nginx configuration file is given below. server { listen 80; server_name http://hg.rawdatatech.com; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; ...
0
votes
0answers
361 views

no module named 'project' in gunicorn using Django 1.8 & python 3.4

I've deployed with ansible a project using Django 1.8 and python3.4 in a virtualenv folder. For my projects including settings and wsgi in a config folder it works, the deployment is fine and it works....
0
votes
1answer
267 views

Proxying a Flask app with gunicorn and nginx

I have a Flask application that is currently being server on a machine (call it first_vm) using the following command in supervisord: gunicorn run:app -b 0.0.0.0:8002 -k socketio.sgunicorn....
0
votes
1answer
147 views

Nginx + Gunicorn not handling 1000 concurrent users?

I'm running a site with 2 cores on the machine, and nginx(2 processes) and gunicorn(5 workers) serving a flask app. I did a stress test using locust.io to similulate 500 users, and the site breaks ...
1
vote
1answer
276 views

gunicorn behave differently when run from terminal and by service

I am using nginx+gunicorn+django for my website. The following is my gunicorn.conf file: description "Gunicorn daemon for Django project" start on (local-filesystems and net-device-up IFACE=eth0) ...
1
vote
0answers
170 views

Django + gunicorn + nginx concurrent users on default configurations [closed]

I am currently setting up nginx+gunicorn to serve a django app that is going to be used by at most 60 users following THIS tutorial. The app is pretty basic, 6 django forms made out of 10 fields and ...
0
votes
1answer
57 views

Can I double my throughput when I double my cores? [duplicate]

I currently have an server with an E5-2620V3 6 cores cpu. I run an python app using nginx and gunicorn. If I load test the app with 150 clients in a continuous loop it has a throughput of 20k req/...
0
votes
2answers
202 views

Why is this Nginx setup not caching responses?

I have Nginx sitting in front of gunicorn, which in turn sits in front of a django application. The core question is "Why are my responses not being cached?" However, I'm pretty green at this, so ...
2
votes
1answer
259 views

Nginx + GUnicorn + Flask + www-data user - file lockdown

I have some pretty basic questions about I am deploying a Flask application in Gunicorn (19.0-1) on Ubuntu (14.10) in combination with Nginx. Since this app sits along side to Web2Py, I followed a ...
2
votes
1answer
504 views

Nginx and gunicorn are not displaying the whole page (caching issue)

I have a django application, which works fine on django's server. I just configured it to work with nginx and gunicorn. Almost every page works just fine except for one of them. It is a pretty big ...
0
votes
1answer
35 views

gunicorn call fails every 6th time

i have a bottle app that has an endpoint that gets a timeout every 5th or 6th time i hit it (in my case, i just refresh every second to replicate) when it works successfully, it takes ~ 150ms to load ...
0
votes
0answers
68 views

How to use ssl everywhere except an endpoint

I have a Web site where I want all requests to be done with HTTPS except for requests to urls with paths that start with /out/. nginx is configured as proxy to serve gunicorn/django content from http:...
5
votes
1answer
467 views

gunicorn 19.2 fails to start with 18.0 configuration

I've got a dev server running gunicorn/Django behind nginx. As part of a wider server environment update, I attempted to upgrade gunicorn from 18.0 to 19.2.1, but the service would no longer start. (...
0
votes
0answers
129 views

Enable cache headers on Nginx

I'm trying to make cache work on a Nginx which is a proxy for gunicorn or which serves directly static files. I tried to add: location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { root /home/...
1
vote
1answer
337 views

Wrong IP with lighttpd reverse proxy

I use a lighttpd reverse proxy to serve django with gunicorn. Now this config worked: proxy.server = ("" => ( "" => ( "host" => "127.0.0.1", "port" => 8000, ))) Now i moved the ...
2
votes
0answers
208 views

File upload through Nginx with proxy_pass to Gunicorn is slow (Ubuntu 14)

I previously was running Ubuntu 12 where I had Nginx receive large file uploads, and then proxy_pass it to gunicorn / django (port 8000). This worked fine once I figured out I needed to set ...
6
votes
1answer
869 views

gunicorn not fully reloading after an HUP signal

I'm trying to get a working supervisor/gunicorn/django setup on vagrant. I am using python-watchdog to try and restart gunicorn when code changes happen. I am using the following supervisor ...