eva
eva copied to clipboard
redis connection refused on windows
Hello! I seem to be experiencing a problem with the tool
in the DJango terminal
Traceback (most recent call last):
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 484, in connect
sock = self._connect()
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 541, in _connect
raise err
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 529, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\client.py", line 2408, in _execute
return command(*args)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 610, in send_command
self.send_packed_command(self.pack_command(*args))
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 585, in send_packed_command
self.connect()
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 484, in connect
sock = self._connect()
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 541, in _connect
raise err
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 529, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\kombu\connection.py", line 431, in _reraise_as_library_errors
yield
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\app\base.py", line 744, in send_task
self.backend.on_task_call(P, task_id)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\backends\redis.py", line 265, in on_task_call
self.result_consumer.consume_from(task_id)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\backends\redis.py", line 126, in consume_from
self._consume_from(task_id)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\backends\redis.py", line 132, in _consume_from
self._pubsub.subscribe(key)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\client.py", line 2482, in subscribe
ret_val = self.execute_command('SUBSCRIBE', *iterkeys(new_channels))
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\client.py", line 2404, in execute_command
self._execute(connection, connection.send_command, *args)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\client.py", line 2415, in _execute
connection.connect()
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\django\core\handlers\exception.py", line 41, in inner
response = get_response(request)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\django\core\handlers\base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\django\core\handlers\base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\django\core\handlers\base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\django\views\generic\base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\django\views\generic\base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "C:\Users\username\Desktop\KN_development\TOI_Tracking_Annotators\eva\annotator\views.py", line 692, in post
create_cache_task.s())(id)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\canvas.py", line 530, in __call__
return self.apply_async(args, kwargs)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\canvas.py", line 557, in apply_async
dict(self.options, **options) if options else self.options))
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\canvas.py", line 584, in run
first_task.apply_async(**options)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\canvas.py", line 218, in apply_async
return _apply(args, kwargs, **options)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\app\task.py", line 535, in apply_async
**options
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\app\base.py", line 745, in send_task
amqp.send_task_message(P, name, message, **options)
File "C:\Users\username\AppData\Local\Programs\Python\Python36\lib\contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\kombu\connection.py", line 436, in _reraise_as_library_errors
sys.exc_info()[2])
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\vine\five.py", line 194, in reraise
raise value.with_traceback(tb)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\kombu\connection.py", line 431, in _reraise_as_library_errors
yield
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\app\base.py", line 744, in send_task
self.backend.on_task_call(P, task_id)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\backends\redis.py", line 265, in on_task_call
self.result_consumer.consume_from(task_id)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\backends\redis.py", line 126, in consume_from
self._consume_from(task_id)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\celery\backends\redis.py", line 132, in _consume_from
self._pubsub.subscribe(key)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\client.py", line 2482, in subscribe
ret_val = self.execute_command('SUBSCRIBE', *iterkeys(new_channels))
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\client.py", line 2404, in execute_command
self._execute(connection, connection.send_command, *args)
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\client.py", line 2415, in _execute
connection.connect()
File "C:\Users\username\Desktop\pyenvs\eva_annotate\lib\site-packages\redis\connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
kombu.exceptions.OperationalError: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it.
and in the celery terminal
[2025-04-03 15:12:05,673] consumer: Cannot connect to redis://localhost:6379/1: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it..
Trying again in 20.00 seconds...
[2025-04-03 15:12:33,994] consumer: Cannot connect to redis://localhost:6379/1: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it..
Trying again in 22.00 seconds...
[2025-04-03 15:13:04,291] consumer: Cannot connect to redis://localhost:6379/1: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it..
Trying again in 24.00 seconds...
[2025-04-03 15:13:36,616] consumer: Cannot connect to redis://localhost:6379/1: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it..
Trying again in 26.00 seconds...
[2025-04-03 15:14:10,956] consumer: Cannot connect to redis://localhost:6379/1: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it..
Trying again in 28.00 seconds...
[2025-04-03 15:14:47,301] consumer: Cannot connect to redis://localhost:6379/1: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it..
Trying again in 30.00 seconds...
I am running on windows 10, using python 3.6, and the requirements are installed according to the requirements.txt
From the GUI
this thing has been spinnning forever. Probably got stuck due to the connection error?