Setting up the Redis Data Store

Hallo Team
It is my first time building Greenbone from source.

I am building 22.4 from source on Debian 11 bullseye according to the official guide here Building 22.4 from Source - Greenbone Community Documentation.

All has gone well from the begining but I hit a dead end with this error while setting up Redis server.

Executed successfully;

sudo apt install -y redis-server 

sudo cp $SOURCE_DIR/openvas-scanner-$GVM_VERSION/config/redis-openvas.conf /etc/redis/
sudo chown redis:redis /etc/redis/redis-openvas.conf
echo "db_address = /run/redis-openvas/redis.sock" | sudo tee -a /etc/openvas/openvas.conf

Error comes at this point;

/source/notus-scanner-22.4.5# sudo systemctl start redis-server@openvas.service
Job for redis-server@openvas.service failed because the control process exited with error code.
See "systemctl status redis-server@openvas.service" and "journalctl -xe" for details.
``
Your help will be appreciated. Thank you.

Hi,

what’s the output of systemctl status redis-server@openvas.service?

1 Like

Hi Bricks,
Below is the output for systemctl status redis-server@openvas.service

redis-server@openvas.service - Advanced key-value store (openvas)
Loaded: loaded (/lib/systemd/system/redis-server@.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-06-12 12:29:37 UTC; 44s ago
Docs: https://redis.io/docs/,
man:redis-server(1)
Process: 63454 ExecStart=/usr/bin/redis-server /etc/redis/redis-openvas.conf --supervised systemd --daemonize no (code=exited, status=226/NAMESPACE)
Main PID: 63454 (code=exited, status=226/NAMESPACE)
CPU: 9ms

Jun 12 12:29:37 GVMD systemd[1]: redis-server@openvas.service: Main process exited, code=exited, status=226/NAMESPACE
Jun 12 12:29:37 GVMD systemd[1]: redis-server@openvas.service: Failed with result ‘exit-code’.
Jun 12 12:29:37 GVMD systemd[1]: Failed to start Advanced key-value store (openvas).
Jun 12 12:29:37 GVMD systemd[1]: redis-server@openvas.service: Scheduled restart job, restart counter is at 5.
Jun 12 12:29:37 GVMD systemd[1]: Stopped Advanced key-value store (openvas).
Jun 12 12:29:37 GVMD systemd[1]: redis-server@openvas.service: Start request repeated too quickly.
Jun 12 12:29:37 GVMD systemd[1]: redis-server@openvas.service: Failed with result ‘exit-code’.
Jun 12 12:29:37 GVMD systemd[1]: Failed to start Advanced key-value store (openvas)

Ok that doesn’t contain any useful information. Can you find any hint in the systemd journal?

1 Like

Oh and btw. are you sure you are using Debian 11 bullseye and not the just released Debian 12 bookworm?

1 Like

I am on indeed on Debian 11 bullseye.

2 posts were split to a new topic: Error while setting up Redis server