0
votes
1answer
18 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
2answers
34 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 ...
0
votes
0answers
37 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 ...
1
vote
0answers
68 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
162 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 ...
0
votes
0answers
142 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
129 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
50 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 ...
0
votes
0answers
330 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
69 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
0answers
159 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
220 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
152 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, ...
1
vote
1answer
122 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. ...
0
votes
0answers
74 views

Issue with Nginx and Gunicorn with POST requests over ~8kb

I have a very peculiar issue with Nginx, Gunicorn and Django. Here's a breakdown of what I'm experiencing: Post requests > ~8K that go through Nginx to Gunicorn to a valid Django URL/view fail. ...
2
votes
1answer
904 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
227 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
816 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
435 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 ...
0
votes
0answers
18 views

Configuring gunicorn with django

I'm new to deploying gunicorn with django. I followed given url to configure gunicorn and nginx with django: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ ...
0
votes
1answer
530 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
240 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
350 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
313 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): """ ...
1
vote
1answer
300 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
0answers
385 views

Nginx Unix vs TCP sockets

I had a scalability problem on a Django website, basically with 4000 online users the website was not accessible, I run some load test: ab -n 1000 -c 100 http://www.domain.com/ The performance was ...
0
votes
1answer
681 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
499 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
68 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). ...
5
votes
1answer
86 views

Storing secure keys on Ubuntu web server

I'm running Ubuntu 12.04 Precise with a DUNG (Django, Unix, Nginx & Gunicorn) environment and my app (as well as various config files) is stored in a python virtual environment inside /srv, which ...
1
vote
0answers
268 views

Nginx > Varnish > Gunicorn Error Too many Redirections

I have the following config: Nginx > Varnish > Gunicorn > Django I want to cache 2 versions of same site (mobile & web) with Varnish. Gunicorn : WEB: gunicorn_django --bind 127.0.0.1:8181 ...
1
vote
0answers
192 views

Stress testing Django app - how to improve throughput?

I'm having my first attempt at stress testing a simple django web app running from gunicorn and nginx which I’ve put on a small 256MB Rackspace Cloud server. Using httperf, I increase the number of ...
1
vote
2answers
345 views

NGinX config for Django and Wordpress in subdirectory

I need to set up a Django site at the root of a domain, but then have a Wordpress installation in a subdirectly (e.g. /blog/). How would one configure NGinX to do this? "Pretty" URLs have to work for ...
1
vote
1answer
1k views

Getting a “403 access denied” error instead of serving file (using django, gunicorn nginx)

Getting a "403 access denied" error instead of serving file (using django, gunicorn nginx) I am attempting to use nginx to serve private files from django. For X-Access-Redirect settings I followed ...
1
vote
3answers
1k views

gunicorn + django + nginx unix://socket failed (11: Resource temporarily unavailable)

Running very high volume traffic on these servers configured with django, gunicorn, supervisor and nginx. But a lot of times I tend to see 502 errors. So I checked the nginx logs to see what error and ...
0
votes
1answer
258 views

Nginx and Gunicorn hanging on GET requests

I'm using Nginx + Gunicorn which is serving my Django project. All GET requests hang for ~1 min. The content seems to be available immediately as I can see it in the Browser inspector but the browser ...
0
votes
1answer
155 views

How to add php to a linux (ubuntu) server already running nginx + gunicorn + django

I have been running a django app on nginx using gunicorn on Ubuntu (now version 12.04) for some time now, and have been pleased with the results. My issue is that I have inherited a php site which I ...
1
vote
2answers
814 views

“Connection in use” running Gunicorn using VirtualEnv

I am trying to set up a development environment using Gunicorn and NGINX. While following this tutorial: http://ijcdigital.com/blog/django-gunicorn-and-nginx-setup/ I get the following error: ...
0
votes
1answer
204 views

Django hosting on linux - what's the most memory-efficient technique?

I've got a VPS (Ubuntu 10.04, 512MB) on which I host 10-15 django sites, most of which have intermittent traffic. I'm wondering what the best hosting technique is in this situation, where the ...
2
votes
1answer
2k views

UnicodeEncodeError when uploading files in Django admin

Note: I asked this question on StackOverflow, but I realize this might be a more proper place to ask this kind of question. I'm trying to upload a file called 'Testaråäö.txt' via the Django admin ...
4
votes
2answers
3k views

Long running requests with gunicorn + nginx

I've put together an integration server for our Django-powered application. A few of the features are still experimental, and result in overly long requests. I'm okay with the poor performance, for ...
6
votes
1answer
4k views

Django + gunicorn + virtualenv + Supervisord issue

I have a strange issue with my virtualenv + gunicorn setup, only when gunicorn is launched via supervisord. I do realize that it may very well be an issue with my supervisord and I would appreciate ...