From dbf1a685bf41df1facaec5ae1c3b86d8c333756b Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 16 Dec 2023 09:52:02 +0200 Subject: [PATCH] Do not connect Hookshot to Redis unless encryption is enabled It seems like connectivity is problematic, even though the networks appear to be configured correctly: > [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.22.0.2:6739 > at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) For now, I disable pointing the queue host to Redis to avoid it. It should be investigated. People who enable Hookshot's new experimental encryption may encounter this also. Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3042 --- group_vars/matrix_servers | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index 957a15339..5b3cc8244 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -1390,7 +1390,9 @@ matrix_hookshot_systemd_wanted_services_list: | }} # Hookshot's experimental encryption feature (and possibly others) may benefit from Redis, if available. -matrix_hookshot_queue_host: "{{ redis_identifier if redis_enabled else '' }}" +# We only connect to Redis if encryption is enabled (not for everyone who has Redis enabled), +# because connectivity is still potentially troublesome and is to be investigated. +matrix_hookshot_queue_host: "{{ redis_identifier if redis_enabled and matrix_hookshot_experimental_encryption_enabled else '' }}" matrix_hookshot_container_additional_networks_auto: | {{