Greenbone Security Assistant Version 21.4.3
Hello I am running into an issue with my GVM instance. Everytime I go to run a scan now it gives me the following error:
OSPD[10473] 2022-09-12 15:49:38,902: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Host scan got interrupted. Progress: 0, Status: RUNNING
OSPD[10473] 2022-09-12 15:49:38,902: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan interrupted.
OSPD[10473] 2022-09-12 15:49:42,289: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan process is dead and its progress is 0
OSPD[10473] 2022-09-12 15:49:42,292: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan interrupted.
OSPD[10473] 2022-09-12 15:49:42,297: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan process is dead and its progress is 0
OSPD[10473] 2022-09-12 15:49:42,298: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan interrupted.
OSPD[10473] 2022-09-12 15:49:42,338: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan process is dead and its progress is 0
OSPD[10473] 2022-09-12 15:49:42,338: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan interrupted.
OSPD[10473] 2022-09-12 15:49:42,369: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan process is dead and its progress is 0
OSPD[10473] 2022-09-12 15:49:42,369: INFO: (ospd.ospd) 3f0637ad-d7c0-4268-9e26-0cbdfe6cdb2c: Scan interrupted.
OSPD[10473] 2022-09-12 15:54:27,115: INFO: (ospd.main) Shutting-down server ...
OSPD[16440] 2022-09-12 16:00:19,013: INFO: (ospd.main) Starting OSPd OpenVAS version 21.4.5.dev1.
OSPD[16440] 2022-09-12 16:03:33,109: INFO: (ospd.main) Shutting-down server ...
OSPD[17469] 2022-09-12 16:06:36,030: INFO: (ospd.main) Starting OSPd OpenVAS version 21.4.5.dev1.
OSPD[17469] 2022-09-12 16:08:44,427: INFO: (ospd.command.command) Scan a656f814-fb9d-47aa-8f0b-e16495bb459e added to the queue in position 1.
OSPD[17469] 2022-09-12 16:08:54,429: INFO: (ospd.ospd) Currently 1 queued scans.
OSPD[17469] 2022-09-12 16:08:54,494: INFO: (ospd.ospd) Starting scan a656f814-fb9d-47aa-8f0b-e16495bb459e.
OSPD[17469] 2022-09-12 16:08:54,498: ERROR: (ospd.ospd) a656f814-fb9d-47aa-8f0b-e16495bb459e: Exception Redis Error: Not possible to set GVM.__GlobalDBIndex. while scanning
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 522, in start_scan
self.exec_scan(scan_id)
File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 1242, in exec_scan
kbdb = self.main_db.get_new_kb_database()
File "/usr/lib/python3/dist-packages/ospd_openvas/db.py", line 620, in get_new_kb_database
if self.try_database(index):
File "/usr/lib/python3/dist-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[17469] 2022-09-12 16:08:54,501: INFO: (ospd.ospd) a656f814-fb9d-47aa-8f0b-e16495bb459e: Host scan got interrupted. Progress: 0, Status: RUNNING
OSPD[17469] 2022-09-12 16:08:54,501: INFO: (ospd.ospd) a656f814-fb9d-47aa-8f0b-e16495bb459e: Scan interrupted.
OSPD[17469] 2022-09-12 16:08:54,515: INFO: (ospd.ospd) a656f814-fb9d-47aa-8f0b-e16495bb459e: Scan process is dead and its progress is 0
OSPD[17469] 2022-09-12 16:08:54,515: INFO: (ospd.ospd) a656f814-fb9d-47aa-8f0b-e16495bb459e: Scan interrupted.
OSPD[17469] 2022-09-12 16:08:54,535: INFO: (ospd.ospd) a656f814-fb9d-47aa-8f0b-e16495bb459e: Scan process is dead and its progress is 0
OSPD[17469] 2022-09-12 16:08:54,535: INFO: (ospd.ospd) a656f814-fb9d-47aa-8f0b-e16495bb459e: Scan interrupted.
I have looked around on the forum and elsewhere and nothing has been able to fix the problem. This is a new issue as i was able to run a scan a couple of days ago and it worked fine. The redis server is running I checked via systemctl. When I connect to the redis-server.sock I do not have any keys in the GVM._globaldbindex.
βββ(rootπKali)-[/var/run/redis-openvas]
ββ# redis-cli -s /var/run/redis-openvas/redis-server.sock
redis /var/run/redis-openvas/redis-server.sock> Select 0
OK
redis /var/run/redis-openvas/redis-server.sock> Keys *
1) "GVM.__GlobalDBIndex"
redis /var/run/redis-openvas/redis-server.sock> HGETALL GVM._GlobalDBIndex
(empty array)
redis /var/run/redis-openvas/redis-server.sock>
If anyone has any advice on how to correct this issue please let me know.