gvm icon indicating copy to clipboard operation
gvm copied to clipboard

GVM 22.4.0 error when I do a scan

Open Neflyte49 opened this issue 2 years ago • 4 comments

Hi I have gvm 22.4.0 on Rocky Linux 8 and sudenly when I tried to do a scan ospd expell this error: ==> ospd-scanner.log <== OSPD[873] 2023-06-12 20:38:47,432: ERROR: (ospd.ospd) While handling client command: Traceback (most recent call last): File "/opt/atomicorp/lib/python3.8/site-packages/ospd/ospd.py", line 558, in handle_client_stream self.handle_command(data, stream) File "/opt/atomicorp/lib/python3.8/site-packages/ospd/ospd.py", line 1077, in handle_command response = command.handle_xml(tree) File "/opt/atomicorp/lib/python3.8/site-packages/ospd/command/command.py", line 617, in handle_xml scan_id = self._daemon.create_scan( File "/opt/atomicorp/lib/python3.8/site-packages/ospd/ospd.py", line 1255, in create_scan return self.scan_collection.create_scan( File "/opt/atomicorp/lib/python3.8/site-packages/ospd/scan.py", line 323, in create_scan scan_info = self.data_manager.dict() # type: Dict File "/usr/lib64/python3.8/multiprocessing/managers.py", line 740, in temp token, exp = self._create(typeid, *args, **kwds) File "/usr/lib64/python3.8/multiprocessing/managers.py", line 623, in _create conn = self._Client(self._address, authkey=self._authkey) File "/usr/lib64/python3.8/multiprocessing/connection.py", line 506, in Client c = SocketClient(address) File "/usr/lib64/python3.8/multiprocessing/connection.py", line 634, in SocketClient s.connect(address) FileNotFoundError: [Errno 2] No such file or directory

Can you help me?

Thanks in advance.

Greetings

Neflyte49 avatar Jun 12 '23 20:06 Neflyte49

Yeah I can repeat this, and related some of these python changes also broke certbot from lets-encrypt.

atomicturtle avatar Jun 13 '23 18:06 atomicturtle

Any mitigation procedure?

Greetings

Neflyte49 avatar Jun 16 '23 16:06 Neflyte49

I've been experiencing the same error for a while now. The scan interrupts at 0%, and ospd.logs show this error. Have you found a solution? I hope I don't have to reinstall everything.

ChenrySecmon avatar Jul 19 '23 07:07 ChenrySecmon

I found solution which work in my environment.

Step by step:

  1. dnf update
  2. dnf --enablerepo=atomic-testing update
  3. gvm-setup
  4. mkdir /run/gvmd/
  5. chown gvm:gvm gvmd
  6. /bin/systemctl stop gvmd.service /bin/systemctl stop gsad.service /bin/systemctl stop ospd-openvas.service
  7. su gvm
  8. gvmd --migrate
  9. exit
  10. /bin/systemctl start gvmd.service /bin/systemctl start gsad.service /bin/systemctl start ospd-openvas.service

I'm not sure which step repaired instance but probably creation directory gvmd in /run space.

przemo539 avatar Jul 29 '24 09:07 przemo539