Redis-Server Systemctl

Hey Ho,

the gvmd, gsad and the openvassd systemctl are running now fine, but now i wanna use the orginal systemctl from redis. But its start with an default template, but i need to run it with redis_2_6.conf configuration that the openvassd can be startet, when i run the command normal like that:

redis-server /home/user/install/share/doc/openvas-scanner/redis_config_examples/redis_2_6.conf

the redis server starts normal, but when i change the path in the redis-server.service file to the file from the redis_2_6.conf it hangs up (but its starts also… but it looks not fine… cause i have to interrupt the shell to do the next command). Anyone know why the systemctl have problems with the other config file? Or is that a Layer 8 problem :smiley:

GVM versions

gsa: 8.0.1
gvm: 8.0.1
openvas-scanner: 6.0.1
gvm-libs: 10.0.1
gvm-tools: 2.0.0.beta1

Environment Greenbone Server

**Operating system: Ubuntu Server 18.4
**Kernel: 4.15.0-58-generic
**Installation method / source: Github

This is the complete error when i try to start redis with systemctl start redis.server with the conf file from redis_2_6.conf which is in the same direcotry like the standard .conf file… I also tryied to include the 2_6 file in the standard file… doesnt work too…

Sep 04 14:21:39 greenbone systemd[1]: Starting Advanced key-value store…
Sep 04 14:21:39 greenbone redis-server[3599]: 3599:C 04 Sep 14:21:39.668 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
Sep 04 14:21:39 greenbone redis-server[3599]: oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
Sep 04 14:21:39 greenbone redis-server[3599]: 3599:C 04 Sep 14:21:39.669 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=3599, just started
Sep 04 14:21:39 greenbone redis-server[3599]: 3599:C 04 Sep 14:21:39.669 # Configuration loaded
Sep 04 14:21:39 greenbone redis-server[3599]: Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=3599, just started
Sep 04 14:21:39 greenbone redis-server[3599]: Configuration loaded
Sep 04 14:21:39 greenbone systemd[1]: redis-server.service: Can’t open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory
Sep 04 14:21:39 greenbone redis[3611]: Running mode=standalone, port=0.
Sep 04 14:21:39 greenbone redis[3611]: WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
Sep 04 14:21:39 greenbone redis[3611]: Server initialized
Sep 04 14:21:39 greenbone redis[3611]: WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
Sep 04 14:21:39 greenbone redis[3611]: The server is now ready to accept connections at /tmp/redis.sock

Now its works, the solution was the change follow settings in the redis.conf

OLD: bind 127.0.0.1
NEW: bind 10.80.1.194

OLD: port 6379
NEW: port 0

OLD: #unixsocket /tmp/redis.sock
OLD: #unixsocketperm 700
NEW: unixsocket /tmp/redis.sock
NEW: unixsocketperm 700

1 Like