Openvas Key Error

GVM versions

gsad:
Greenbone Security Assistant 20.08.1
gvmd:
Greenbone Vulnerability Manager 20.08.1
Manager DB revision 233
openvas-scanner:
OpenVAS 20.8.1
gvm-libs:
gvm-libs 20.8.1

Environment

Operating system:
20.04.1-Ubuntu
Kernel:
x86_64 GNU/Linux
Installation method / source:
Docker containers based off GSE – GitHub - admirito/gvm-containers: Greenbone Vulnerability Management Containers

Hi,
I’m getting a Key Error … error when attempting to run remediation scans. I’ll post the logs below, but some backstory before hand might be good. So this was not an issue running the scans 2 days from the GUI. I know that there is an upgrade that needs to be done, but I’ve been waiting for our PCI audit to complete before I upgrade. I’m a bit of a docker noob, so I don’t want to risk upgrading at the moment and losing everything. Last night I cleaned the sensor and uploaded a new inventory of targets and tasks to scan. These scans now fail if I use gmp to start the scans or if I use the GUI. The error logs are extremely long, so I’ve pasted the gvmd logs and the openvas logs (at least the root error).

Couple questions:

  1. If this error is fixable obviously some assistance would be helpful
  2. If not, and I have to upgrade, is there a workaround since I can’t upgrade for the next 2 weeks?
  3. Any suggestions on upgrading when using docker (linked above)? I know this isn’t what is supported here, but if anyone knows any advice I’m open ears - especially if I have to upgrade (since I need to run remediation scans for PCI)

GVMD Log

event task:MESSAGE:2022-04-02 11h38.09 UTC:76867: Status of task Task 99.79.163.205 (d6ee0d4e-d97d-4b34-86ae-f1189511b4b0) has changed to Done
md manage:WARNING:2022-04-02 11h38.10 UTC:76844: OSP start_scan d893bfab-8bc6-406a-ad42-5bd916a7ad9c: Fatal error
event task:MESSAGE:2022-04-02 11h38.10 UTC:76844: Status of task Task 54.71.10.189 (e84f935f-b4ec-4507-ae76-94c1ab5166fb) has changed to Done
md manage:WARNING:2022-04-02 11h38.10 UTC:76856: OSP start_scan a103aa00-97a9-4d36-bc9e-a3dfcef91015: Fatal error
event task:MESSAGE:2022-04-02 11h38.10 UTC:76856: Status of task Task 54.79.178.228 (5ede3186-7f06-476e-8d2e-7552fc9154c9) has changed to Done
md manage:WARNING:2022-04-02 11h38.12 UTC:76878: OSP start_scan dea181bf-7e33-40fc-8386-e485d6828500: Fatal error
event task:MESSAGE:2022-04-02 11h38.12 UTC:76878: Status of task Task 99.79.184.8 (b3b35f7d-b4b4-402e-a7a8-3e3bc56bb329) has changed to Done
event task:MESSAGE:2022-04-02 11h38.52 UTC:73818: Status of task Task 99.79.193.142 (ca999b4b-2657-402a-ae04-edad327f04cb) has changed to Requested
event task:MESSAGE:2022-04-02 11h38.52 UTC:73818: Task Task 99.79.193.142 (ca999b4b-2657-402a-ae04-edad327f04cb) has been requested to start by admin
event task:MESSAGE:2022-04-02 11h38.52 UTC:73818: Status of task Task 99.79.54.141 (b12853f7-b181-4e84-9b4c-83e65fec0d61) has changed to Requested
event task:MESSAGE:2022-04-02 11h38.52 UTC:73818: Task Task 99.79.54.141 (b12853f7-b181-4e84-9b4c-83e65fec0d61) has been requested to start by admin
md manage:WARNING:2022-04-02 11h39.10 UTC:76887: OSP start_scan 96dec090-1c8e-4a95-9f57-6f3edff45856: Fatal error
event task:MESSAGE:2022-04-02 11h39.10 UTC:76887: Status of task Task 99.79.193.142 (ca999b4b-2657-402a-ae04-edad327f04cb) has changed to Done
md manage:WARNING:2022-04-02 11h39.10 UTC:76888: OSP start_scan 397857c1-c40f-41bc-9121-0d0089db9266: Fatal error
event task:MESSAGE:2022-04-02 11h39.10 UTC:76888: Status of task Task 99.79.54.141 (b12853f7-b181-4e84-9b4c-83e65fec0d61) has changed to Done
md   main:WARNING:2022-04-02 11h39.53 UTC:73818: read_from_client_tls: failed to read from client: The TLS connection was non-properly terminated.

Openvas Logs (Root error and the preceding traceback)

sd   main:MESSAGE:2022-04-02 10h24.11 utc:23010: The remote host 3.10.24.118 is dead
sd   main:MESSAGE:2022-04-02 10h24.11 utc:23010: Vulnerability scan 516cfb27-ffab-421f-a056-08a9bcc09b6c finished for host 3.10.24.118 in 2.33 seconds
sd   main:MESSAGE:2022-04-02 10h24.11 utc:22967: Vulnerability scan 516cfb27-ffab-421f-a056-08a9bcc09b6c finished in 8 seconds: 1 hosts
sd   main:MESSAGE:2022-04-02 10h24.12 utc:23023: The remote host 3.10.139.205 is dead
sd   main:MESSAGE:2022-04-02 10h24.12 utc:23023: Vulnerability scan cecf8b4b-ac48-44e7-9f67-a929688ca220 finished for host 3.10.139.205 in 2.28 seconds
sd   main:MESSAGE:2022-04-02 10h24.12 utc:22979: Vulnerability scan cecf8b4b-ac48-44e7-9f67-a929688ca220 finished in 8 seconds: 1 hosts
OSPD[8] 2022-04-02 10:24:12,660: INFO: (ospd.ospd) e12b636b-fe18-4993-8d98-af74f656ffff: Host scan finished.
OSPD[8] 2022-04-02 10:24:12,661: INFO: (ospd.ospd) e12b636b-fe18-4993-8d98-af74f656ffff: Scan finished.
OSPD[8] 2022-04-02 10:24:13,543: INFO: (ospd.ospd) 6fbfd4f5-dca6-434c-9308-f15cea1c7c8c: Host scan finished.
OSPD[8] 2022-04-02 10:24:13,544: INFO: (ospd.ospd) 6fbfd4f5-dca6-434c-9308-f15cea1c7c8c: Scan finished.
Traceback (most recent call last):
  File "/usr/bin/ospd-openvas", line 11, in <module>
    load_entry_point('ospd-openvas==20.8.1', 'console_scripts', 'ospd-openvas')()
  File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 1433, in main
    daemon_main('OSPD - openvas', OSPDopenvas)
  File "/usr/lib/python3/dist-packages/ospd/main.py", line 162, in main
    daemon.run()
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1323, in run
    self.start_queued_scans()
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1331, in start_queued_scans
    current_queued_scans = self.get_count_queued_scans()
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1531, in get_count_queued_scans
    if self.get_scan_status(scan_id) == ScanStatus.QUEUED:
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 706, in get_scan_status
    status = self.scan_collection.get_status(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/scan.py", line 360, in get_status
    return self.scans_table[scan_id].get('status')
**KeyError: 'e12b636b-fe18-4993-8d98-af74f656ffff'**
OSPD[8] 2022-04-02 10:24:15,487: INFO: (ospd.command.command) Scan 2b2178b4-eb6b-4408-8e50-4a34aab638cc added to the queue in position 1.
OSPD[8] 2022-04-02 10:24:15,546: ERROR: (ospd.ospd) While handling client command:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 546, in handle_client_stream
    self.handle_command(data, stream)
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1302, in handle_command
    self.scan_collection.clean_temp_result_list(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/scan.py", line 212, in clean_temp_result_list
    self.scans_table[scan_id]['temp_results'] = list()
  File "<string>", line 2, in __setitem__
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 850, in _callmethod
    raise convert_to_error(kind, result)
**multiprocessing.managers.RemoteError:**
---------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 250, in serve_client
    self.id_to_local_proxy_obj[ident]
KeyError: '7f3d7e6fd300'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 252, in serve_client
    raise ke
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 246, in serve_client
    obj, exposed, gettypeid = id_to_obj[ident]
KeyError: '7f3d7e6fd300'
---------------------------------------------------------------------------
OSPD[8] 2022-04-02 10:24:15,551: ERROR: (ospd.ospd) While handling client command:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 546, in handle_client_stream
    self.handle_command(data, stream)
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1283, in handle_command
    response = command.handle_xml(tree)
  File "/usr/lib/python3/dist-packages/ospd/command/command.py", line 452, in handle_xml
    self._daemon.check_scan_process(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1493, in check_scan_process
    status = self.get_scan_status(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 706, in get_scan_status
    status = self.scan_collection.get_status(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/scan.py", line 360, in get_status
    return self.scans_table[scan_id].get('status')
  File "<string>", line 2, in get
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 850, in _callmethod
    raise convert_to_error(kind, result)
multiprocessing.managers.RemoteError:
---------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 250, in serve_client
    self.id_to_local_proxy_obj[ident]
KeyError: '7f3d7d7e8cc0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 252, in serve_client
    raise ke
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 246, in serve_client
    obj, exposed, gettypeid = id_to_obj[ident]
KeyError: '7f3d7d7e8cc0'
---------------------------------------------------------------------------
OSPD[8] 2022-04-02 10:24:15,563: ERROR: (ospd.server) Error sending data to the client. [Errno 32] Broken pipe
OSPD[8] 2022-04-02 10:24:15,673: ERROR: (ospd.ospd) While handling client command:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 827, in _callmethod
    conn = self._tls.connection
**AttributeError: 'ForkAwareLocal' object has no attribute 'connection'**

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 546, in handle_client_stream
    self.handle_command(data, stream)
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1283, in handle_command
    response = command.handle_xml(tree)
  File "/usr/lib/python3/dist-packages/ospd/command/command.py", line 452, in handle_xml
    self._daemon.check_scan_process(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 1493, in check_scan_process
    status = self.get_scan_status(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 706, in get_scan_status
    status = self.scan_collection.get_status(scan_id)
  File "/usr/lib/python3/dist-packages/ospd/scan.py", line 360, in get_status
    return self.scans_table[scan_id].get('status')
  File "<string>", line 2, in get
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 831, in _callmethod
    self._connect()
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 818, in _connect
    conn = self._Client(self._token.address, authkey=self._authkey)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 502, in Client
    c = SocketClient(address)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
    s.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
OSPD[8] 2022-04-02 10:24:15,989: ERROR: (ospd.ospd) While handling client command:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/managers.py", line 827, in _callmethod
    conn = self._tls.connection
**AttributeError: 'ForkAwareLocal' object has no attribute 'connection'**

Please ignore - The update fixed this, but for some reason I’m still getting some errors. Separate from this issue though