All Scans Interrupted at 0%

I’ve built and installed Greenbone from source following this guide and got everything up and running but when I try to run a scan, it always fails as interrupted at 0%. Looking at the log files in /opt/gvm/var/log/gvm the only messages I can see are:

==> /opt/gvm/var/log/gvm/gvmd.log <==
event task:MESSAGE:2021-07-08 08h57.15 UTC:7850: Status of task Forensics Box Scan (3449147a-14b9-4ea4-a4b8-576ab5ec6b71) has changed to Requested
event task:MESSAGE:2021-07-08 08h57.15 UTC:7850: Task Forensics Box Scan (3449147a-14b9-4ea4-a4b8-576ab5ec6b71) has been requested to start by admin
md manage:WARNING:2021-07-08 08h57.30 UTC:7853: OSP start_scan 2b77cb1f-6cfc-438a-860b-17f896a99fd6: Continue
event task:MESSAGE:2021-07-08 08h57.30 UTC:7853: Status of task Forensics Box Scan (3449147a-14b9-4ea4-a4b8-576ab5ec6b71) has changed to Done
event task:MESSAGE:2021-07-08 08h57.30 UTC:7853: Status of task Forensics Box Scan (3449147a-14b9-4ea4-a4b8-576ab5ec6b71) has changed to Interrupted

==> /opt/gvm/var/log/gvm/gsad.log <==
gsad main:WARNING:2021-07-08 08h57.15 UTC:3240: MHD: Error: received handshake message out of context

==> /opt/gvm/var/log/gvm/ospd-openvas.log <==
OSPD[13834] 2021-07-08 08:57:30,347: ERROR: (ospd.scan) Not possible to store scan info for 2b77cb1f-6cfc-438a-860b-17f896a99fd6. [Errno 13] Permission denied: ‘/var/run/2b77cb1f-6cfc-438a-860b-17f896a99fd6’

Anyone got any idea what the issue might be?

Thanks

GVM versions

root@forensics-box-1:~# gsad --version
Oops, secure memory pool already initialized
Greenbone Security Assistant 20.8.1

root@forensics-box-1:~# gvmd --version
Greenbone Vulnerability Manager 20.08.3~git-9482beca2-gvmd-20.08
GIT revision 9482beca2-gvmd-20.08
Manager DB revision 233
Copyright © 2009-2021 Greenbone Networks GmbH
License: AGPL-3.0-or-later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

root@forensics-box-1:~# openvas --version
OpenVAS 20.8.3
gvm-libs 20.8.3~git-04fd83c9-gvm-libs-20.08
Most new code since 2005: © 2021 Greenbone Networks GmbH
Nessus origin: © 2004 Renaud Deraison deraison@nessus.org
License GPLv2: GNU GPL version 2
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Environment

Debian
root@forensics-box-1:~# uname -a
Linux forensics-box-1 4.19.0-17-cloud-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux

Built from Source

This should be the cause of your problem. I am really sure your service file is wrongly configured. You should check the --lock-file-dir parameter is pointing to a writable directory.

And btw. you should follow our new guide at https://greenbone.github.io/docs/ If something doesn’t work when following this guide it is much easier to find the culprit.

2 Likes

Perfect, had the --lock-file-dir set to /var/run rather than /opt/gvm/var/run for some reason. Thanks