Package: redis-redisearch
Version: 1.2.2-3

The /usr/lib/redis/modules/redisearch.so file needs executable permissions, otherwise Redis won't start.


Quick reproducer in a container:

root@c47b056bcc1f:/# apt-get update && apt-get install -y sudo redis-redisearch
[...]

root@c47b056bcc1f:/# sudo -u redis redis-server --loadmodule /usr/lib/redis/modules/redisearch.so 290:C 02 Jun 2021 12:10:34.530 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 290:C 02 Jun 2021 12:10:34.530 # Redis version=6.0.14, bits=64, commit=00000000, modified=0, pid=290, just started
290:C 02 Jun 2021 12:10:34.530 # Configuration loaded
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 6.0.14 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 290
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

290:M 02 Jun 2021 12:10:34.534 # Server initialized
290:M 02 Jun 2021 12:10:34.534 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 290:M 02 Jun 2021 12:10:34.534 # Module /usr/lib/redis/modules/redisearch.so failed to load: It does not have execute permissions. 290:M 02 Jun 2021 12:10:34.534 # Can't load module from /usr/lib/redis/modules/redisearch.so: server aborting

root@c47b056bcc1f:/# ls -lh /usr/lib/redis/modules/redisearch.so
-rw-r--r--. 1 root root 2.0M Apr 23 2020 /usr/lib/redis/modules/redisearch.so

root@c47b056bcc1f:/# chmod +x /usr/lib/redis/modules/redisearch.so

root@c47b056bcc1f:/# sudo -u redis redis-server --loadmodule /usr/lib/redis/modules/redisearch.so 294:C 02 Jun 2021 12:10:53.581 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 294:C 02 Jun 2021 12:10:53.581 # Redis version=6.0.14, bits=64, commit=00000000, modified=0, pid=294, just started
294:C 02 Jun 2021 12:10:53.581 # Configuration loaded
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 6.0.14 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 294
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

294:M 02 Jun 2021 12:10:53.584 # Server initialized
294:M 02 Jun 2021 12:10:53.585 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
294:M 02 Jun 2021 12:10:53.587 * <ft> RediSearch version 1.2.0 (Git=)
294:M 02 Jun 2021 12:10:53.587 * <ft> concurrency: ON, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, search pool size: 20, index pool size: 8,
294:M 02 Jun 2021 12:10:53.588 * <ft> Initialized thread pool!
294:M 02 Jun 2021 12:10:53.588 * Module 'ft' loaded from /usr/lib/redis/modules/redisearch.so
294:M 02 Jun 2021 12:10:53.588 * Ready to accept connections
^C294:signal-handler (1622635855) Received SIGINT scheduling shutdown...
294:M 02 Jun 2021 12:10:55.999 # User requested shutdown...
294:M 02 Jun 2021 12:10:55.999 # Redis is now ready to exit, bye bye...


Problem occurs with Debian bullseye and sid, it works fine on buster. I guess it's a change in Redis version 6.


Cheers,
Andreas

Reply via email to