Hint: Redis setup / configuration for GSE/GVM/OpenVAS

redis
hint

#1

Redis Setup

Note: If you have any questions on this topic please start a new thread for each question and link back to this topic so that it can be updated accordingly.

When running a GSE/GVM/OpenVAS setup build from source please pay special attention on the setup / configuration of Redis for a smooth operation of your whole setup. If you’re facing issues with your scans please see the “Common issues” section below.

The following documentation is guiding you through this setup:

Common issues

Scanner / openvassd startup is timing out

If your scanner startup (example of systemd) is timing out with the following message:

Redirecting to /bin/systemctl start  openvas-scanner.service.service
Job for openvas-scanner.service failed because a timeout was exceeded.
See "systemctl status openvas-scanner.service" and "journalctl -xe" for details.

revisit your Redis setup with the resources mentioned above. The following steps are known to work and to solve this issue:

  1. Delete the file dump.rdb (Located in e.g. /var/run/redis depending on your setup)
  2. Comment out/remove all save xy z (e.g. save 900 1) from your redis.conf (Located in e.g. /etc/redis depending on your setup)
  3. Optional: Flush your redis database (Depending on your setup, e.g. redis-cli -s /var/run/redis/redis.sock flushall)
  4. Restart redis (Depending on your setup, e.g. service redis-server restart)
  5. Restart the Scanner (openvassd) and try again

Tasks stop at 1%: openvas_scanner_read: Failed to read from scanner: Connection reset by peer
Gvmd stuck at "Reloading NVTs" process "Updating NVT cache" never ends
Openvas-sanner errors
Openvasmd fails to communicate with openvassd
Job for openvas-scanner.service failed because a timeout was exceeded on ubuntu
Failed to start Open Vulnerability Assessment system scanner Daemon
Openvas cache rebuild doesn't seem to be working
SQLite error and tasks stuck
pinned #2

closed #3