Scan "Interrupted at 0 %"

Hi,

I would like to troubleshoot an issue that I have with my brand new installed Greenbone from sources. When I try to execute a scan I receive “Interrupted at 0 %” about two minutes after the I presed the Start button.

tail -f ospd-openvas.log

OSPD[503] 2021-03-24 02:09:11,574: INFO: (ospd.command.command) Scan 6b0066e9-4808-4f2e-9148-d3e5c100cec6 added to the queue in position 1.
OSPD[503] 2021-03-24 02:09:17,481: INFO: (ospd.ospd) Currently 1 queued scans.
OSPD[503] 2021-03-24 02:09:17,897: INFO: (ospd.ospd) Starting scan 6b0066e9-4808-4f2e-9148-d3e5c100cec6.
OSPD[503] 2021-03-24 02:11:13,289: ERROR: (ospd_openvas.daemon) It was not possible run the task 6b0066e9-4808-4f2e-9148-d3e5c100cec6, since openvas ended unexpectedly with errors during launching.
OSPD[503] 2021-03-24 02:11:13,362: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Host scan finished.
OSPD[503] 2021-03-24 02:11:13,426: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Host scan finished. Progress: 0, Status: RUNNING
OSPD[503] 2021-03-24 02:11:13,428: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan interrupted.
OSPD[503] 2021-03-24 02:11:15,856: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan process is dead and its progress is 0
OSPD[503] 2021-03-24 02:11:15,860: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan interrupted.
OSPD[503] 2021-03-24 02:11:15,870: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan process is dead and its progress is 0
OSPD[503] 2021-03-24 02:11:15,871: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan interrupted.
OSPD[503] 2021-03-24 02:11:16,077: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan process is dead and its progress is 0
OSPD[503] 2021-03-24 02:11:16,077: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan interrupted.
OSPD[503] 2021-03-24 02:11:16,129: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan process is dead and its progress is 0
OSPD[503] 2021-03-24 02:11:16,130: INFO: (ospd.ospd) 6b0066e9-4808-4f2e-9148-d3e5c100cec6: Scan interrupted.

GVM versions

gsad --version
Oops, secure memory pool already initialized
Greenbone Security Assistant 20.08.1~git-5069ee8d2-gsa-20.08

gvmd --version
Greenbone Vulnerability Manager 20.08.1~git-29314430e-gvmd-20.08
GIT revision 29314430e-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.

openvas --version
OpenVAS 20.8.2
gvm-libs 20.8.2~git-9640de47-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

uname -a
Linux magor 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u1 (2019-07-19) x86_64 GNU/Linux

Where should I check for more information about this issue?

Thanks in advance.

Not absolutely sure but the openvas.log might give a few hints about that error.

Thanks for your reply. It seems that the openvas.log file doesn’t help so much.

cat openvas.log
lib nvticache:MESSAGE:2021-03-23 23h16.32 utc:4727: Updated NVT cache from version 0 to 202103231106

You said you built from source. Did you use a release or did you build from master?
Always use the release versions as the master is not guaranteed to work.

Hi,

I downloaded the source with git and I built it.

git clone -b gvm-libs-20.08 …/greenbone/gvm-libs.git
git clone -b master …/greenbone/openvas-smb.git
git clone -b openvas-20.08 …/greenbone/openvas.git
git clone -b ospd-20.08 …/greenbone/ospd.git
git clone -b ospd-openvas-20.08 …/greenbone/ospd-openvas.git
git clone -b gvmd-20.08 …/greenbone/gvmd.git
git clone -b gsa-20.08 https://github.com/greenbone/gsa.git

That’s the master branch.

Take a look here:
openvas/build-gvm.sh at master · immauss/openvas (github.com)

That’s the build script I us for my container build. It uses the latest release based on the values set in the build.rc which is generated using:

openvas/get-gvm-releases.sh at master · immauss/openvas (github.com)