Questions tagged [gunicorn]

a Python WSGI HTTP Server

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Deploying multiple flask apps on aws-ec2 with gunicorn + nginx

I am trying to deploy multiple Flask applications in a AWS EC2 without success :(. I'm following this tutorial, the steps seems to be simple enough, however I haven't managed to make it work. This is ...
drn_svq's user avatar
0 votes
0 answers
10 views

I have an error in which the server refuses access to static files

I have deployed on the server Ubuntu 22.04 64 bit Django project. Installed and configured Gunicorn and Nginx. I noticed that static files are not loaded. There is such an error in the logs "2023/...
Basang Botchaev's user avatar
0 votes
0 answers
13 views

How To dispose db connection before Gunicorn worker processes spawns in Python

While executing query in Python on oracle database with cx_oracle=8.3.0, with sqlalchemy=1.4.0 and instantclient=21.11 I am getting multiple "ORA-03106: fatal two-task communication protocol ...
jamila's user avatar
  • 37
-2 votes
1 answer
41 views

100% CPU Utilization on my VPS - Django app gunicorn

I have a VPS running Nginx, Django, Postgres and a Golang microservice in a Docker compose environment and recently I've noticed it's consistently hitting 100% CPU utilization and not working anymore. ...
gerrel93's user avatar
0 votes
0 answers
9 views

django gunicorn nginx forward to <domain>/app

I have searched tutorials and SO all over but unfortunately I still don't understand how to forward requests for my domain to a specific app (not the project). this is my project structure ...
Mister Ieuns's user avatar
0 votes
0 answers
13 views

Dash bootstrap component Modal not working in production environment

I have a dbc Modal component in my Python Dash webapp. While the Modal is open, I have a dash dcc interval running that triggers a callback that updates the text in the Modal. All of this works fine ...
Lisa Tostrams's user avatar
0 votes
0 answers
23 views

gunicorn: error: unrecognized arguments: -b

Im trying to deploy a flask app on AWS, I have more files but I guess the problem is in one of them. This is my tree: API app app.py __init__.py wsgi.py in app.py ...
Jean Carlo Montoya Castro's user avatar
0 votes
0 answers
5 views

How can I get Gunicorn to stop printing so many repeated startup messages?

I'm running gunicorn with: gunicorn --workers 1 \ > --bind=localhost:4242 \ > --access-logfile="${ACCESS_LOG}" \ > --error-logfile="${ERROR_LOG}" \ > --log-...
kris's user avatar
  • 23k
0 votes
0 answers
10 views

Using guincorn with two workers, database connections are not released to connection pool. Why?

Using guincorn with two workers, database connections are not released to the connection pool. This works fine with one worker, but with two workers, the connections do not get released back to the ...
simmons's user avatar
  • 835
0 votes
1 answer
24 views

gunicorn + SCRIPT_NAME + flask (behind nginx)

I'm trying to deploy a gunicorn + flask app behind nginx with a path context (https://example.com/my-app) The app runs fine locally with gunicorn + flask, setting the environment variable "...
Kaj Kandler's user avatar
0 votes
0 answers
22 views

The Flask Web Application in Docker Is Unavailable After Sending a POST Request [closed]

I'm encountering an issue with my web application running on Flask with Gunicorn within a Docker container hosted on an EC2 Instance. The problem arises when I send multiple POST requests to the ...
Diego Insaurralde's user avatar
0 votes
1 answer
24 views

nginx: [warn] conflicting server name [closed]

I am trying to deploy frontend, backend, db, and nginx containers to make two websites work (kittygram2.ddns.net and nikitushu2.ddns.net). In /etc/nginx/sites-available/ there is only one file - ...
nikitushu2's user avatar
0 votes
1 answer
43 views

GCP App Engine: Handling signal: term + Worker exiting after each request

I'm deploying a small flask app on GCP App Engine but it seems gunicorn is shutting down immediately after each request. I'm using a user session and a connection to an API (atproto), but I can't stay ...
asmoth's user avatar
  • 98
-1 votes
0 answers
25 views

how to add thread in fastapi, gunicorn

gunicorn --workers=5 -k uvicorn.workers.UvicornWorker --threa ds 5 main:app --bind 0.0.0.0:9090 there is not eists another sub_thread in worker process ( just only MainThread) No additional threads ...
전재현's user avatar
-1 votes
0 answers
14 views

Django Channels WebSocket connection failed

I've spent an absurd amount of time trying to deploy this website, pls help me. I'm dying out here. this is the tutorial I followed: I skipped the HTTPS and domain name part, but I followed the rest ...
Eli's user avatar
  • 1
0 votes
0 answers
18 views

Response times long for multiple users in Cloud Run for a Django application

I have a Django Rest Framework application which is hosted in Cloud Run. The normal response times for requests are around 100-200ms but no matter what I try I cannot get the same response times for ...
austrafin's user avatar
0 votes
1 answer
26 views

How can I give input with getpass to a Django app when deploying using Nginx, Gunicorn and systemd?

I have a Django app that has key on disk which is encrypted using AES Cypher, and must be unencrypted in memory for use during the processes. I have this line in settings.py: AES_CIPHER_KEY = getpass(&...
AMiWR's user avatar
  • 41
0 votes
0 answers
16 views

Why https connection can not be established?

Background I configured SSL certificate using ZeroSSL for my domain ('example.com', hereafter). I also configured nginx.conf and gunicorn and then the access to https://example.com/index.html on ...
kazutaka's user avatar
0 votes
0 answers
26 views

ProtocolTypeRouter.__call__() missing 1 required positional argument: 'send'

I have Django application with websockets (channels). When i run this application with gunicorn core.asgi:application i experience this error Traceback (most recent call last): Sep 18 02:20:16 PM ...
youwish's user avatar
0 votes
0 answers
23 views

HTTP requests not working when using Gunicorn geventwebsocket.gunicorn.workers.GeventWebSocketWorker but socketio web sockets are

I am trying to deploy my flask app on a headless pi. My flask app uses Socketio to create websockets to push sensor data to my routes. I also also use flask WTForms in my flask app. The flask app ...
Laurlo17's user avatar
2 votes
0 answers
24 views

Github API Etags are invalidated because token has expired and causing spike in API limit

Context about setup: We are working with GitHub Apps, the App hook is running Gunicorn workers using flask, and Jenkins/Airflow or other services running checks in background that are resource ...
Rishav Sidhu's user avatar
0 votes
0 answers
42 views

Gunicorn worker getting exit in airflow web server with Received signal: 15. Closing gunicorn

Gunicorn worker getting exit in airflow web server with Received signal: 15. Closing gunicorn. while installing airflow on kubernetes. Scheduler and other DB migration and user sync pod are running ...
Indrajeet singh thakur's user avatar
1 vote
1 answer
45 views

How to pass worker options/parameters in gunicorn

I am running an app which needed uvicorn's asycio loop, by default it uses auto and some time it randomly assign it to uvloop whihc breaks the behavior. So I use the following command uvicorn myapp....
Pranjal Doshi's user avatar
0 votes
0 answers
28 views

runtimeerror: cannot re-initialize cuda in forked subprocess

I have written a Django application which basically load a large language model (llama2-13b-chat-hf) with transformers (along with accelerator and bitsandbytes). I have a AWS P3.8xlarge instance and ...
Saikat Bhattacharya's user avatar
0 votes
0 answers
20 views

Dockerized React/Flask App w/ nginx live updates/docker volumes

I am trying to set up a development environment for a web dev project that is a React app served by a flask backend using Nginx/Gunicorn (to be honest I'm not 100% on what exactly these do yet, ...
07ScapeSnowflake's user avatar
0 votes
0 answers
22 views

Django Deployment with Gunicorn

Sep 9 05:57:41 PM [2023-09-09 22:57:41 +0000] [52] [INFO] Starting gunicorn 20.1.0 Sep 9 05:57:41 PM [2023-09-09 22:57:41 +0000] [52] [INFO] Listening at: http://0.0.0.0:10000 (52) Sep 9 05:57:42 PM ...
John Odonnell's user avatar
0 votes
0 answers
35 views

NGINX can't connect to GUNICORN socket

Ok, I'm going crazy on this one. I have a Flask application which I want to deploy with gunicorn+nginx, on debian-12. When I try to connect to the homepage, I get a 502 Bad Gateway in the browser and ...
melev's user avatar
  • 19
0 votes
0 answers
27 views

"Not found"-error when running my Flask/React app using gunicorn

I developed an app, that uses Flask for backend and React for frontend. Also it uses the Auth0 for the authentication. When I run it directly on my VM it works perfect, but when I try to run using the ...
Dmytro Datsiuk's user avatar
1 vote
0 answers
53 views

WSGI vs ASGI server with hybrid sync/async Django app

I have a Django app with multiple async views doing some http requests, but some part are still synchronous like most of the middlewares. So there will always be a small performance penalty with the ...
Grum's user avatar
  • 151
0 votes
0 answers
15 views

How to configure nginx.conf to accept URL at location directive?

Background I am building an web app using nginx + gunicorn + Flask on Python. Here is the issue of configuring 'nginx.conf' and gunicorn service configuration file. What I want to do The redirection ...
kazutaka's user avatar
1 vote
0 answers
38 views

Prometheus-client multiprocessing mode ASGI gunicorn basic setup

I'm trying to add prometheus-client to my very basic API what is powered by gunicorn with multiple processes and Uvicorn workers. I have no flask, nor fastapi here as it is very minimalistic piece of ...
morf's user avatar
  • 135
0 votes
0 answers
36 views

Auth0 - Invalid URL and Missing Schema After Sign-In on Flask

I have a very basic web app I am trying to deploy on an AWS with nginx, gunicorn, and flask. I can get the page to redirect to auth0 to sign in and make the call back. After that, in my gunicorn log I ...
atclaus's user avatar
  • 1,056
0 votes
0 answers
17 views

Gunicorn 20.2 is better than ginicorn 3 for python? How to set workers?

I have a little issue installing gunicorn3 on ubuntu 20 When i try to install gunicorn3, ubuntu don't find any candidate but if i follow the gunicorn guide installing it with pip install gunicorn ...
Antonio Gargiulo's user avatar
0 votes
1 answer
42 views

Cannot use port 80 when deploying flask nginx app

I'm trying to deploy my python flask project to an nginx web server but I seem to fail. I updated sites-available to server { listen 80; server_name <public_ip>; ...
radu781's user avatar
-1 votes
1 answer
44 views

Gunicorn Service Failed To Start Due To Permission Denied

I followed a Digital Ocean guide to set up Flask application to run with Gunicorn and Nginx (not there yet). But when trying to start the application, got the following error: * web-project.service - ...
YTKme's user avatar
  • 135
0 votes
1 answer
22 views

Nginx + Ubuntu + Gunicorn + ORACLE CLOUD Private/Public IP

Im deploying my website into OCI account. In my cloud I have 2 IP adresses: Public and Private and im not sure how to setup my webserver. Here bellow is my code: NGINX setup server { listen 0;...
Aleksander's user avatar
0 votes
0 answers
27 views

Sudden increase in 460 status codes and ClientDisconnected errors in Flask app running in ECS

My Setup I have 1 ECS Cluster with 1 Service that has 4 tasks with each 1 app container and 1 CloudWatchAgent container. There is a Application Load Balancer setup that routes the traffic to the ...
517fYnFR0XLGuSBecrgQgQ's user avatar
0 votes
0 answers
19 views

Connect a API with a index.html through Gunicorn

I am trying to make work an app found in a public GitHub repository. It is an app created with Python that links an API with a WSGI HTTP Server (Gunicorn). When I run set -x NUM_THREADS=1 HOST=0.0.0....
Manolo Dominguez Becerra's user avatar
0 votes
1 answer
26 views

change venv from python 3.5 to python 3.6; Gunicorn does not start

My app on python3.5 works well. But when I make the virtualenv with python3.6 and install the same requirements; Gunicorn doesn't start with below error message in jenkins: + supervisorctl restart ...
S Roshan's user avatar
0 votes
0 answers
60 views

Django, gunicorn workers, scaling on Kubernetes

Kind of related to this post, we're in a similar position where we have a django application using gunicorn WSGI running on a Kubernetes cluster. I have read the official docs on how to configure num ...
sc-leeds's user avatar
  • 419
0 votes
0 answers
19 views

How 'try_files' directive of nginx thinks which resource should take?

Background I am building web app using nginx/gunicorn/Flask on EC2 (AWS). It seems good but I still have a question. I explain step-by-step so I want advice or comments ! Environment EC2 instance on ...
kazutaka's user avatar
0 votes
0 answers
38 views

Can not get correction response from Flask server when sending data by a proxy

I created a simple Flask application on my tiny VPS, and started by Gunicorn with a simple command gunicorn -w 2 -b 0.0.0.0:8888 app:app --access-logfile=- --proxy-protocol. I tried the code below on ...
l0o0's user avatar
  • 773
0 votes
1 answer
19 views

error when using mlflow on ipv6: '' is not a valid port number

I'm trying to deploy MLFlow server on Kubernetes, which requires using IPv6. Previously I was successfully using it in an IPv4 environment. In my existing deployment on IPv4, I use this startup ...
nnn's user avatar
  • 1
-1 votes
1 answer
26 views

nginx not redirecting to gunicorn while deploying flask application on ec2

gunicorn service file: [Unit] Description=Gunicorn instance for a simple hello world app After=network.target [Service] User=ubuntu Group=www-data WorkingDirectory=/...
Abhishek Gaur's user avatar
0 votes
0 answers
17 views

GUNICORN ERROR: Application object must be callable

everyone! Still relatively new to coding in Python and working with GitHub and Render, so please let me know if I need to include more information here. I recently completed creating a dashboard ...
newcoder2023's user avatar
0 votes
0 answers
49 views

Keep-Alive header not working as expected in Gunicorn with Python WSGI app

I have a Python WSGI app that I'm trying to run using Gunicorn. I tried to set up the "Connection: keep-alive" header in the response, but I'm still getting "Connection: Close" in ...
Miloš Popović - Syose's user avatar
0 votes
0 answers
22 views

Is it possible to configure ip whitelisting in gunicorn?

I have a flask app deployed in docker with gunicorn and I am getting a lot of requests from bots who look for leaks and misconfigured TLS. My docker logs are flooded with it and while I have both ...
finisinfinitatis's user avatar
0 votes
0 answers
18 views

Change requests timeout in Heroku

How to change Python application requests timeout in Heroku? I tried changing in Procfile: web: gunicorn -w 3 -k uvicorn.workers.UvicornWorker main:app --timeout 600 but it does not work. I am using ...
Ayoub Labied's user avatar
0 votes
0 answers
19 views

post_fork in Gunicorn shows unexpected number of workers

Here is my gunicorn.conf.py file workers = 2 worker_class = "sync" timeout = 60 bind = "127.0.0.1:8080" def post_fork(server, worker): cuda_set = {"12", "34&...
Arthur's user avatar
  • 171
1 vote
0 answers
49 views

Unable to deploy minimal flask app using Socket.io, Gunicorn, and eventlet

I am attempting to deploy a Flask-Socket.io app using Gunicorn and eventlet as per the documentation: https://flask-socketio.readthedocs.io/en/latest/deployment.html. I have both Gunicorn and eventlet ...
alexpalaciosjr's user avatar

1
2 3 4 5
91