Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gunicorn]

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

0
votes
0answers
23 views

Trying to setup a Django app using gunicorn and systemd

Trying to setup a Django app using Gunicorn and Systemd while following this tutorial by DigitalOcean. When I run curl --unix-socket /run/gunicorn.sock localhost, it returns with curl: (56) Recv ...
0
votes
1answer
54 views

Flask WSGI vs Nginx/Gunicorn: mailing list works in dev but not production

I have deployed a Flask web app to a Digital Ocean droplet running Ubuntu 18.04. The web app is simply a landing page that has a single form that adds a visitor's email address to a Mailchimp mailing ...
0
votes
2answers
70 views

huge traffic from different IPs on my ubuntu vps

I've change my vps recently, vps provider told me that he has backed up my VPS hdd from previous server and deployed it on the new server and changed just my ip, but now I have a huge traffic and ...
0
votes
0answers
102 views

Back-end request to Gunicorn/Flask in Docker network: Should I use Nginx?

There are a lot of clear answers to the question on why one should use Nginx in a classic 3-tier architecture with a Gunicorn/Flask app where you also serve static content. The architecture I want to ...
-1
votes
0answers
9 views

Should I only use Gunicorn for my Django app? [duplicate]

I have a django project that only has APIs which the clients will use and no static contents. I wanted to know if it is good practice to deploy my project using only Gunicorn with some process ...
0
votes
0answers
60 views

redis not following redis.conf settings

I am running redis server and have set the dir to /var/lib/redis and dbfilename to dump.rdb in the redis.conf file but i notice redis starts to produce these errors below 120844:C 23 Sep 02:59:31.098 ...
1
vote
1answer
607 views

Static files are not found when running django + gunicorn + nginx on docker

I know it's well answered question but non of ones I've found seems to work for me. I have simple django project and I'm trying to run it on Docker with gunicorn and nginx. Below is my configuration ...
0
votes
1answer
325 views

Apache 502 Error With Upstream Proxy Raising 413

We have a Python Flask API running in gunicorn being fronted by apache. ProxyPreserveHost On <Location /api/v2> ProxyPass http://127.0.0.1:8090/ disablereuse=on SetEnv proxy-sendcl </...
0
votes
0answers
145 views

page 404 served with 200 response status nginx gnunicorn django

I'm setting up error pages on a django site in dev I get the error with the good status code but on production the HTTP responses code does not match, I'm receiving 200 response on 404. I assume that ...
0
votes
0answers
66 views

Gunicorn and Nginx Configuration Settings

I am doing some X-Ray image classification task. However, I am having trouble setting up the nginx and gunicorn configuration. I have a paperspace P4000 machine where I would like to have the webapp ...
3
votes
1answer
305 views

Nginx reverse proxy for gunicorn - trouble passing basic auth credentials to server

I've setup nginx as a reverse proxy to gunicorn for a django site running on Heroku. I'm using Anymail for my mailing list, and it needs to receive basic auth credentials for webhooks (I don't ...
0
votes
1answer
165 views

Django deployment with gunicorn socket set up with systemd, gunicorn not honoring gunicorn.conf file settings on Debian 9.4

I followed the systemd deployment instructions here at http://docs.gunicorn.org/en/stable/deploy.html /etc/systemd/system/gunicorn3.service: [Unit] Description=gunicorn3 daemon Requires=gunicorn3....
0
votes
0answers
312 views

Why is the gunicorn.socket file not being created in the /run directory?

Full disclosure I originally had a gunicorn.socket file in the run directory, but I stupidly deleted it because I thought it might solve another issue. Now I can't seem to get it back. Am I out of ...
0
votes
0answers
46 views

How to configure for many stateless requests?

I am a data scientist / machine learning developer. Sometimes, I have to expose my models by providing an endpoint. I usually do this via Flask and gunicorn: exampleproject.py: import random from ...
0
votes
0answers
265 views

Nginx 404 error with gunicorn on django project

I am trying to follow the https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 guide This is the nginx in /etc/nginx/sites-enabled ...
0
votes
0answers
213 views

Gunicorn Permission denied: '/dev/ttyUSB0'

This is my gunicorn config file, with username specification: $ cat /etc/gunicorn.d/wsgi.work CONFIG = { 'working_dir': '/home/ubuntu/workdir', 'user' : 'ubuntu', 'group' : 'ubuntu', 'args': (...
0
votes
0answers
248 views

nginx container in addition to an Ingress with Kubernetes/GKE when deploying Django with gunicorn

New to the whole Kubernetes thing, so bear with me. I've a django wsgi application I am serving with gunicorn and I'm unsure about the appropriate deployment configuration for a production-ready ...
0
votes
0answers
133 views

Deploying Django with Puppet and Nginx

I'm trying to deploy a django application with puppet and nginx, but I'm having trouble figuring out how to configure nginx to serve static files while Gunicorn is running. Current I have nginx::...
2
votes
0answers
185 views

Gunicorn does not repondes more than 6 requests at a time

To give you some context: I have two server environments running the same app. The first, which I intend to abandon, is a Standard Google App Engine environment that has many limitations. The second ...
0
votes
0answers
1k views

Why gunicorn is not serving static files?

I am having trouble with my django, docker, nginx, and gunicorn setup. I cannot get the static files to show when running the server even after I collectstatic them. And when I have nginx, I either ...
0
votes
1answer
766 views

Nginx, proxy_pass not working with domain name

I'm trying to redirect my domain url to my local server. For some reason it work with the localhost (mapping from http://localhost/ to http://127.0.0.1:5000 works), but I can't make it working with ...
0
votes
0answers
210 views

Failing to connect to mysocket.sock, connection refused (gunicorn, nginx)

Full error: 2018/03/12 04:59:08 [error] 1562#1562: *1787 connect() to unix:/home/mik e/movingcollage/movingcollage.sock failed (111: Connection refused) whil e connecting to upstream, client: 107.205....
0
votes
1answer
553 views

Nginx/Gunicorn taking too long to respond

I have a Django app setup to serve static files via Nginx and the upstream running through Gunicorn to run the Django app with a PSQL database residing on a dedicated server. The problem is that the ...
0
votes
0answers
47 views

Can't access django app via Route 53 domain

I have a Django app on an AWS instance, running with Nginx and Gunicorn. When I access it with the IP address, it works fine. However, I tried to point a domain to this IP, using Route 53 service. I ...
0
votes
0answers
671 views

Deploying Django Project with Supervisor and Gunicorn getting FATAL Exited too quickly (process log may have details) error

Im trying to launch my django project using this tutorial. I am currently setting up gunicorn and supervisor. These are the configs... Here is my Gunicorn config: #!/bin/bash NAME="smart_suvey" DIR=/...
0
votes
1answer
61 views

Django CMS using nginx and gunicorn in virtualenv renders html from version 3.4.4 after upgrade to 3.4.5 - where is the caching?

I set up a django-cms installation version 3.4.4 with nginx and gunicorn. Then I removed the installation and installed the new 3.4.5 version. Pip confirms this worked: (myenv) user@s23:~/myenv$ ...
0
votes
2answers
3k views

Gunicorn not creating socket on nginx

I am trying to setup Django, Gunicorn and nginx. I have configured Gunicorn in order to run, but it seems that I am experiencing a problem with nginx configuration to use Gunicorn. Here is my ...
0
votes
2answers
407 views

Django and Flask on same nginx server with gunicorn

I currently have a Djago app running on my main site when I visit mysite.com. However, I'd like mysite.com/flaskapp to run a separate Flask application. I'm able to set up two nginx site-enabled ...
0
votes
1answer
147 views

journalctl only refreshing after restarting systemd service?

I have a systemd service with gunicorn. I have a print statement in a function.Problem is that, journalctl does not show the print output when i call the function but it shows the output after ...
0
votes
1answer
704 views

Can any virtual environment start systemd gunicorn.service for all virtuenenv?

If you are not working inside an environment, Gunicorn will be installed globally (i.e. available systemwide). This is not recommended. Always opt for using virtualenv. But if you have multiple ...
0
votes
1answer
346 views

django /admin not found

I try to setup Nginx+Gunicorn and when I go by my URL the Nginx redirects request to my app and handles it by itsels for static resource (static folder). Below my Nginx domain config: server { ...
1
vote
2answers
265 views

Graceful web app reloading

I have a WSGI Python app running in via Gunicorn: CONFIG = { 'bind': "unix:{}".format(os.path.join(RUN_DIR, "brain.sock")), 'preload_app': False, # supervisord requires that the child ...
1
vote
1answer
123 views

Killing thousands of extraneous processes on Ubuntu server

I'm using gunicorn 19.7.1 appserver with nginx reverse proxy for a Django project (Ubuntu 14.04 machine). ps aux | grep gunicorn | grep -v grep | wc -l yields 3043 at the moment. Whereas in /etc/...
-1
votes
1answer
68 views

Can I separat nginx, gunicorn and POSTGRES and put them on their own machines? [closed]

I haven't been able able to get an answer to this question I know that we can separate database from the application but can I separate nginx(web server) and gunicorn(application server) too? first ...
0
votes
1answer
349 views

Nginx redirecting every url to localhost

I have a Django website running with Nginx and Gunicorn. Everytime I call a url on the server, example website/url, it redirects to localhost/url. I have given the nginx settings in both nginx.conf ...
-1
votes
1answer
313 views

django+gunicorn+supervisord+nginx redirect happening

I have django application, hosted using gunicorn,supervisord and nginx. Following are the config files nginx.conf upstream app_server { server unix:/home/jfraixedes/run/gunicorn.sock ...
0
votes
1answer
742 views

CSS not working on live Django site

This site is live and hosted with Digital Ocean. I finally got it to work properly, however the css won't work for the site? Here's what I have setup, there are no errors, just the css won't work. I ...
0
votes
2answers
362 views

django query running forever and not timing out

I have some django applications that is killing my mysql server there are queries that are running and not timing out and clogging my mysql server Just need help on how to resolve this issue the ...
0
votes
1answer
2k views

Airflow: Can't connect to ('0.0.0.0', 8080)

I am trying to do some stuff with Airflow.I have installed it with pip(latter in a virtual) but problem is when I want to start webserver. airflow webserver -p 8080 [2017-07-29 12:20:45,913] [4585] {...
2
votes
1answer
5k views

Unable to restart a systemctl service remotely as a non root user

I have a systemd.socket named gunicorn.socket which I would like to restart after updating some code on a remote server. I've followed the steps detailed in Allowing a non-root user to restart a ...
0
votes
0answers
54 views

apache test page shows up on non-apache server

I have a very weird bug on my hands. I'm running a Django server with Nginx and Gunicorn on Ubuntu 16.04. I haven't installed Apache ANYWHERE on my server. But if I load the website, the test page for ...
1
vote
1answer
489 views

Nginx proxy pass to localhost Gunicorn returns 50x error unexpectedly

I have a very basic set up with nginx installed with a django app running on a gunicorn server. The gunicorn conf is simple and below: exec gunicorn myapp.wsgi:application \ --workers 5 --...
-1
votes
2answers
511 views

How to restart gunicorn in Jenkins build?

I'm trying to build a Jenkins job that (1) pulls the latest from Git, (2) builds my Django project, and (3) restarts gunicorn and nginx. However, when I try to restart gunicorn, I get the following ...
0
votes
2answers
370 views

serve static files of a web app having nginx as a proxy

I am trying to use nginx as a proxy for a web app (django running on gunicorn) server { listen 80; server_name registry.blabla; error_log ...
1
vote
0answers
200 views

Gunicorn behind Nginx - high number of TIME_WAIT during load test

nginx version: nginx/1.9.3 gunicorn (version 19.7.1) I have a small flask API running through gunicorn behind nginx. When I load test directly through gunicorn everything is working fine, however as ...
0
votes
0answers
518 views

How long does it take nginx settings to become live after changing them?

I'm trying to deploy nginx on an Ubuntu Server on AWS. However, upon installation of nginx with default settings, it sometimes takes 15-20 minutes for the default nginx page to show up when I visit ...
0
votes
1answer
1k views

How can I get the real remote IP at Gunicorn from NGINX

I get always localhost as remote IP. My application run under Nginx-Gunicorn This is my configuration for nginx: server { listen 80; server_name api.mydomain.com; charset utf-8; ...
1
vote
1answer
151 views

Why is Gunicorn necessary to make Django work with nginx?

Why does Django need a server like Gunicorn to work with NGINx? Why is nginx not enough?
0
votes
1answer
305 views

Handling HTTP flood via webserver configuration (Django app)

A Django based web forum I maintain has recently been subjected to frequent DDOS attacks at the application layer. Essentially, it seems to be an HTTP flood hitting the home page, causing the server ...
0
votes
0answers
119 views

VPS Running nginx-django-gunicorn Bad Gateway

I am new to nginx, so please ask me to provide whatever info you need and I will be happy to add it in. I have a VPS on DigitalOcean which is to serve a WSGI app through django & gunicorn via ...