Closed Bosson015 closed 4 months ago
@Bosson015 Kali packages as well as gvm-check-setup
and gvm-setup
are not provided / maintained by Greenbone. Could you thus please close this issue and raise a new one over here for the Kali maintainers: https://bugs.kali.org
Refs to the relevant Bug reports:
Expected behavior
After installing gvm and subsequent configuration using the gvm-setup script and checking using gvm-chek-setup, I got a positive result. I went to the Greenbone web interface. I checked Feed status, everything was OK. You can start a test scan.
Actual behavior
I created a task via Scans--->Tasks--->Task Wizard to quickly create a task. To my regret, I received a 0% interrupt with the error Could not connect to Scanner.
I checked the Scanner on the web interface via Configuration--->Scanners--->Verify Scanner and got this...
In the gvmd.log file I noticed that the scanner is accessing a socket called ospd-openvas.sock. Having checked the directory /run/ospd/, I found that the socket file names did not match between the actual value of the name and the name in the log file.
The solution is as follows...
Steps to reproduce
Go to the /run/ospd/ directory
cd /run/ospd
Rename the socket file
mv ospd.sock ospd-openvas.sock
Next, edit the configuration file ospd-openvas.conf. This is necessary because after the first two steps the scanning started, but after receiving the Running status it ended with an error. In the log file gvmd.log I found that the Scanner now wants to connect to a socket named ospd.sock, that is, by the old name. Therefore, open the /etc/gvm/ospd-openvas.conf file with any editor and change the unix_socket line as in the screenshot
If gvm was running before, then stop it
gvm-stop
Be sure to restart the computer in any case, even if gvm was not running
I hope, like me, after the work done, you will get a positive result like here
GVM versions
gsa: Greenbone Security Assistant 22.9.1~git
gvm: Greenbone Vulnerability Manager 23.6.2
openvas-scanner: OpenVAS 23.4.1
gvm-libs: 22.10.0
Environment
Operating system: Linux kali 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.15-2kali1 (2024-05-17) x86_64 GNU/Linux
Installation method / source: (packages, source installation) apt-get install gvm
Logfiles