Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

We have a python, django, Gunicorn setup with eventlet workers. I have a long running task that causes a HTTP request timeout and I want to offload it to a regular python thread (threading.Thread). I ...
user2268997's user avatar
  • 1,411
0 votes
2 answers
145 views

I am trying to use Celery with RabbitMQ and Eventlet to handle asynchronous tasks in my Python application. One of my tasks involves uploading files to an S3 bucket using the Boto3 client. However, I ...
Pritam Kadam's user avatar
  • 3,315
1 vote
0 answers
38 views

I have implemented a flask Application, that hosts a socket server. But I am not able to connect to socket when deployed on Elastic Beanstalk. from flask_socketio import SocketIO, emit, join_room, ...
Umar Farooq's user avatar
0 votes
0 answers
217 views

I'm building a Websocket service in Django, and I chose celery to push messages。But when I run celery using eventlet on the online server, the following error occurred: Traceback (most recent call ...
finn lee's user avatar
2 votes
1 answer
400 views

I've build a test app (testing for RESTfull Api) to process some POST requests from another app. When both apps are run localy from PyCharm everything works ok - POST request activates a function ...
nerevar's user avatar
  • 21
0 votes
0 answers
27 views

my env: Windows 10, Celery 5.3.6, eventlet 0.36.1 question: I meet the same question on celery-issues. And I try celery -A [task] worker -l info -P eventlet, but I even can not connect redis. The ...
Jalen Zhong's user avatar
0 votes
0 answers
123 views

I'm currently working on a Socket.IO implementation using Python with socketio and eventlet for my server and socketio for my client. when i use the http it works fine client is able to connect to ...
user avatar
1 vote
2 answers
296 views

I'm currently working on a Socket.IO implementation using Python with socketio and eventlet for my server and socketio for my client. Despite successful connections between the client and server, I'm ...
user avatar
1 vote
1 answer
2k views

I'm developing a Flask web application that uses SocketIO and am facing issues with configuring Gunicorn, particularly with the number of workers and threads. My server runs on Ubuntu with 32GB DDR4 ...
Daqs's user avatar
  • 964
1 vote
0 answers
764 views

I have a flask application that I implemented socketio on. In the local debugger it works. Through IIS the connections are not stable. Here is a snip of the console: console_image The logs show my ...
ibaughnez's user avatar
0 votes
0 answers
216 views

Context Right now I have a simple production setup of python-socketio served on top of eventlet according to the documentation. This application interacts mainly with Redis using official redis-py ...
IDobrodushniy's user avatar
0 votes
1 answer
226 views

I have been developing a web application that uses a flask web server, flask socket-io, and flask sessions. Previously I was deploying with via a docker image to Google Cloud Run. Google cloud run ...
zahlawi's user avatar
  • 205
1 vote
0 answers
727 views

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 vote
1 answer
533 views

Celery, Eventlet, django-celery-beat for a project, but when give the bellow command celery -A app worker -P eventlet -c 100 -l info --logfile=celery.log I get the following error (sample_app) ...
neerajgoyal12's user avatar
0 votes
1 answer
1k views

I really need your kind help with this problem. I recently upgraded ubuntu 18.04 to 20.04 and with it, I can't run the ryu controller that is based on python because it shows this import error: ...
Ahmad Alkrad's user avatar
1 vote
0 answers
146 views

I have this Python code and i want to use SSL for the connection. import socketio from eventlet import listen, wrap_ssl from eventlet.wsgi import server from flask import Flask from werkzeug....
Florian's user avatar
  • 86
3 votes
1 answer
156 views

Our django celery server is running with concurrency value of 500 with eventlet as execution pool. Recently, we encountered this issue and restarting the server fixed it. I am attaching the traceback ...
Shravan Nani's user avatar
0 votes
1 answer
149 views

how i can get the client IP in eventlet + WSGI, socketio when someone connects to the web socket AND when the client request any page on the site?? i tried what i can find in the internet, it doesn't ...
Shards-7's user avatar
0 votes
1 answer
353 views

i need to disable the logging in eventlet for a WSGI server, i tried several things i found online, nothing worked code : import eventlet import socketio import logging sio= socketio.Server() app = ...
Shards-7's user avatar
0 votes
1 answer
533 views

I have a simple flask application that demonstrates how to stream webcam video using the client's webcam. When I run the application locally everything runs fine but when I try to deploy the ...
Ifeanyi Nneji's user avatar
0 votes
1 answer
1k views

With a python file that is just: from flask_socketio import SocketIO I get the error: > python .\app.py Traceback (most recent call last): File "C:\{...}\server\app.py", line 127, in &...
Null Salad's user avatar
  • 1,070
12 votes
2 answers
8k views

I know that someone will face this problem. I had this problem today, but I could fix it promptly, and I want to share my solution: Problem: from flask_socketio import SocketIO You will receive an ...
Indesejavel Coisa's user avatar
5 votes
0 answers
3k views

I'm using waitress server to deploy the flask app for production. I'm also using flask's socketio along with the eventlet server which requires its own app run. Currently only serving app on waitress: ...
Liz's user avatar
  • 51
0 votes
1 answer
2k views

Update 2: The solution is in how monkey patching actually gets done. See my answer below. Update 1: The issue is the monkey patching of eventlet. Monkey patching is pretty magic to me, so I don't ...
jacob's user avatar
  • 1,107
2 votes
0 answers
1k views

I'm running Celery using code, like this: if __name__ == '__main__': worker = celery.Worker() worker.setup_defaults( loglevel=logging.INFO, pool='eventlet', concurrency=...
Cyril N.'s user avatar
  • 40.1k
3 votes
0 answers
158 views

I am currently running a Django project that offloads work to celery background workers. For CPU-bound tasks the fork pool is working great running like so: celery -A myApp worker -l INFO -E -n worker ...
Ruben Rehn's user avatar
0 votes
0 answers
908 views

I use Python eventlet pool and requests module to speed up my HTTPS request. But it makes the requests process slower, I try to find the answer to the question these days. I find some use cases for ...
Pzhang's user avatar
  • 361
0 votes
1 answer
211 views

I am using Python 2.7.5. and try to use co-routine Greenthreads (Python eventlet) and Python requests module to speed up my REST API request. I know The Python requests module uses poolmanager object (...
Pzhang's user avatar
  • 361
1 vote
0 answers
318 views

I'm using Flask on a project on an embedded system and I'm having performance issues. I'm running gunicorn with one eventlet worker by running: gunicorn -b 0.0.0.0 --worker-class eventlet -w 1 'app:...
h2e's user avatar
  • 21
2 votes
1 answer
1k views

I have a flask_socketio app with eventlet that runs on Windows, but I can't figure out how to disable the large amounts of log messages. So far I've looked at Disabling logger in flask-socketio and ...
acute_triceratops's user avatar
2 votes
1 answer
643 views

My project is created with React (create-react-app), React router (no webpack), -- Django (rest) and Socketio with eventlet on the backend. I have 3 problems with deployment with apache2 - Everything ...
The S.'s user avatar
  • 146
0 votes
0 answers
1k views

I have a simple Flask app set up which runs with the command flask run. I'd like to be able to run this app in a Docker container, which I'm trying to do using a gunicorn server. However, when I try ...
Alistair's user avatar
  • 501
1 vote
1 answer
2k views

Locally, it works. Socketio upgrades to websocket instead of resorting to polling. This is obvious from the logs: ... FYnWEW0ufWGO7ExdAAAA: Received request to upgrade to websocket ...
Sebastian Nielsen's user avatar
0 votes
1 answer
2k views

I'm trying to use background tasks with flask-socketio and run into two problems: when in reloader mode, the background task is started twice when changing the code, flask reloads but the background ...
hansaplast's user avatar
  • 11.7k
0 votes
1 answer
2k views

I'm testing a flask-socketio server in bitbucket pipeline. It failed with the following messages: Traceback (most recent call last): File "/root/.local/share/virtualenvs/build-3vGKWv3F/lib/...
Yan Yang's user avatar
  • 2,004
0 votes
0 answers
773 views

The Problem I recently posted a question trying to understand how to implement a Flask-SocketIO setup on an IIS webserver (I could only get it to work on my local development server). I was pointed ...
lc-51's user avatar
  • 119
0 votes
1 answer
5k views

I have been having some odd issues with docker today. I described one issue @ pathlib: cannot import name 'Sequence' from 'collections'. I didn't really need one of the packages that ...
Lucas Rahn's user avatar
5 votes
1 answer
6k views

I've been upgrading our Django/Python app to Python 3.9.7 and Django 3.2.7 (from Python 3.5 and Django 1.11.23). Currently if I try to run python manage.py createsuperuser I get the following error ...
Jonathan Viccary's user avatar
2 votes
1 answer
817 views

We're running a Django project with gunicorn and eventlet. I'd like to use threading.local to stash some http request data for use later in that thread (with some custom middleware). I'm wondering if ...
mr rogers's user avatar
  • 3,260
1 vote
0 answers
387 views

Getting these errors while connecting to redis with SSL. A normal action runs fine, sensor seems to be having problem. I did try to use the fixes mentioned in https://github.com/eventlet/eventlet/...
shellHell's user avatar
0 votes
1 answer
401 views

I'm trying to get my webapp to send messages and I can't figure out why it isn't working. There are no errors that I can see, it's just that the actions in my event.py function aren't happening. I am ...
3Ring's user avatar
  • 79
0 votes
1 answer
718 views

Currently, I am in the process of building an application that is capable of executing shell commands and fetching the results to a web browser. My problem is that the results display fine on the ...
Stan1234's user avatar
2 votes
0 answers
220 views

When I run my flask app with worker-class=gevent on gunicorn, the server blocks. gunicorn command gunicorn app:app --workers=5 --worker-class=gevent --threads=5 --timeout=1800 --log-level=DEBUG ...
gsroot's user avatar
  • 21
0 votes
1 answer
235 views

I used flask-socketio to implement websocket. I used the eventlet/socketio sleep() function, which supposed to work asynchronously. And this is working in my custom event but when it is under the ...
Mainul's user avatar
  • 33
1 vote
0 answers
624 views

This is just a long way of asking: "How does sync_to_async work with blocking IO, and gevent/psycogreen"? For example: from myapp.models import SomeModel from asgiref.sync import ...
jmunsch's user avatar
  • 24.3k
33 votes
3 answers
27k views

I had a working code running flask with gunicorn (eventlet worker) in docker. It's also working in production, but on my machine, it started doing this. I can't find anything on google about this ...
Mark7888's user avatar
  • 853
0 votes
1 answer
1k views

I am developing my final degree project and I am facing some problems with Python, Flask, socketIO and background threads. My solution takes some files as input, process them, makes some calculations, ...
Marcos Álvarez's user avatar
1 vote
0 answers
469 views

I'm facing an issue related to using an active I/O connection in the SigTerm handler using gunicorn eventlet server. server.py def exit_with_grace(*args): conn = get_redis_connection() conn....
mdargacz's user avatar
  • 1,379
0 votes
2 answers
2k views

I'm having trouble running Flask & SocketIO with Eventlet despite using socketio.run(), any suggestions are appreciated. I'm currently on Python 3.9 and I've tried multiple different versions of ...
Skel's user avatar
  • 11
0 votes
1 answer
2k views

I am new to server development so please be kind... I am developing a test application that starts a flask-socketio server and after interacting with a clients, it needs to shutdown and open another ...
zambs's user avatar
  • 31

1
2 3 4 5
7