Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GVM 22.4.0 error when I do a scan #69

Open
Neflyte49 opened this issue Jun 12, 2023 · 4 comments
Open

GVM 22.4.0 error when I do a scan #69

Neflyte49 opened this issue Jun 12, 2023 · 4 comments

Comments

@Neflyte49
Copy link

Neflyte49 commented Jun 12, 2023

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

@atomicturtle
Copy link
Contributor

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

@Neflyte49
Copy link
Author

Any mitigation procedure?

Greetings

@ChenrySecmon
Copy link

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.

@przemo539
Copy link

przemo539 commented Jul 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants