I noticed that the redis-server@openvas.servise is using 5GB of RAM and when scanning at some point, it apparently does not have enough memory. Reboot the server does not help, I tried to reinstall the GVM. After reinstallation, the redis-server, as usual, occupied 200-250MB of RAM. I tried to run a scan but ran into the same problem only at 23% of the scan
OSPD[576867] 2023-02-20 17:24:34,555: INFO: (ospd.main) Shutting-down server ...
OSPD[847208] 2023-02-20 17:25:36,739: INFO: (ospd.main) Starting OSPd OpenVAS version 22.4.5.
OSPD[847208] 2023-02-20 17:25:36,757: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[847208] 2023-02-20 17:25:46,847: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[847208] 2023-02-20 17:25:46,919: INFO: (ospd_openvas.notus) hashsum verification is disabled
OSPD[847208] 2023-02-20 17:27:51,414: INFO: (ospd_openvas.daemon) VTs were up to date. Feed version is 202302091018.
OSPD[847208] 2023-02-20 17:39:30,885: INFO: (ospd.main) Shutting-down server ...
OSPD[848034] 2023-02-20 17:40:43,019: INFO: (ospd.main) Starting OSPd OpenVAS version 22.4.5.
OSPD[848034] 2023-02-20 17:40:43,037: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[848034] 2023-02-20 17:40:53,144: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[848034] 2023-02-20 17:40:53,219: INFO: (ospd_openvas.notus) hashsum verification is disabled
OSPD[848034] 2023-02-20 17:50:35,896: INFO: (ospd.main) Shutting-down server ...
OSPD[848265] 2023-02-20 17:51:46,851: INFO: (ospd.main) Starting OSPd OpenVAS version 22.4.5.
OSPD[848265] 2023-02-20 17:51:46,866: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[848265] 2023-02-20 17:51:56,977: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[848265] 2023-02-20 17:51:57,051: INFO: (ospd_openvas.notus) hashsum verification is disabled
OSPD[848265] 2023-02-20 17:54:25,998: INFO: (ospd_openvas.daemon) VTs were up to date. Feed version is 202302091018.
OSPD[848265] 2023-02-20 17:57:00,888: INFO: (ospd.main) Shutting-down server ...
OSPD[853044] 2023-02-20 18:06:23,004: INFO: (ospd.main) Starting OSPd OpenVAS version 22.4.5.
OSPD[853044] 2023-02-20 18:06:23,020: INFO: (ospd_openvas.messaging.mqtt) Successfully connected to MQTT broker
OSPD[853044] 2023-02-20 18:06:33,108: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[853044] 2023-02-20 18:06:33,245: WARNING: (gnupg) potential problem: ERROR: add_keyblock_resource 33587201
OSPD[853044] 2023-02-20 18:06:33,245: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,246: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,247: WARNING: (gnupg) gpg returned a non-zero error code: 2
OSPD[853044] 2023-02-20 18:06:33,247: WARNING: (ospd_openvas.notus) GPG verification of notus sha256sums failed. Notus advisories are not loaded.
OSPD[853044] 2023-02-20 18:06:33,247: WARNING: (ospd_openvas.notus) ignoring /var/lib/notus/advisories/mageia.notus due to invalid signature
OSPD[853044] 2023-02-20 18:06:33,348: WARNING: (gnupg) potential problem: ERROR: add_keyblock_resource 33587201
OSPD[853044] 2023-02-20 18:06:33,349: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,349: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,350: WARNING: (gnupg) gpg returned a non-zero error code: 2
OSPD[853044] 2023-02-20 18:06:33,350: WARNING: (ospd_openvas.notus) GPG verification of notus sha256sums failed. Notus advisories are not loaded.
OSPD[853044] 2023-02-20 18:06:33,350: WARNING: (ospd_openvas.notus) ignoring /var/lib/notus/advisories/euleros.notus due to invalid signature
OSPD[853044] 2023-02-20 18:06:33,425: WARNING: (gnupg) potential problem: ERROR: add_keyblock_resource 33587201
OSPD[853044] 2023-02-20 18:06:33,426: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,426: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,427: WARNING: (gnupg) gpg returned a non-zero error code: 2
OSPD[853044] 2023-02-20 18:06:33,427: WARNING: (ospd_openvas.notus) GPG verification of notus sha256sums failed. Notus advisories are not loaded.
OSPD[853044] 2023-02-20 18:06:33,427: WARNING: (ospd_openvas.notus) ignoring /var/lib/notus/advisories/ubuntu.notus due to invalid signature
OSPD[853044] 2023-02-20 18:06:33,447: WARNING: (gnupg) potential problem: ERROR: add_keyblock_resource 33587201
OSPD[853044] 2023-02-20 18:06:33,448: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,448: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,448: WARNING: (gnupg) gpg returned a non-zero error code: 2
OSPD[853044] 2023-02-20 18:06:33,449: WARNING: (ospd_openvas.notus) GPG verification of notus sha256sums failed. Notus advisories are not loaded.
OSPD[853044] 2023-02-20 18:06:33,449: WARNING: (ospd_openvas.notus) ignoring /var/lib/notus/advisories/slackware.notus due to invalid signature
OSPD[853044] 2023-02-20 18:06:33,583: WARNING: (gnupg) potential problem: ERROR: add_keyblock_resource 33587201
OSPD[853044] 2023-02-20 18:06:33,583: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,584: WARNING: (gnupg) potential problem: ERROR: keydb_search 33554445
OSPD[853044] 2023-02-20 18:06:33,584: WARNING: (gnupg) gpg returned a non-zero error code: 2
OSPD[853044] 2023-02-20 18:06:33,585: WARNING: (ospd_openvas.notus) GPG verification of notus sha256sums failed. Notus advisories are not loaded.
OSPD[853044] 2023-02-20 18:06:33,585: WARNING: (ospd_openvas.notus) ignoring /var/lib/notus/advisories/suse.notus due to invalid signature
OSPD[853044] 2023-02-20 18:07:45,445: INFO: (ospd_openvas.daemon) VTs were up to date. Feed version is 202302201018.
OSPD[853044] 2023-02-20 18:08:33,084: INFO: (ospd.command.command) Scan c54966ec-5697-44a1-821e-ba7c2807c5b5 added to the queue in position 1.
OSPD[853044] 2023-02-20 18:08:35,765: INFO: (ospd.ospd) Currently 1 queued scans.
OSPD[853044] 2023-02-20 18:08:35,976: INFO: (ospd.ospd) Starting scan c54966ec-5697-44a1-821e-ba7c2807c5b5.
OSPD[853044] 2023-02-21 02:20:19,465: ERROR: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Exception Redis is loading the dataset in memory while scanning
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 596, in start_scan
self.exec_scan(scan_id)
File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 1198, in exec_scan
target_is_finished = kbdb.target_is_finished(scan_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ospd_openvas/db.py", line 582, in target_is_finished
status = self._get_single_item(f'internal/{scan_id}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ospd_openvas/db.py", line 476, in _get_single_item
return OpenvasDB.get_single_item(self.ctx, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ospd_openvas/db.py", line 274, in get_single_item
return ctx.lindex(name, index)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/commands/core.py", line 2564, in lindex
return self.execute_command("LINDEX", name, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/client.py", line 1238, in execute_command
return conn.retry.call_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/retry.py", line 49, in call_with_retry
fail(error)
File "/usr/lib/python3/dist-packages/redis/client.py", line 1242, in <lambda>
lambda error: self._disconnect_raise(conn, error),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/client.py", line 1228, in _disconnect_raise
raise error
File "/usr/lib/python3/dist-packages/redis/retry.py", line 46, in call_with_retry
return do()
^^^^
File "/usr/lib/python3/dist-packages/redis/client.py", line 1239, in <lambda>
lambda: self._send_command_parse_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/client.py", line 1215, in _send_command_parse_response
return self.parse_response(conn, command_name, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/client.py", line 1254, in parse_response
response = connection.read_response()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/connection.py", line 824, in read_response
response = self._parser.read_response(disable_decoding=disable_decoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/redis/connection.py", line 487, in read_response
raise response
redis.exceptions.BusyLoadingError: Redis is loading the dataset in memory
OSPD[853044] 2023-02-21 02:20:19,500: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Host scan got interrupted. Progress: 23, Status: RUNNING
OSPD[853044] 2023-02-21 02:20:19,501: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan interrupted.
OSPD[853044] 2023-02-21 02:20:23,456: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan process is dead and its progress is 23
OSPD[853044] 2023-02-21 02:20:23,460: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan interrupted.
OSPD[853044] 2023-02-21 02:20:23,471: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan process is dead and its progress is 23
OSPD[853044] 2023-02-21 02:20:23,472: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan interrupted.
OSPD[853044] 2023-02-21 02:20:23,535: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan process is dead and its progress is 23
OSPD[853044] 2023-02-21 02:20:23,535: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan interrupted.
OSPD[853044] 2023-02-21 02:20:23,570: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan process is dead and its progress is 23
OSPD[853044] 2023-02-21 02:20:23,570: INFO: (ospd.ospd) c54966ec-5697-44a1-821e-ba7c2807c5b5: Scan interrupted.
OSPD[853044] 2023-02-21 07:26:26,904: INFO: (ospd.main) Shutting-down server ...
Now i trying fix the problem with redis-server