Questions tagged [uwsgi]

0 votes
0 replies
uWSGI + nginx + Flask: Site can't be reached
About a month ago I finished setting up my AWS EC2 Ubuntu 18.04 server to run my Flask app. Since then, I have been developing and testing locall...
asked 4 months ago
0 votes
0 replies
Why uWSGI workers assigned to core 0 respond much slower than workers assigned to other cores?
I use uWSGI behind Nginx to build and serve HTML pages for a news website (just articles and blog posts). Our server handles about 30 requests pe...
asked 4 months ago
0 votes
0 replies
Django uwsgi celery daemonization with multiple virtual environments projects in single server
Is posible run multiple celery worker for different virtual environments projects with attach-daemon2 of uwsgi? In the .ini uwsgi configuration f...
2 votes
2 replies
How do I pass env variables to uwsgi?
I have a WSGI handler configured under Apache and I'm defining some environmental variables in the Apache virtual host configuration. SetEnv APP...
asked 4 months ago
0 votes
0 replies
Client send ws://[host]:[port]/path to server, and my server is Nginx+uwsgi+Django,But I always meet 404 error when I launch get to server
Websocket cannot be accpeted by Nginx+Uwsgi to my Django I use Django write some url_patterns such as http://[host]:[port]/events And I need...
asked 4 months ago
0 votes
0 replies
Perform aws alb healthcheck on wsgi:// server
I have a wsgi server running at uwsgi://mydomain.com behind an AWS application load balancer. If I set protocol=http in uwsgi, then it works fin...
0 votes
1 replies
Dispatching requests from one uwsgi to another uwsgi instance running Django Channels
I am currently using Django channels for websocket communication. I read this article and it states that I should split the project into two uwsg...
0 votes
0 replies
nginx conf uwsgi_pass not respecting DNS TTL
I am using nginx along with an upstream uwsgi app. The uwsgi app is using AWS Cloudmap to serve as service discovery. The problem I have encount...
asked 5 months ago
-1 votes
2 replies
Caching or something else? Page not updating with Flask / nginx [duplicate]
This question already has an answer here: Are global variables thread safe in flask? How do I share data between reques...
asked 6 months ago
0 votes
0 replies
What does process and threads mean in uwsgi?
I have a uwsgi config file as below [uwsgi] processes = 2 threads = 2 By my understanding these should means uwsgi start two processes and eac...
asked 6 months ago
-1 votes
1 replies
with ELB attached to ec2, health check failed on HTTP ping, but succeeded with TCP ping
I was building backend for a simple app. It was with nginx-uwsgi-djangorest-api in AWS EC2. Because I needed to send the requests with https, I a...
0 votes
0 replies
Django - uwsgi - nginx and websockets configuration - Websocket not responding
I currently have a django application on Amazon EC2 that uses UWSGI and NGINX.I am also using Redis for Django Channels. Now whenever I make a We...
asked 6 months ago
1 votes
1 replies
First request doesnt terminate (no FIN) uWSGI + nginx
I am using nginx as a reverse proxy in front of a uWSGI server (flask apps). Due to a memory leak, use --max-requests to reload workers after s...
asked 6 months ago
0 votes
0 replies
flask_mongoengine.ValidationError not flashing warning with nginx - bad gateway 502
I am using a flask_mongoengine.ValidationError for a database model, in which it is used in clean method so that it can flash a warning when save...
1 votes
1 replies
Is there a way to run initialization code in each uwsgi worker (after forking)
Is there a way (in uWSGI or Flask) to register a function to be run in each worker after spawning but as soon as possible? We have a flask app t...
asked 6 months ago
0 votes
0 replies
Fargate cannot read uwsgi.ini when ecs-cli compose up
I'm deploying my API server using AWS Fargate. I run the following commands: docker-compose build ecs-cli push xxx.dkr.ecr.us-east-1.amazonaws....
1 votes
0 replies
Touch command kill uWSGI service
I'm getting a little issue with uWSGI and my Django application on production server. I have a FreeBSD jail which has only one Django application...
asked 6 months ago
0 votes
1 replies
Python Flask Service file is not starting
I wrote a small app. The app works great. However I am trying to create a service file and I am running into issues. Running the command sudo...
asked 5 months ago
0 votes
1 replies
uwsgi.cache_set() not working in separate thread inside a mule process
For experiment, I set up a cache uwsgi.cache_set('test', data) inside a mule process. The cache is set as expected. Now I spawn a thread from wh...
asked 6 months ago
0 votes
0 replies
Server Error (500) when adding a blog post to django background
When I deployed django, I used nginx and uwsgi, and now I can log in to the homepage, but when I add an article from django-admin (ip:80/admin),...
asked 6 months ago
0 votes
0 replies
please help me about nginx+uwsgi+django
I deployed a django project on the cloud server ubuntu system, but it has not been running, I feel where there is an error,Sometimes the page wil...
asked 6 months ago
0 votes
0 replies
django uwsgi nginx redhat 7 unix socket
uwsgi --http : 8000 --chdir /pathtohomeproject --wsgi.file /pathtowsgifile.py when i do this its working but when i try to use sockets instead of...
asked 6 months ago
0 votes
0 replies
RabbitMQ Producer Connection is blocking Consumer in python with Kombu and Pika
I'm facing a weird issue with which im struggling since a couple of days. It appears only on the "production" like environment. This is the Setup...
asked 6 months ago
1 votes
1 replies
Nginx+uWSGi+Django long task Bad Gateway error
I have a long task in one of my django's views that take 120-200 seconds to generate the response. For this particular view, Nginx raises 502 Ba...
asked 6 months ago
0 votes
0 replies
Reloading gracefully with Zerg pool isn't really graceful while workers load
I am using an emperor to load a zerg pool, in order to gracefuly deploy different versions. I'm using this method: http://zarnovican.github.io/20...
asked 5 months ago