Good morning, I have installed GVM on my gentoo laptop, following the Greenbone_Vulnerability_Management Wiki Guide on gentoo wiki
During installation I found some problems in the ebuilds and I posted patches on bugs.gentoo.org:
Bugs: 905264 and 905411
Now the system seems to be up and running with:
Greenbone Vulnerability Manager 21.4.5
Manager DB revision 242
Greenbone Security Assistant 21.4.4
OpenVAS 21.4.4
gvm-libs 21.4.4
OSP Server for openvas: 21.4.4
OSP: 21.4.5.dev1
OSPd OpenVAS: 21.4.5.dev1
redis 7.0.10
I have read these topics:
but I am still unable to run a scan.
Everytime I try to start a task, the process stops showing these errors in report:
Host process failure (Redis Error: Not possible to set GVM.__GlobalDBIndex.).
Scan process Failure
Scan process Failure
Task interrupted unexpectedly
In /var/log/gvm/ospd-openvas.log I can read:
OSPD[9297] 2023-05-02 08:12:16,375: INFO: (ospd.command.command) Scan 3eb5bdd0-a46d-46ef-83bf-8562b30611b2 added to the queue in position 1.
OSPD[9297] 2023-05-02 08:13:21,532: INFO: (ospd.ospd) Currently 1 queued scans.
OSPD[9297] 2023-05-02 08:13:21,540: INFO: (ospd.ospd) Starting scan 3eb5bdd0-a46d-46ef-83bf-8562b30611b2.
OSPD[9297] 2023-05-02 08:13:21,543: ERROR: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Exception Redis Error: Not possible to set GVM.__GlobalDBIndex. while scanning
Traceback (most recent call last):
File “/usr/lib/python3.10/site-packages/ospd/ospd.py”, line 522, in start_scan
self.exec_scan(scan_id)
File “/usr/lib/python3.10/site-packages/ospd_openvas/daemon.py”, line 1242, in exec_scan
kbdb = self.main_db.get_new_kb_database()
File “/usr/lib/python3.10/site-packages/ospd_openvas/db.py”, line 620, in get_new_kb_database
if self.try_database(index):
File “/usr/lib/python3.10/site-packages/ospd_openvas/db.py”, line 611, in try_database
raise OspdOpenvasError(
ospd_openvas.errors.OspdOpenvasError: Redis Error: Not possible to set GVM.__GlobalDBIndex.
OSPD[9297] 2023-05-02 08:13:21,547: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Host scan got interrupted. Progress: 0, Status: RUNNING
OSPD[9297] 2023-05-02 08:13:21,547: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan interrupted.
OSPD[9297] 2023-05-02 08:13:26,562: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan process is dead and its progress is 0
OSPD[9297] 2023-05-02 08:13:26,563: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan interrupted.
OSPD[9297] 2023-05-02 08:13:26,569: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan process is dead and its progress is 0
OSPD[9297] 2023-05-02 08:13:26,570: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan interrupted.
OSPD[9297] 2023-05-02 08:13:26,600: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan process is dead and its progress is 0
OSPD[9297] 2023-05-02 08:13:26,601: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan interrupted.
OSPD[9297] 2023-05-02 08:13:26,616: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan process is dead and its progress is 0
OSPD[9297] 2023-05-02 08:13:26,616: INFO: (ospd.ospd) 3eb5bdd0-a46d-46ef-83bf-8562b30611b2: Scan interrupted.
the redis.sock is writable and readable to gvm user, via ACL:
~# getfacl /run/redis/redis.sock
getfacl: Removing leading ‘/’ from absolute path names
~# file: run/redis/redis.sock
~# owner: redis
~# group: redis
user::rwx
user:gvm:rw-
group::rwx
mask::rwx
other::—
Querying redis via redis-cli with gvm user I can see:
redis-cli -s /var/run/redis/redis.sock
redis /var/run/redis/redis.sock> Keys *
- “GVM.__GlobalDBIndex”
redis /var/run/redis/redis.sock> TYPE GVM.__GlobalDBIndex
hash
redis /var/run/redis/redis.sock> HGETALL GVM.__GlobalDBIndex - “1”
- “1”
redis /var/run/redis/redis.sock>
I don’t have a disk space issue and hardware seems to work fine.
I tried to flush all redis cache, and the problem is still there.
Any help appreciated.