2,919 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
26
views
Streaming data doesn't work when running Flask server with uWSGI
I am streaming a video feed to the user in my Flask application:
@app.route("/api/camera_stream")
def camera_stream() -> Response:
def generate_frames() -> Iterator[bytes]:
...
0
votes
0
answers
83
views
uWSGI not using virtualenv Python (3.11) – defaults to system Python 3.12, Flask import fails
I'm deploying a Flask app with uWSGI, Nginx, and CloudPanel on a server. I’ve created a Python 3.11 virtual environment, and all dependencies (like flask) are installed inside it.
However, when I run ...
0
votes
0
answers
15
views
Uwsgi Failover mode (one active application server at a time)?
My setup uses usgwi as frontal server and uwsgi application servers behind.
I need to do a setup where only one application server is active at a time, and in case it would become unreachable, the ...
1
vote
1
answer
68
views
Why does my uwsgi app respond with prematurely closed connection?
I can serve my django app running uwsgi --socket lhhs/lhhs.sock --module lhhs/lhhs.wsgi --chmod-socket=664
And the django app runs quick and running python manage.py test shows it is fine.
But uisng ...
0
votes
0
answers
50
views
I am trying to run uwsg-emporer vassal and it can't find my python
When I create a uwsgi vassal ini file, the server throws this error when I hit the site:
--- no python application found, check your startup logs for errors ---
The virtualenv is correct and if I do ...
0
votes
0
answers
59
views
Best way of handling uwsgi with a Deadsnakes Python version?
I am running uwsgi + nginx on Ubuntu. Of course, ubuntu has perfectly good packages for uwsgi, but they use the current system Python. I'm running uwsgi against Python 3.13. Currently, I'm building it ...
0
votes
0
answers
34
views
enable socket level logging in uwsgi server
Applicaiton is running on uwsgi+DJango rest framework and there is httpd server in front of the uwsgi service.
httpd server forward the request to 127.0.0.1:9000 ProxyPass /myapi uwsgi://127.0.0.1:...
1
vote
0
answers
55
views
Unknown error when creating SSL context on uWSGI+python atexit
I have a uWSGI server with required lazy-apps = true. When the process exits I need to do some cleanup which involves generating http requests but it errors out when creating SSL context.
Disabling ...
0
votes
0
answers
36
views
Trying to understand how Flask sets the Location string in the response header
I have a uwsgi application behind an nginx reverse proxy. In flask I was originally trying to see what location was getting set in the response headers so I added:
@app.after_request
def add_header(...
1
vote
1
answer
191
views
uwsgi with https getting socket option missing
I am running a Flask application on Docker with uwsgi. I have been running it for years now, but we need to add https to it. I know I can use an HAProxy and do ssl offloading, but in our current ...
0
votes
1
answer
87
views
How to disable/enable uwsgi web server from SSH CLI?
I have an embedded Linux system in a cellular modem with a web gui as well as SSH access. For security, I would like to be able to enable the web gui from SSH when it is needed, and otherwise disable ...
3
votes
0
answers
300
views
uWSGI Workers Hanging with 100% CPU Usage After Respawn
I’m facing a peculiar issue with uwsgi==2.0.28-1 on newly deployed servers. Specifically, my workers are hanging when they’re supposed to respawn, causing them to max out the CPU at 100%.
After ...
-1
votes
1
answer
146
views
Intermittent 503 response on Varnish
A HTTP request in our case first hits the Varnish server and then one of its two backends. The backends service is a flask+uwsgi application.
I have observed that during peak traffic hours, the ...
1
vote
1
answer
105
views
autoreload python without master in uwsgi + flask
I have a Flask server, and for several reasons I need to set master = false in my uwsgi configuration. But due to this, I'm not able to auto reload on file changes anymore.
This is my uwsgi ini
[uwsgi]...
0
votes
1
answer
352
views
uwsgi module not found after Python upgrade
I have a Flask/UWSGI application running on my home server. A recent Ubuntu upgrade deleted Python 3.10 and installed Python 3.12 instead. I've made a new venv and installed the application, but it no ...