Redis connection error

install source editon on debian 10.5

after install openvas ; execute sudo openvas -u ,log info
lib kb:CRITICAL:2020-08-13 05h55.43 utc:1102: redis_find: redis connection error to /run/redis/redis.sock : No such file or directory
lib kb:CRITICAL:2020-08-13 05h55.43 utc:1102: get_redis_ctx: redis connection error to /run/redis/redis.sock : No such file or directory

There are a lot of topics in this forum for configuring redis. Please use search to find some hints.

Also you can take a look at https://github.com/greenbone/openvas/blob/master/doc/redis_config.md

1 Like

cat /etc/redis/redis.conf | grep unix | grep -v “^#”
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 770

cat /opt/gvm/etc/openvas/openvas.conf
db_address = /run/redis/redis-server.sock

$ ps -ef|grep redis
redis 19868 1 0 17:46 ? 00:00:00 /usr/bin/redis-server 127.0.0.1:100:

I can connect to redis in shell.

su - gvm
redis-cli -s /var/run/redis/redis-server.sock
redis /var/run/redis/redis-server.sock>

But
openvas -u

redis_find: redis connection error to /run/redis/redis-server.sock : No such file or directory
get_redis_ctx: redis connection error to /run/redis/redis-server.sock : No such file or directory

Obviously this:

doesn’t match this:

At least if /var/run isn’t a symlink to /run.

1 Like