ERROR: ospd-openvas service did not start

I have tried the last 3 days to fix this but i cant seem to do it. this is the problem
└─$ sudo gvm-check-setup
gvm-check-setup 23.11.0
Test completeness and readiness of GVM-23.11.0
Step 1: Checking OpenVAS (Scanner)…
OK: OpenVAS Scanner is present in version 22.7.9.
OK: Notus Scanner is present in version 22.6.2.
OK: Server CA Certificate is present as /var/lib/gvm/CA/servercert.pem.
Checking permissions of /var/lib/openvas/gnupg/*
OK: _gvm owns all files in /var/lib/openvas/gnupg
OK: redis-server is present.
OK: scanner (db_address setting) is configured properly using the redis-server socket: /var/run/redis-openvas/redis-server.sock /run/redis-openvas/redis.sock
OK: the mqtt_server_uri is defined in /etc/openvas/openvas.conf
OK: _gvm owns all files in /var/lib/openvas/plugins
OK: NVT collection in /var/lib/openvas/plugins contains 90228 NVTs.
OK: The notus directory /var/lib/notus/products contains 456 NVTs.
Checking that the obsolete redis database has been removed
OK: No old Redis DB
Starting ospd-openvas service
Job for ospd-openvas.service failed because the control process exited with error code.
See “systemctl status ospd-openvas.service” and “journalctl -xeu ospd-openvas.service” for details.
Waiting for ospd-openvas service
ERROR: ospd-openvas service did not start.
Please check journalctl -xe

ERROR: Your GVM-23.11.0 installation is not yet complete!

Please follow the instructions marked with FIX above and run this
script again.

this is the error im getting

└─$ systemctl status ospd-openvas.service
● ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas)
Loaded: loaded (/usr/lib/systemd/system/ospd-openvas.service; enabled; preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2024-04-26 05:14:38 CDT; 1min 0s ago
Docs: man:ospd-openvas(8)
man:openvas(8)
Process: 77430 ExecStart=/usr/bin/ospd-openvas --config /etc/gvm/ospd-openvas.conf --log-config /etc/gvm/ospd-logging.conf (code=exited, status=1/FAILURE)
CPU: 599ms

AND

┌──(openvas㉿SRV-KALI-OpenVAS)-[~]
└─$ journalctl -xeu ospd-openvas.service
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support:
░░
░░ The unit ospd-openvas.service has entered the ‘failed’ state with result ‘exit-code’.
Apr 26 05:14:38 SRV-KALI-OpenVAS systemd[1]: Failed to start ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas).
░░ Subject: A start job for unit ospd-openvas.service has failed
░░ Defined-By: systemd
░░ Support:
░░
░░ A start job for unit ospd-openvas.service has finished with a failure.
░░
░░ The job identifier is 23518 and the job result is failed.
Apr 26 05:15:38 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: Scheduled restart job, restart counter is at 6.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support:
░░
░░ Automatic restarting of the unit ospd-openvas.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Apr 26 05:15:38 SRV-KALI-OpenVAS systemd[1]: Starting ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas)…
░░ Subject: A start job for unit ospd-openvas.service has begun execution
░░ Defined-By: systemd
░░ Support:
░░
░░ A start job for unit ospd-openvas.service has begun execution.
░░
░░ The job identifier is 23770.
Apr 26 05:16:04 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support:
░░
░░ An ExecStart= process belonging to unit ospd-openvas.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Apr 26 05:16:04 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support
░░
░░ The unit ospd-openvas.service has entered the ‘failed’ state with result ‘exit-code’.
Apr 26 05:16:04 SRV-KALI-OpenVAS systemd[1]: Failed to start ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas).
░░ Subject: A start job for unit ospd-openvas.service has failed
░░ Defined-By: systemd
░░ Support:
░░
░░ A start job for unit ospd-openvas.service has finished with a failure.
░░
░░ The job identifier is 23770 and the job result is failed.

Can anyone help me with this one i cant get it working anymore in the last 3 days.

Extra info

Apr 25 08:40:01 SRV-KALI-OpenVAS systemd[1]: Starting ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas)...
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: Traceback (most recent call last):
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/bin/ospd-openvas", line 8, in <module>
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     sys.exit(main())
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:              ^^^^^^
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 1245, in main
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     daemon_main('OSPD - openvas', OSPDopenvas, NotusParser())
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/ospd/main.py", line 152, in main
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     daemon.init(server)
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 501, in init
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     client = MQTTClient(
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:              ^^^^^^^^^^^
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/ospd_openvas/messaging/mqtt.py", line 39, in __init__
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     super().__init__(client_id=client_id, protocol=mqtt.MQTTv5)
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version'
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: Exception ignored in atexit callback: <function exit_cleanup at 0x7f9cd7b64f40>
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: Traceback (most recent call last):
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/ospd/main.py", line 74, in exit_cleanup
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     sys.exit()
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: SystemExit:
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: Exception ignored in: <function Client.__del__ at 0x7f9cd60b05e0>
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: Traceback (most recent call last):
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 874, in __del__
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     self._reset_sockets()
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     self._sock_close()
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:   File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 1119, in _sock_close
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:     if not self._sock:
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]:            ^^^^^^^^^^
Apr 25 08:40:03 SRV-KALI-OpenVAS ospd-openvas[151531]: AttributeError: 'MQTTClient' object has no attribute '_sock'
Apr 25 08:40:03 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: Can't open PID file /run/ospd/ospd-openvas.pid (yet?) after start: No such file or directory
Apr 25 08:41:31 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: start operation timed out. Terminating.
Apr 25 08:41:31 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: Failed with result 'timeout'.
Apr 25 08:41:31 SRV-KALI-OpenVAS systemd[1]: Failed to start ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas).
Apr 25 08:41:31 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: Consumed 1.157s CPU time.
Apr 25 08:42:32 SRV-KALI-OpenVAS systemd[1]: ospd-openvas.service: Scheduled restart job, restart counter is at 1.
Apr 25 08:42:32 SRV-KALI-OpenVAS systemd[1]: Starting ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas)...
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]: Traceback (most recent call last):
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:   File "/usr/bin/ospd-openvas", line 8, in <module>
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:     sys.exit(main())
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:              ^^^^^^
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:   File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 1245, in main
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:     daemon_main('OSPD - openvas', OSPDopenvas, NotusParser())
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:   File "/usr/lib/python3/dist-packages/ospd/main.py", line 152, in main
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:     daemon.init(server)
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:   File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 501, in init
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:     client = MQTTClient(
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:              ^^^^^^^^^^^
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:   File "/usr/lib/python3/dist-packages/ospd_openvas/messaging/mqtt.py", line 39, in __init__
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]:     super().__init__(client_id=client_id, protocol=mqtt.MQTTv5)
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]: TypeError: Client.__init__() missing 1 required positional argument: 'callback_api_version'
Apr 25 08:42:32 SRV-KALI-OpenVAS ospd-openvas[152745]: Exception ignored in atexit callback: <function exit_cleanup at 0x7f70db49cf40>

Collapse

message.txt

Hello,

and welcome to this community forums. Please check existing threads about this issue in a third party component like e.g.: