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
10 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
13 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
27 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
29 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
29 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 ...
1
vote
1answer
68 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
239 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 ...
0
votes
1answer
33 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
106 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
146 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
56 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
397 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
25 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
351 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
370 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
134 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
120 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
304 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
316 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
47 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?
1
vote
1answer
464 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
302 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
418 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
69 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
433 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 ...
0
votes
1answer
401 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 ...
1
vote
1answer
102 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
316 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 ...
0
votes
1answer
237 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 ...
0
votes
1answer
125 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
238 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
157 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
55 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 ...
0
votes
2answers
168 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
236 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
422 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
33 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
66 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 ...
5
votes
1answer
433 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
118 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 ...
1
vote
1answer
309 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
191 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
782 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 ...
1
vote
1answer
99 views

API and main page as two separated processes

SITUATION I created an REST API for my mobile application and now I want to create a website. API so far is very very simple, just for a couple requests like 'get list of contents', 'update some ...
0
votes
1answer
629 views

Strange behavior with supervisor, gunicorn and Django

I have a really strange problem with supervisor and gunicorn. I read supervisor documentation, all the relevant blog posts, stackexchange questions but none of them solve my strange problem, and I ...
2
votes
1answer
4k views

Gunicorn behind apache link to localhost

I have a gunicorn serving a flask application behind Apache using mod_proxy. Gunicorn is on http://localhost:8080/. Let's say my server is on http://example.com/ Sometimes when I post an invalid ...
0
votes
0answers
345 views

400 error with nginx subdomains over https

Not sure what I'm doing wrong, but I'm trying to get gunicorn/django through nginx using only https. Here is my nginx configuration: upstream app_server { server ...
0
votes
1answer
198 views

Scalable django app, should message queue be located on load balancer or app server?

I've just architected my first scalable backend for a django app, however I put the message queue service (RabbitMQ) on the load balancer machine. I was able to siege some of my API routes with up to ...