Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Completely Unsolved Errors

I've been running into this issue the whole day and haven't managed to fix it. 

Issue: 
When running dialogflow, the script cannot connect with the redis server, even though the redis server is running. I've attempted nearly all possible modifications of the conf files. I had managed to run all the scripts once, but then had to restart my pc to fix the microphone issue and I didn't manage to connect to the redis server from dialogflow since. 

ss of server launched:
<image.png>

Platform: 

Windows, installed Redis on Ubuntu (WSL 2)

Console feedback:

PS D:\docs\uni-folder\2024-2025\project-conversational-agents\agent-group_i1> run-dialogflow 
Turbojpeg not found, falling back to PIL

Traceback (most recent call last):

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\connection.py", line 592, in read_response

    response = self._parser.read_response(disable_decoding=disable_decoding)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\_parsers\resp2.py", line 15, in read_response

    result = self._read_response(disable_decoding=disable_decoding)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\_parsers\resp2.py", line 25, in _read_response

    raw = self._buffer.readline()

          ^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\_parsers\socket.py", line 115, in readline

    self._read_from_socket()

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\_parsers\socket.py", line 65, in _read_from_socket

    data = self._sock.recv(socket_read_size)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\sic_framework\core\sic_redis.py", line 118, in __init__

    self._redis.ping()

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\commands\core.py", line 1212, in ping

    return self.execute_command("PING", **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\client.py", line 559, in execute_command

    return self._execute_command(*args, **options)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\client.py", line 565, in _execute_command

    conn = self.connection or pool.get_connection(command_name, **options)

                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\connection.py", line 1422, in get_connection

    connection.connect()

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\connection.py", line 369, in connect

    self.on_connect()

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\connection.py", line 434, in on_connect

    auth_response = self.read_response()

                    ^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\redis\connection.py", line 600, in read_response

    raise ConnectionError(

redis.exceptions.ConnectionError: Error while reading from 127.0.0.1:6379 : (10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main

  File "<frozen runpy>", line 88, in _run_code

  File "C:\Users\hleca\miniconda3\envs\PCA25\Scripts\run-dialogflow.exe\__main__.py", line 7, in <module>

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\sic_framework\services\dialogflow\dialogflow.py", line 347, in main

    SICComponentManager([DialogflowComponent])

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\sic_framework\core\component_manager_python2.py", line 56, in __init__

    self.redis = SICRedis()

                 ^^^^^^^^^^

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\sic_framework\core\sic_redis.py", line 126, in __init__

    six.reraise(Exception, e, None)

  File "C:\Users\hleca\miniconda3\envs\PCA25\Lib\site-packages\six.py", line 719, in reraise

    raise value

Exception: Could not connect to redis at 127.0.0.1

 Have you started redis? Use: `redis-server conf/redis/redis.conf`

Steps to reproduce:

  1. open a wsl interface and initialize the redis server from the config file provided in the GH repo (can also not do this, same error happens). Like this
    <image.png>

  2. attempt to run-dialogflow. Ensure that PCA25 venv is on. 

  3. fallback into PIL, leads to connection failure with redis. 

...