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

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

Configuring SSL on nginx with proxy_pass

I am having problems making SSL work for a python/gunicorn based site that works perfectly fine on port 80. I am using proxy_pass to send traffic to upstream. Steps Completed so far Wildcard ...
0
votes
1answer
33 views

Why is NGINX timing out?

I have an application with about 200k users and am running a NGINX + Gunicorn(Python) server behind an AWS EC2 loadbalancer. I don't understand how my requests is always 4k/minute but only sometimes ...
0
votes
0answers
147 views

TTFB on AKS rises to ~7 seconds after ~100 concurrent API calls

I have a setup of AKS->Traefik(Ingress)->Docker(pod)->NGINX->Gunicorn->Django->SQL Server on Azure. on AWS my response times for a page that does ~100 requests to my API ~4.5 seconds to fully render, ...
0
votes
0answers
18 views

Django Gunicorn-Nginx 504 gateway timeout

I have read a lot of articles about gunicorn & nginx timeout configs . I have some requests on my website which take longer than 30 seconds . I changed all gunicorn timeouts to 3 seconds but ...
1
vote
0answers
32 views

Server crash (Error 500) repeatedly (running nginx + gunicorn on EC2 instance)

Okay, so I'm really confused about what's happening here. I've had my server up and running for about a month and everything was fine. The server was getting very little traffic (about 50-100 requests ...
0
votes
1answer
12 views

unable to access executable in PATH from remote server

I have an web application hosted with Django-gUnicorn-Nginx. The web app is working mostly fine and is accessible except for one functionality. Recently, I added pybedtools, a python wrapper package ...
0
votes
0answers
17 views

Gunicorn - Signature mismatch error and nginx 504 error

I am running an application on Debian 10 and nginx http server with Flask and gunicorn. The website is working well, but sometimes it loads very slowly where the nginx 504 error appears, and if I ...
0
votes
0answers
101 views

flask, gunicorn (gevent), sqlalchemy (postgresql): too many connections

I created Flask WSGI-application which uses gunicorn as WSGI-server, for DB it uses PostgreSQL through Flask SQLAlchemy extension. That's all hosted on Heroku. gunicorn configuration number of ...
0
votes
1answer
69 views

502 Bad Gateway nginx/1.14.0 (Ubuntu)

Im trying to deploy django app using nginx & gunicorn but its showing error sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/...
0
votes
0answers
24 views

Gunicorn timeout for optimized performance with unreliable underlying service APIs

We have got a FLASK/Gunicorn webapp requiring high performance. However, we call some external APIs upon user requests (from workers of course) with the APIs quite unreliable, sometimes long delays, ...
0
votes
1answer
62 views

Failed to start gunicorn.service: Unit gunicorn.service not found. Ubunto 18.04

I am following this How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04 guide. I have created the following file .socket sudo nano /etc/systemd/system/gunicorn.socket [Unit] ...
0
votes
0answers
87 views

gunicorn failed to start on 18.04

i am running django on python3, gunicorn, nginx, wsgi while gunicorn is serving the app on domain:8000 but NOT on domain (iitiansenv) jagtar@wms:~/iitians/iitians$ systemctl status gunicorn ● ...
0
votes
1answer
31 views

Nginx not responding from outside the remote box

My website (Django/nginx/gunicorn/mysql) which is hosted on a remote box was working fine, until I decided to restart remote box for some reason. So after the restart, in the remote box when I say ...
0
votes
0answers
108 views

Gubicorn/Nginx does not download files completely: [CRITICAL] WORKER TIMEOUT (pid:18)

I am running a django app with nginx in docker. I can download files via an API using the library requests. When I want to download a file with 55 MB somehow the connection breaks down and the ...
0
votes
0answers
16 views

gunicorn.sock file is not being created

I am trying to configure Gunicorn and Ngnix my Ngnix is configured correctly but Gunicorn is not. I am not able to create "name".sock file. [Unit] Description=gunicorn daemon Requires=gunicorn.socket ...
0
votes
0answers
71 views

Handling Multiple Concurrent Request in Django, Gunicorn, Nginx

I am facing some issue regarding multiple concurrent request handling in my site. To explain in details - I have a django view which recieves file from the request and then call an api and do some ...
0
votes
0answers
87 views

Request randomly hangs when making an API call

I have a stack of Flask, Nginx, Gunicorn deployed on AWS. There are a set of API routes present on it, and when I try to make requests to the /api/login path, the Postman request hangs randomly. At ...
0
votes
1answer
116 views

Receive 404 Not Found for a Flask app when I use Nginx as reverse proxy with Gunicorn socket

I have been following the tutorial here to deploy my own flask app to my Ubuntu 16 server. I used Nginx as a reverse proxy to pass requests to a gunicorn socket. Just in case anyone wants to know ufw ...
0
votes
0answers
27 views

Locust load testing gives me ChunkedEncodingError

I'm load testing my django gunicorn nginx and postgresql application. After about 1500 concurrent users I get the following error in my locust failed tab: 1 GET / ChunkedEncodingError(...
0
votes
0answers
304 views

Load testing throws Server 502 error: Bad Gateway after 700 users. Gunicorn, Gevent, Nginx, Django

I'm trying to reach 2000 concurrent users with my benchmarking tool. I'm using locust to simulate them. My server has 24vCPUs, 128GB RAM, 25SSD. I want to be able to serve 2000 concurrent users ...
1
vote
0answers
148 views

Scaling and Load testing Django Nginx and Gunicorn: 502 Server Error + Resource temporarily unavailable gunicorn.sock

I'm doing load testing with locust to see if my server can handle 1500 users. What I'm using: Django, Nginx, Gunicorn, Postgresql My droplet: 24vCPUs, 128GB RAM, 25GB SSD at about 1100 users I start ...
2
votes
0answers
78 views

How many celery and gunicorn workers on the same server?

I have one server that runs a Django application served by gunicorn and a Celery task queue. Gunicorn docs suggest (2 x $num_cores) + 1 as the default number of workers. Celery docs show that the ...
0
votes
1answer
242 views

Nginx & Django & Gunicorn - Redirecting subdomain to app

I did an extensive search on the topic but nothing could help me. I am currently building a Django site, and using Nginx to reverse proxy to Gunicorn. I am trying to separate my apps into subdomains....
1
vote
1answer
69 views

Gunicorn does not generate a sock file

First, I'm new to this subject. So I'm trying to serve a hello world flask app with nginx and gunicorn on a Centos7 server. But I'm getting 502 error on website. When I checked nginx's error.log file ...
0
votes
0answers
62 views

Cant determine correct config file for NGINX VUE.js and FLASK(gunicorn)

i'm going to have my API run from flask/gunicorn and my frontend with VUE.JS but for some reason my setup is not working. I'm able to get to the VUE ppages but when I go to /api it says not found and ...
0
votes
0answers
17 views

High Rest-API Return Latencies on Unity

1-It sometimes takes too much for a request to complete. For example a simle API request (POST) usually takes 300-400 ms. But sometimes it takes up to 10 seconds and it actually sometimes time outs. ...
0
votes
1answer
177 views

Linux journalctl not synced with systemctl status / Journalctl not updating

I am running my custom service, let's call it "foo.service". It's a gunicorn python process which logs a few things. I used to be able to get a real-time log overview using journalctl -u <service&...
0
votes
1answer
511 views

Failed to start gunicorn.service: Unit is not loaded properly: Bad message

I'm having difficulty configuring gunicorn. So far, I have pulled my django code onto the server, created a virtualenv for python3.6, installed django gunicorn psycop2, using pip3, and that's all fine....
0
votes
0answers
333 views

nginx+gunicorn+django SSL not working, on Chrome it gives ERR_SSL_PROTOCOL_ERROR, which is “This site can't provide a secure connection.”

I've just finished setting up an nginx+gunicorn+django web server (after having virtually the same problem with apache2+wsgi+django), and confirmed it works perfectly over http. After running ...
1
vote
1answer
580 views

How to resolve nginx internal server error

I'm configuring Nginx as a public-facing proxy server to my internal Gunicorn server to host a "Reddit clone" Flask project I'm developing. At one point, Nginx was working properly (when I'd used ...
1
vote
1answer
292 views

Nginx reverse proxy to https not working

I am trying to run more than one python/gunicorn api over https using nginx as a reverse proxy for my subdomain subdomain.domain.com. Below is my server block file subdomain.domain.com in sites-...
2
votes
1answer
284 views

Opening firewall of ubuntu server to access gunicorn/Flask app running on port 80

I am trying to serve an intranet application from a server running Ubuntu 18.04 on our local network The application is written in Flask and I have deployed it using gunicorn with the command me@...
0
votes
0answers
287 views

Intermittent 502 with nginx + docker + gunicorn + flask

I have a Flask app that is running inside Docker. Inside the container, I start a Gunicorn server with 2 eventlet workers. As a reverse proxy I am using nginx that connects to the gunicorn server ...
0
votes
1answer
415 views

Localhost reverse proxy fails nginx AWS Ubuntu

I am attempting to to host a Flask app with Gunicoron on a server that hosts multiple web services on Nginx. I am using AWS ubuntu as a test bed for evetually hosting it on said Nginx mutilple web ...
0
votes
0answers
795 views

nginx, gunicorn, Django 499 error 60s

I get a 499 error after 60s whatever the config I try. I use Docker on a 8 core/32GB server and there is another nginx/lets-encrypt reverse proxy in front for the others containers. I am more on the ...
0
votes
1answer
92 views

Can upgrading the timeout for my proxy pass in Nginx and Gunicorn cause any problems?

I'm going to add these configuration: proxy_connect_timeout 300s; proxy_read_timeout 300s; and for Gunicorn: gunicorn_django -D -b 127.0.0.1:8901 --workers=5 --pid=/var/webapp/campus.pid --settings=...
1
vote
0answers
62 views

Apache mod_expires not setting correct expires datetime

I'm having a problem with mod_expires. I simply set have a default expires of 1 days and then I set the expires by type (for images and audio). So for example i set ExpiresByType image/jpeg "access ...
0
votes
0answers
761 views

Error on configuring gunicorn

I have been following this tutorial to deploy my django project on Digital Ocean. I am trying to configure gunicorn. My project structure looks similar to this: On my settings.py I use DEBUG=False ...
0
votes
1answer
1k views

nginx gunicorn django 502 worker timeout just on some pages

I configured a django app with gunicorn and nginx all was working perfectly until the installation of SSL certifiate on the server. firstly all pages were served perfectly but after some time some ...
0
votes
0answers
362 views

docker-compose, nginx, gunicorn and SSL

I'm trying to set up a django project using SSL. I got it working without SSL but I'm clearly doing something wrong since https:// doesn't work and http:// just redirects to the main nginx site. Here'...
0
votes
1answer
789 views

nginx, docker, and gunicorn url without the port number in the url

I have a django app that's also using gunicorn and nginx. I'm able to access my site using http://url:8000, but I don't know how to correctly configure it so I don't have to use the port number in the ...
0
votes
0answers
83 views

Supervisor requires reload for flask application to work properly

When my server (centOS 7 hosted on a vagrant VM) reboots, my Python Flask application (served up by Gunicorn using nginx as a reverse proxy) throws internal server errors (according to the stack ...
0
votes
0answers
1k views

Apache: “pass request body failed” due to client uptime

I have a Rest API built in Python that is served by gunicorn in a docker container behind an Apache proxy which handles SSL. Requests to that API are made from Python on a Windows 10 machine using the ...
2
votes
1answer
366 views

django_session table killing my MySQL server and django app

I need your help I hav a Django app that is about 7 years old and have been degrading now..every time the website goes down and back up and the issue is with mysql server Usually i need to just ...
2
votes
2answers
558 views

MySQL Error: Can't create thread to handle new connection(errno= 11) triggered by many Gunicorn API requests

I'm running Ubuntu 16.04.4 LTS on a hosted Virtual Server with a MySQL DB 5.7.23 and a Gunicorn web server, which is providing the web application with an API. Everything is running properly, however ...
0
votes
0answers
454 views

Gunicorn with flask app returning 502 error

I've got an odd issue with a gunicorn server(serving a flask app) we run behind an amazon ELB. The amazon ELB was throwing 502's intermittently when accessing different URLs on the gunicorn server. ...
2
votes
0answers
258 views

Performance Decrease When Using Nginx as Reverse Proxy for Sanic + Gunicorn

I'm just starting to learn Sanic framework because of its fast benchmark. I made a simple hello world API, then connected it with Gunicorn. The performance was quite good, but when I combined it with ...
0
votes
1answer
1k views

Nginx both serving static files and reverse proxy a gunicorn server

Hello guys I want to make an nginx config for my server. I want to serve localhost for testing for now. So I set up inside a myWebsite.conf file which I include into the nginx.conf file via include /...
0
votes
0answers
772 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
275 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 ...

1
2 3 4 5