4,629 questions
-1
votes
0
answers
33
views
Restarting backend container became unreachable for traefik(504 Gateway timeout)
I’m having a problem and I can’t find a solution.
I have deployed a Django backend and a React frontend using Docker.
I’m using Traefik as a reverse proxy for the web server. When I start Traefik, the ...
1
vote
1
answer
136
views
Deploy Django and Nginx under subpath
I'm trying to deploy a Django app with Gunicorn and Nginx under a subpath, I'm inside a corporate network, and the path www.example.com/myapp points to the IP 192.168.192.77:8080 of my PC on the local ...
0
votes
1
answer
68
views
Will file logging race conditions in multi-process Flask app crash the Python script?
I have a Flask application running on Gunicorn with 2 workers and 2 threads each (4 concurrent execution contexts). My custom logging function writes to a file without any process-level locking:
def ...
1
vote
1
answer
37
views
Confused with simple print() logging in Flask and Gunicorn
Historically, i usually run all of my Flask/Gunicorn apps with the following command in my dockerfile:
CMD ["gunicorn", "app.wsgi:app", "--config", "app/...
0
votes
1
answer
46
views
How to make Open FGA Async Client work with Flask + Gunicorn?
class FGAClientWrapper:
"""
A synchronous, gevent-friendly wrapper for the async OpenFGA SDK.
"""
def __init__(self, call_timeout: float | None = 10.0):
...
0
votes
2
answers
80
views
Error d"MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff)" on deploy Django project with gunicorn and Apache
I'm trying to deploy a Django project with Gunicorn and Apache.
The gunicorn is configured and working --> no problem on this side
The problem is with the statics files, i configure an apache conf :...
0
votes
0
answers
42
views
Flask/Gunicorn on Render: Background Thread Causes Health Check Failure and SIGTERM
I've built a Flask application that uses a background thread to process user-uploaded documents for a RAG (Retrieval-Augmented Generation) pipeline. The goal is to provide a fast response to the user ...
0
votes
0
answers
112
views
gunicorn gevent CERTIFICATE_VERIFY_FAILED error
I have a Django website running in a Docker container (Debian), which I deploy with the following command:
gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 33 --worker-class gevent --...
0
votes
0
answers
195
views
Gunicorn + Gevent + Opentelemetry
Anyone using Django + Gunicorn + Gevent + Opentelemetry in production? Would love to know how you got it to work.
Seems like I can't seem to use BatchSpanProcessor or BatchLogRecordProcessor. I'm ...
4
votes
1
answer
155
views
Low RPS when perfomance testings django website
I have a code like this that caches a page for 60 minutes:
import os
import time
from django.conf import settings
from django.core.cache import cache
from django.core.mail import send_mail
from django....
1
vote
0
answers
197
views
Worker was sent code 139! running Gunicorn + Chroma
I have a Flask app that uses Gunicorn/Nginx + ChromaDB v1.0.8. I've had no issues with its functionality till today when I restarted the service, to which I would receive
May 06 19:33:34 cluster ...
1
vote
0
answers
81
views
systemctl restart gunicorn: lingering workers causing db issues
On an Ubuntu VPS, I run a FlaskRestX API with Gunicorn as a production server, managed by systemctl. I did a code base change, and restarted the server:
sudo systemctl restart gunicorn
This was my ...
0
votes
1
answer
151
views
Python gunicorn not working with Docker CMD
I have django App that also runs some Javascript templates with node. I'm struggling to run Gunicorn as the CMD of the Dockerfile.
Here is my dockerfile:
FROM node:22.12.0-alpine3.21
RUN mkdir /app
...
2
votes
1
answer
100
views
Is there any way to serve a Django application using preload, ASGI, and SO_REUSEPORT?
I can't find a way to serve our large Django application using all three of preload, ASGI, and SO_REUSEPORT.
Without preload and fork we use much more memory (gigabytes).
Without ASGI we can't serve ...
0
votes
0
answers
5
views
decouple.UndefinedValueError: APP_SETTINGS not found. Declare it as envvar or define a default valuee
Ik heb een probleem met mijn TypeScript-code. Ik probeer npm start uit te voeren, maar er gebeurt niets.
Wat ik verwacht:
Dat mijn script uitvoert en de console.log statements laat zien.
Wat er ...
1
vote
1
answer
105
views
What could cause strange delays while sending delays from a python aiohttp server?
We have a service with this architecture:
HTTPS requests come into an A10 load balancer that does L4 load balancing
Behind it are 2 backend servers with Apache running that terminate the TLS ...
0
votes
1
answer
50
views
Django Stripe Webhook not consistent Statuscode 500 sometimes 201
L.S.
I am working on my first Django project and struggling with the Stripe integration. My webhook is acting inconsistently—it worked fine when running locally on localhost with the Stripe CLI. ...
1
vote
2
answers
114
views
Run a simple flask web socket on Render
I'm new to Render , and I make a simple flask web socket
I use these modules:
,flask_socketio
,flask
,gunicorn (to run my script on Render host)
Here is my code for server side:
from flask import ...
0
votes
0
answers
53
views
Launch only one background task with multiple Gunicorn workers
I have a flask application that I run with Gunicorn.
The application itself would ideally be run with multiple workers. I also have some data I need to consume from Kafka, but that should only be one ...
0
votes
0
answers
44
views
Reverse proxy implemented in Flask is giving 404 errors when accessing Kinsta Wordpress site
Overview:
I would like advice on setting up a reverse proxy so that my Google Cloud Run Python app hosted at example.com proxies content from our Kinsta installation hosted at myblog.kinsta.cloud. For ...
3
votes
0
answers
156
views
Limit FastAPI/gunicorn/... worker to certain endpoints to save memory
I have a FastAPI application with multiple endpoints, and each endpoint uses certain memory intensive objects (ML models). This works fine when I only have one worker, but I am worried about memory ...
0
votes
1
answer
125
views
Django Project on Azure, 502 error after deployment
I'm deploying a Django app on Azure Web App using Gunicorn and keep getting a 502 Bad Gateway error. Despite binding to the correct port, setting up environment variables for Key Vault, and enabling ...
1
vote
1
answer
55
views
Cannot run myproject.service under systemd
I'm following this (very good) DigitalOcean tutorial on how to serve a Flask app using Gunicorn, but cannot get Systemd to run with myproject.service.
I've created a python environment (venv), pip ...
-1
votes
1
answer
32
views
Use one CMD for DEV and another CMD for PROD in the same Dockerfile
I have in my Dockerfile :
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "3", "nerul.wsgi:application"]
But docker run -p 8000:...
0
votes
1
answer
41
views
Request Entity Too Large for 30-Second Audio File (WebM)
I'm building a Flask web application where users can record and submit 30 seconds of audio (WebM format) through a form. However, when I try to submit a 30-second recording (~650 KB), I get a 413 ...