No SCAP db present, rebuilding SCAP db from scratch

I am receiving this message after install openvas in my kali linux.

The SCAP database is required

I tried the commands to resync the SCAP but without sucess.

Any suggestions ?

GVM versions

gsad: (‘gsad --version’)
gsad --version
Oops, secure memory pool already initialized
Greenbone Security Assistant 20.08.1~git

gvmd: (‘gvmd --version’)

Greenbone Vulnerability Manager 20.08.1
Manager DB revision 233
Copyright © 2009-2021 Greenbone Networks GmbH
License: AGPL-3.0-or-later

openvas-scanner: (‘openvas --version’, in older GVM versions < 11: ‘openvassd --version’)
gvm-libs:
OpenVAS 20.8.1
gvm-libs 20.8.1
Most new code since 2005: © 2021 Greenbone Networks GmbH
Nessus origin: © 2004 Renaud Deraison deraison@nessus.org
License GPLv2: GNU GPL version 2

Environment

Operating system:
Kernel: (‘uname -a’)
Linux kali 5.4.83-Re4son-v8+ #1 SMP PREEMPT Sat May 15 03:11:57 UTC 2021 aarch64 GNU/Linux

Installation method / source: apt-get install openvas

Hi Duzolini,

I’ve faced this problem on Kali, just follow the steps below to solve it:

#Open your terminal

  1. Stop the service: sudo gvm-stop
    Note: repeat this command twice to ensure the service stops completely

  2. sudo runuser -u _gvm – greenbone-nvt-sync --rsync

  3. sudo greenbone-scapdata-sync

  4. sudo greenbone-certdata-sync

  5. Restart the machine and try again

Hope it helps you

Best

1 Like

Please note that AFAIK all three command (and every other command used for GVM) should be run as the user which was used to setup GVM:

If e.g. the “root” user is used you might break the permissions of the GVM setup so tat e.g. the mentioned _gvm user doesn’t have access permissions to mandatory files.

1 Like