Can Run Scans but Results Return as Empty

Not sure if this is the right place to put this, so please correct me if it’s not.

I’m running Kali 2020 and have installed GVM-11. When I run gvm-start, it returns a few errors that the gsad failed to start. If I run another gvm-start or a gvm-check-setup everything starts up correctly.

When using the web GUI, I can do everything I would expect to as far as setting up targets/scans and changing configs, but any scan I run finishes immediately and returns no results and no hosts are scanned. I’ve checked the database is running and NVT/SCAP data is synced, but I’m at a loss why none of the scans are showing results.

Here is the output when starting the service. Any guidance into what I’m doing wrong would be appreciated.

peterborg@kali:~$ sudo gvm-start
[] Please wait for the GVM / OpenVAS services to start.
[
]
[] You might need to refresh your browser once it opens.
[
]
[*] Web UI (Greenbone Security Assistant):

  • greenbone-security-assistant.service - Greenbone Security Assistant (gsad)
    Loaded: loaded (/lib/systemd/system/greenbone-security-assistant.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Fri 2020-07-31 13:06:14 MDT; 17s ago
    Docs: man:gsad(8)

    Process: 1179 ExecStart=/usr/sbin/gsad --listen=127.0.0.1 --port=9392 (code=exited, status=0/SUCCESS)
    Main PID: 1180 (code=exited, status=1/FAILURE)

Jul 31 13:06:14 kali systemd[1]: greenbone-security-assistant.service: Scheduled restart job, restart counter is at 5.
Jul 31 13:06:14 kali systemd[1]: Stopped Greenbone Security Assistant (gsad).
Jul 31 13:06:14 kali systemd[1]: greenbone-security-assistant.service: Start request repeated too quickly.
Jul 31 13:06:14 kali systemd[1]: greenbone-security-assistant.service: Failed with result ‘exit-code’.
Jul 31 13:06:14 kali systemd[1]: Failed to start Greenbone Security Assistant (gsad).

  • gvmd.service - Open Vulnerability Assessment System Manager Daemon
    Loaded: loaded (/lib/systemd/system/gvmd.service; disabled; vendor preset: disabled)
    Active: active (running) since Fri 2020-07-31 13:06:26 MDT; 5s ago
    Docs: man:gvmd(8)

    Process: 1192 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock (code=exited, status=0/SUCCESS)
    Main PID: 1193 (gvmd)
    Tasks: 1 (limit: 2203)
    Memory: 206.8M
    CGroup: /system.slice/gvmd.service
    `-1193 gvmd: Waiting for incoming connections

Jul 31 13:06:15 kali systemd[1]: Starting Open Vulnerability Assessment System Manager Daemon…
Jul 31 13:06:16 kali systemd[1]: gvmd.service: Can’t open PID file /run/gvm/gvmd.pid (yet?) after start: Operation not permitted
Jul 31 13:06:26 kali systemd[1]: Started Open Vulnerability Assessment System Manager Daemon.

  • ospd-openvas.service - OSPD OpenVAS
    Loaded: loaded (/lib/systemd/system/ospd-openvas.service; disabled; vendor preset: disabled)
    Active: active (running) since Fri 2020-07-31 13:06:27 MDT; 5s ago
    Process: 1214 ExecStart=/usr/bin/ospd-openvas --unix-socket=/run/ospd/ospd.sock --pid-file=/run/ospd/ospd-openvas.pid (code=exited, status=0/SUCCESS)
    Main PID: 1223 (ospd-openvas)
    Tasks: 1 (limit: 2203)
    Memory: 52.4M
    CGroup: /system.slice/ospd-openvas.service
    `-1223 /usr/bin/python3 /usr/bin/ospd-openvas --unix-socket=/run/ospd/ospd.sock --pid-file=/run/ospd/ospd-openvas.pid

Jul 31 13:06:26 kali systemd[1]: Starting OSPD OpenVAS…
Jul 31 13:06:27 kali systemd[1]: Started OSPD OpenVAS.
peterborg@kali:~$ sudo gvm-start
[] Please wait for the GVM / OpenVAS services to start.
[
]
[] You might need to refresh your browser once it opens.
[
]
[*] Web UI (Greenbone Security Assistant):

  • greenbone-security-assistant.service - Greenbone Security Assistant (gsad)
    Loaded: loaded (/lib/systemd/system/greenbone-security-assistant.service; disabled; vendor preset: disabled)
    Active: active (running) since Fri 2020-07-31 13:06:44 MDT; 5s ago
    Docs: man:gsad(8)

    Process: 1245 ExecStart=/usr/sbin/gsad --listen=127.0.0.1 --port=9392 (code=exited, status=0/SUCCESS)
    Main PID: 1246 (gsad)
    Tasks: 2 (limit: 2203)
    Memory: 2.8M
    CGroup: /system.slice/greenbone-security-assistant.service
    `-1246 /usr/sbin/gsad --listen=127.0.0.1 --port=9392

Jul 31 13:06:44 kali systemd[1]: Starting Greenbone Security Assistant (gsad)…
Jul 31 13:06:44 kali gsad[1245]: Oops, secure memory pool already initialized
Jul 31 13:06:44 kali systemd[1]: Started Greenbone Security Assistant (gsad).

  • gvmd.service - Open Vulnerability Assessment System Manager Daemon
    Loaded: loaded (/lib/systemd/system/gvmd.service; disabled; vendor preset: disabled)
    Active: active (running) since Fri 2020-07-31 13:06:26 MDT; 23s ago
    Docs: man:gvmd(8)

    Process: 1192 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock (code=exited, status=0/SUCCESS)
    Main PID: 1193 (gvmd)
    Tasks: 1 (limit: 2203)
    Memory: 206.9M
    CGroup: /system.slice/gvmd.service
    `-1193 gvmd: Waiting for incoming connections

Jul 31 13:06:15 kali systemd[1]: Starting Open Vulnerability Assessment System Manager Daemon…
Jul 31 13:06:16 kali systemd[1]: gvmd.service: Can’t open PID file /run/gvm/gvmd.pid (yet?) after start: Operation not permitted
Jul 31 13:06:26 kali systemd[1]: Started Open Vulnerability Assessment System Manager Daemon.

  • ospd-openvas.service - OSPD OpenVAS
    Loaded: loaded (/lib/systemd/system/ospd-openvas.service; disabled; vendor preset: disabled)
    Active: active (running) since Fri 2020-07-31 13:06:27 MDT; 22s ago
    Process: 1214 ExecStart=/usr/bin/ospd-openvas --unix-socket=/run/ospd/ospd.sock --pid-file=/run/ospd/ospd-openvas.pid (code=exited, status=0/SUCCESS)
    Main PID: 1223 (ospd-openvas)
    Tasks: 1 (limit: 2203)
    Memory: 103.5M
    CGroup: /system.slice/ospd-openvas.service
    `-1223 /usr/bin/python3 /usr/bin/ospd-openvas --unix-socket=/run/ospd/ospd.sock --pid-file=/run/ospd/ospd-openvas.pid

Jul 31 13:06:26 kali systemd[1]: Starting OSPD OpenVAS…
Jul 31 13:06:27 kali systemd[1]: Started OSPD OpenVAS.

[*] Opening Web UI () in: 5… 4… 3… 2… 1…

Plase check the Category before posting in a wrong one.
This is related to the Greeenbone Source Edition.

I would read the Error Message and might correct the permissions :wink:

Then i would look into the log of the Scanner.

Please note that the GVM-11 packages in Kali are (AFAIK) currently the ones of Debian “unstable” which are only a few days old. These packages probably received not much (user-)testing yet and have still a few issues which needs to be sorted out by the Debian / Kali maintainers (Greenbone isn’t involved in providing and maintaining these packages):

https://bugs.kali.org/view.php?id=6615
https://bugs.kali.org/view.php?id=6618
https://bugs.kali.org/view.php?id=6619
https://bugs.kali.org/view.php?id=6624
https://bugs.kali.org/view.php?id=6625
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966632
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966641
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966715
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=967046

I would suggest to do a little bit more testing / debugging (e.g. by checking /var/log/gvm/*) and give as much feedback as possible back to the Debian / Kali maintainers to get the packages into a stable state.

2 Likes

Thank you for correcting the category. First post, so I figured I might get it wrong. I compared this to my other VM running openvas7 and it actually has the same ‘gvmd.service: Can’t open PID’ message, but that one works with no issues.

Checking the logs in /var/log/gvm didn’t yield anything for me, either. I might try pulling from a different repo to see if that changes anything.

Thanks for the insight. I’ll see about doing some more debugging and possibly submitting a bug report if I discover that I’m not just doing something incorrectly.