Scan failed - Interrupted at 0%

GVM versions

gsad: 21.04.0
gvmd: 21.4.0
openvas-scanner: 21.4.0
gvm-libs: 21.4.0

Environment

Operating system: Red Hat Enterprise Linux 8.2 (Ootpa)
Kernel: 4.18.0-193.28.1.el8_2.x86_64
Installation method / source: https://github.com/Atomicorp/gvm

Dear community,

I’m currently facing an issue when I’m trying to perform a scan on GSA.
The scan is interrupted at 0% and it seems that GSA cannot connect to the scanner.

When I check the log I have this :

sudo tail -f /var/log/gvm/gvmd.log
md manage: INFO:2021-09-10 08h15.39 utc:1599445: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2002.xml
md manage:WARNING:2021-09-10 08h15.39 utc:1599445: update_cve_xml: Failed to parse element
md manage:WARNING:2021-09-10 08h15.41 utc:1599665: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2021-09-10 08h15.42 utc:1599665: update_scap: Updating data from feed
md manage: INFO:2021-09-10 08h15.42 utc:1599665: Updating CPEs
event task:MESSAGE:2021-09-10 08h17.44 UTC:1599850: Status of task Immediate scan of IP 10.1.1.80 (99114627-be36-4f9e-8ac2-fd57be47a20f) has changed to Requested
event task:MESSAGE:2021-09-10 08h17.44 UTC:1599850: Task Immediate scan of IP 10.1.1.80 (99114627-be36-4f9e-8ac2-fd57be47a20f) has been requested to start by admin
md manage:WARNING:2021-09-10 08h17.47 UTC:1599853: Could not connect to Scanner at /opt/gvm/var/run/ospd.sock
md manage:WARNING:2021-09-10 08h17.47 UTC:1599853: OSP start_scan 51adf5ca-1ab1-43b0-9955-d555e961b321: Could not connect to Scanner
event task:MESSAGE:2021-09-10 08h17.47 UTC:1599853: Status of task Immediate scan of IP 10.1.1.80 (99114627-be36-4f9e-8ac2-fd57be47a20f) has changed to Done
event task:MESSAGE:2021-09-10 08h17.47 UTC:1599853: Status of task Immediate scan of IP 10.1.1.80 (99114627-be36-4f9e-8ac2-fd57be47a20f) has changed to Interrupted

In the report of the scan, I have also 2 errors that occured :
‘Could not connect to Scanner’
‘Interrupting scan because GVM is exiting.’

I don’t know if it’s linked or related, but the different feed are in status “update in progress” since the installation of GSA and I tried different commands that I found on other topics :

‘greenbone-nvt-sync’
gvmd --get-users --verbose
gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value <uuid_of_user>

I also tried this :

AS GVM USER

‘gvmd --get-scanners’
‘gvmd --get-users --verbose’
‘gvmd --modify-scanner [scanner id] --value [user id]’

I also tried to re-running the different sync :

‘greenbone-feed-sync --type GVMD_DATA’
‘greenbone-feed-sync --type SCAP’
‘greenbone-feed-sync --type CERT’

But the status stays at “update in progress”.

Do you have any ideas about this problem please ?

Thanks in advance,

Regards,

Hi @flare,

Please wait until the update status changes. It can take a while I recently supported someone with similar issue and only after 17h the update finished and the problem was solved, but for sure the time depends on many things, the memory size, etc, just be patient, and after that if the problem persists, you can look for another solutions.

Best

1 Like

From my experience, is useful to do a scanner verification.

gvmd --get-scanners -v
6acd0832-df90-11e4-b9d5-28d24461215b CVE 0 CVE
08b69003-5fc2-4037-a479-93b440211c73 OpenVAS /opt/gvm/var/run/ospd/ospd.sock 0 OpenVAS Default
4fb27fff-88d6-448e-b114-c86105df2a47 OSP /opt/gvm/var/run/ospd/ospd.sock 9390 OSP Scanner

gvmd --verify-scanner=08b69003-5fc2-4037-a479-93b440211c73
Scanner version: OpenVAS 21.4.3~dev1.

gvmd --verify-scanner=4fb27fff-88d6-448e-b114-c86105df2a47
Scanner version: OpenVAS 21.4.3~dev1.

1 Like