Hi Prakash,
I went a little further, below here is what I've done. My context is redis + redis sentinel nodes.
First, I did a dist upgrade from debian 11 to 12
Having read Wes comment, I used the Following apt source list to upgrade redis from 6.x to 7.4.0-v8 (have a look with "apt policy redis"):
deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg]
https://packages.redis.io/deb bullseye main (yes I know it is bullseye on a bookworm …)
I replaced distrib packages redis-server and redis-sentinel to redis-stack-server which handles redis server and sentinel. I created new services using old /etc/redis/redis.conf and /etc/redis/sentinel.conf with the same binary /opt/redis-stack/bin/redis-stack-server.
I updated /etc/redis/redis.conf with the new redisearch module path, as said Wes :
loadmodule /opt/redis-stack/lib/redisearch.so
Then I eventually stopped and disabled the old ones then enabled and activated the new ones
this done, the bundled redisearch module changed from v1.2.0 (redisearch.so from deb 11 distrib) to to v2.xx :
127.0.0.1:6379> MODULE LIST
1) 1) "name"
2) "search"
3) "ver"
4) (integer) 21020
5) "path"
6) "/opt/redis-stack/lib/redisearch.so"
7) "args"
8) (empty array)
For info, with redis packages from debian 11 I had this redisearch version :
4) (integer) 10200
Then I edit acl on my user on every nodes and thru sentinel connecting on port 26379, I Added the &* so that my user can subscribe to the "channels" pub/sub :
127.0.0.1:6379>ACL SETUSER myuser on nopass ~* &* +@all
127.0.0.1:6379> acl list
1) "user myuser on sanitize-payload #a9a9a9a9b8b8b8b8c7c7c7blahblah ~* &* +@all"
I finally turned redis.enable-redis-search to true and … it's finally working.
But I've got a new issue : this parameter does not look to support sentinel : when I stop my redis server service on node 1, redisearch looks for localhost and does not use sentinel backup on the other nodes, in the logs I have : Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/
127.0.0.1:6379 and cas won't start if I restart the tomcat service.
When my redis-stack-service is stopped on node 1 and redis.enable-redis-search set to false, sentinel works perfectly and cas talks to redis servers running on the other nodes. So, for now, I cannot set this parameter to "true".
If you do not use sentinel, this might be ok for you ...
I might have forgotten Something somewhere … ? Is it worth giving a try on debian 13 trixie with redis 8+ ?
To Wes, are you using sentinel nodes ?
Regards,