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

-1
votes
0answers
7 views

Gunicorn slow requests against dev server [closed]

My Flask application has a simple feature with a textarea where you input HTML and clicking on a button will strip all the HTML tags and return the text inside the HTML into another textarea, say ...
0
votes
0answers
38 views

nginx load balance not increasing request per minute

I have a flask app deployed on a gunicorn server and another server with nginx as reverse proxy. The issue is when I add one or more servers running gunicorn and use nginx to load balance, the ...
1
vote
1answer
26 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 ...
-1
votes
0answers
35 views

django dev server and gunicorn +ngnix different response

I have a Django based web app which performs tasks of ~30sec. If I call the task method using the Django dev server I get the correct result, whose is specifically an XML response. If I call the task ...
0
votes
1answer
59 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 ...
0
votes
1answer
126 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
98 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
69 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 ...
0
votes
1answer
564 views

Internal Server Error when running Gunicorn as a service

I'm trying to deploy my Django app for the first time on a Digital Ocean VPS. I've used their Django droplet which setup things like this except I'm not using a virtual environment. After adding my ...
0
votes
0answers
111 views

Nginx returning 500 Error instead of 400 Error

On validating user input into my api, I want to return 400 http status codes for bad requests. It works fine from flask and when running my api through gunicorn, but they always come out of nginx ...
0
votes
1answer
248 views

Howto rewrite URLs with two nginx as reverse proxies to gunicorn/Django

I have a Django application, deployed with gunicorn on port 8000, on a VM with a backend nginx, port 80, on the same VM. The nginx config is: location / { proxy_http_version 1.1; ...
0
votes
0answers
73 views

When I auto-start Supervisord on boot, the [program:start_gunicorn] don't start

The [program:start_gunicorn] is running with no error when I manually start supervisord with this setup. [program:start_gunicorn] command=/env/nafd/bin/gunicorn_start priority=1 ...
1
vote
0answers
148 views

Nginx not getting the real visitor IP in server block

I am using a loadbalancer in my current setup, requests come from ip 10.71.128.13. I am using Nginx as a front to a Gunicorn backend. I want to get the real IP address of the visitor and log it (not ...
0
votes
2answers
418 views

Django fails to find static files served by nginx

I know this is a really noobish question but I can't find any solution despite finding the problem trivial. I have a django application deployed with gunicorn. The static files are served by the ...
5
votes
1answer
316 views

nginx terminates connection after 65k bytes

I've got nginx configured as a front-end to a Python application running under gunicorn, but nginx is terminating connections after about 65k of data have been sent. For example, I've got a view ...
0
votes
0answers
72 views

Deploying Gunicorn behind a Proxy Server like NGINX

What is the best practice for deploying Gunicorn with NGINX? Is it a good idea to run the proxy server on the same box that is also running Gunicorn? Wouldn't they compete for resources such as memory ...
0
votes
0answers
55 views

Run Django on Gunicorn with Python 3.3

How would one go around to run Django on Gunicorn using Python 3.3 on an Ubuntu 12.04 LTS Server? As Ubuntu 12.04 LTS is dependend in Django 2.7, Python 3.3 has to be installed side-by-side with ...
0
votes
1answer
264 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) ...
1
vote
0answers
144 views

Error message before downtime: posix_memalign(16, 4096) failed (12: Cannot allocate memory)

I have a server running Django on top of Gunicorn and Nginx, and I experienced a small amount of downtime last night. After restarting Nginx and Gunicorn the server went back to normal, but I can't ...
0
votes
2answers
475 views

Can't start Gunicorn via Supervisor after server reboot

I have a Django application "djngxgun" that uses Nginx and Gunicorn. I just installed Supervisor so that I can use it to manage my Gunicorn processes. The problem is that Supervisor isn't starting ...
1
vote
0answers
286 views

Connection refused while connecting to upstream from nginx to gunicorn_django

I'm trying to get my server back online after an upgrade, and I can no longer seem to get Nginx to direct calls to Gunicorn - every request I send to the site gets back a 502 Bad Gateway. I have ...
0
votes
0answers
319 views

Django, Nginx & Gunicorn - strange server crash

My server had an outage over the weekend, in which every user got a 500 internal server error and the site was inaccessible. Restarting Gunicorn and Nginx solved the problem, and checking the logs I ...
0
votes
0answers
90 views

nginx and gunicorn configuration test using ab-BenchMark

I am using c1.medium (2 cores, 2gb) with nginx web server and gunicorn app server.I am running this with 5(2*cores+1) gunicorn workers. how can i improve my server performance??? Here is my nginx ...
3
votes
1answer
455 views

Deploying CherryPy apps: Standalone, WSGI Server or NGinx?

I intend to use a single VPS to deploy multiple low-traffic CherryPy apps as subdirectories; eg: example.com/app1, example.com/app2, etc. After researching on WSGI deployment, it looks like the ...
0
votes
0answers
1k views

Abormal error when attempting to restart gunicorn on ubuntu server

im running a fabric script that, amongst other things, is supposed to restart gunicorn on an ubuntu server, the command is below: supervisorctl status projectname:gunicorn | sed "s/.*[pid ...
0
votes
1answer
100 views

How can I get a Django Gunicorn project served up?

I have a Django project that was working on a development server and I am trying to move it to an Ubuntu production server. I've started, with apparent success, a "python manage.py run_gunicorn ...
1
vote
1answer
241 views

Trying to run gunicorn from supervisor gives error - error: class uri 'simple' invalid or not found

I am already running successfully 2 django projects (in same virtualenv with python 2.7) with Django + gunicorn + virtualenv + Supervisord environment. But now i am trying to run another project in ...
-3
votes
1answer
368 views

Change request URL setting in my Django Project with 'Nginx'

I am using Django with Nginx and Gunicorn. When I type in https://DomainName[dot]com in the browser below is the message that I get. Page not found (404) Request Method: GET Request ...
1
vote
0answers
238 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
0
votes
1answer
105 views

nginx: SSI working on Apache backend, but not on gunicorn backend

I have nginx in front of an Apache server and a gunicorn server for different parts of my website. I am using the SSI module in nginx to display a snippet in every page. The websites include a snippet ...
0
votes
2answers
102 views

How to choose a web server for a Python application? [closed]

Information and prerequisites: I have a project which is, at its core, a basic CRUD application. It doesn't have long running background processes which it forks at the beginning and talks to later ...
0
votes
1answer
172 views

How to have SSL on Amazon Elastic Load Balancer with a Gunicorn EC2 server?

I'm a self taught back end engineer so I'm learning all of this stuff as I go along. For the longest time, I've been using basic authentication for my users. Many developers are advising against this ...
1
vote
1answer
186 views

nginx is no longer working on ec2 instance

i admittedly ran this: sudo update-rc.d nginx defaults which seemed to wipe out the setup of nginx. Nginx commands like sudo service nginx start, etc no longer return anything when executed. ...
2
votes
1answer
2k views

Supervisor process exits with 'exit status 1; not expected'

I'm trying to run a gunicorn_django process in supervisor but it always exits immediately, giving this error: INFO exited: my_app (exit status 1; not expected) INFO received SIGCLD indicating a ...
0
votes
1answer
343 views

Gunicorn error: “Error opening file for reading: Permission denied”

I'm getting an error when running my Django app with gunicorn: when I make a post request over 7800 bytes I see the following error from gunicorn: "Error opening file for reading: Permission denied". ...
0
votes
2answers
2k views

Nginx + Gunicorn + Django - nginx not allowing static files

Updated Code - this is still not working though. Settings.py STATIC_ROOT = '/home/ubuntu/virtualenv/mysite/homelaunch/static/' STATIC_URL = '/static/' nginx conf :: /etc/nginx/sites-enabled/mysite ...
0
votes
1answer
894 views

Apache as a reverse proxy not working for gunicorn

My Goal is to let client connect through https connection but apache serve it to my application which is running on same server over http. Here is my minimalistic apache configuration file (for ...
1
vote
0answers
67 views

Does my deploy user need to belong to the sudoer list for Upstart to start GUnicorn?

Does my deploy user need to belong to the sudoer list for Upstart to start GUnicorn? Here is the error from my Upstart log deploy is not in the sudoers file. This incident will be reported. It ...
2
votes
1answer
797 views

Static file permissions with Nginx, Gunicorn and Django

I attempting to setup a Nginx server up with a Gunicorn WSGI server running Django behind.. The setup all seems to runs except i have a permissions issue. I have setup aliases to /media and a /static ...
0
votes
0answers
333 views

Nginx, Django, Gunicorn work slow in specific situations

My problem is that when I log on to my application via facebook, or send an email it takes a very long time ( about 1-2 minutes ). In other situations site is reacting almost instantly. My application ...
0
votes
2answers
566 views

File uploads and client_max_body_size in nginx + gunicorn + django

I need to configure nginx + gunicorn to be able to upload files greater than the default max size in both servers. My nginx .conf file looks like this: server { # ... location / { ...
0
votes
2answers
443 views

Preserve http headers from Django using NGINX and Gunicorn

I'm setting some non-caching headers in a Django middleware to control caching of xhr request. Mostly because IE is caching ajax request heavily. class NeverCacheXhrMiddleware(object): """ ...
0
votes
1answer
234 views

To properly run Nginx in front of Gunicorn, is it a bad idea to run them on the same machine?

I'm using AWS and currently use ELB (for load balancing and HTTPS termination) in front of two EC2 boxes that are running Gunicorn. For pretty clear reasons (routing certain requests for static ...
1
vote
2answers
377 views

What is the purpose of running nginx infront of your app servers on Amazon EC2?

I've been doing a lot of research into back-end architecture. I'm currently running a django app server and a postgresql database server on Amazon's Web Services. All of my content is served through ...
1
vote
1answer
473 views

Debugging Gunicorn + Nginx + Django

I'm trying to deploy a readthedocs instance on my own server. The recommended way to deploy is using Gunicorn + nginx with postgres. Because there's basically no documentation on how to do this ...
0
votes
1answer
1k views

How to resolve the gunicorn critical worker timeout error?

I have used nginx and gunicorn to host my website in two servers, Both server have same versions of packages and website is successfully hosted, But in one of my server gunicorn always gets timeout ...
1
vote
3answers
1k views

Nginx is not running. Not getting any errors

If I run: $ sudo service nginx status * nginx is not running Then I run: $ sudo service nginx start Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: ...
0
votes
1answer
909 views

gunicorn working vs uwsgi timeout

I've setup my Python / Django app on a vmware machine with CentOS, uwsgi and gunicorn along with all my apps dependencies. After running my app with gunicorn with the following command: gunicorn ...
0
votes
1answer
728 views

nginx, gunicorn and django weird 504 gateway timeout

I have an nginx / gunicorn / django setup as follows: Nginx server { listen 80; server_name myserver.com; root /www/python/apps/pyapp/; access_log ...
0
votes
1answer
72 views

Deploying django for lot of sites with low traffic [duplicate]

Possible Duplicate: Can you help me with my capacity planning? I am looking for advice for our web server configuration. SaaS model startup (same app, different databases and subdomains). ...