Can't create a scan config (failed to find config)

I did all the steps with no error. but still the Scan configs is deactive. and I still face the error:
Failed to find config ‘085569ce-73ed-11df-83c3-002264764cea’

root@kali:/home/kali# sudo runuser -u _gvm – greenbone-nvt-sync
root@kali:/home/kali# sudo runuser -u _gvm – gvmd --get-scanners
08b69003-5fc2-4037-a479-93b440211c73 OpenVAS /var/run/ospd/ospd.sock 0 OpenVAS Default
6acd0832-df90-11e4-b9d5-28d24461215b CVE 0 CVE
root@kali:/home/kali# sudo runuser -u _gvm – gvmd --get-users --verbose
admin dabd2710-aebd-4048-a8c7-460b60e5fa93
root@kali:/home/kali# sudo runuser -u _gvm – gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value dabd2710-aebd-4048-a8c7-460b60e5fa93

root@kali:/home/kali# greenbone-feed-sync --type GVMD_DATA
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/

All transactions are logged.

If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.

By using this service you agree to our terms and conditions.

Only one sync per time, otherwise the source ip will be temporarily blocked.

receiving incremental file list
timestamp
13 100% 12.70kB/s 0:00:00 (xfr#1, to-chk=0/1)

sent 43 bytes received 114 bytes 1.18 bytes/sec
total size is 13 speedup is 0.08

sudo runuser -u _gvm – gvmd --modify-scanner=08b69003-5fc2-4037-a479-93b440211c73 --scanner-host=/directory/to/ospd.sock
Scanner modified.

Note that the ospd-scanner service needs to be running correctly (depends on your Linux Distro but checking should be possible with something like service ospd-openvas status and should have loaded all VTs before the scan config can be imported.

Please check if this is really required on your Linux distribution.

Also note that it seems you’re using the Kali packages of GVM, please check the readme / notes of that packages for further help / information how the setup is done there so that the scan config are correctly migrated.

Hi I had the same problem, although in a different environment (I’m currently using a GVM container) and managed to solve it with your steps, but there is a small mistake (or at least the correction below worked for me):
Instead of:
sudo runuser -u _gvm – gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value dabd2710-aebd-4048-a8c7-460b60e5fa93
please try:
sudo runuser -u _gvm – gvmd --modify-scanner 78eceaec-3385-11ea-b237-28d24461215b --value dabd2710-aebd-4048-a8c7-460b60e5fa93
(I used a slightly different command, for docker…, but the concept should be that one above)


I have the same problem and I have not been able to solve it… help me please…

Please try as follows. It worked for me, with different commands since using docker, honestly I don’t even know why. Just one of many tries…

sudo runuser -u _gvm -- greenbone-nvt-sync
sudo runuser -u _gvm -- gvmd --get-scanners
(note your scanner id)
sudo runuser -u _gvm -- gvmd --get-users --verbose
(note your user id)
sudo runuser -u _gvm -- gvmd --modify-scanner [scanner id] --value [user id]

hi , @filo I have the same problem… HOw I can get the (scannerid | userid) info.
Thx in advanced

Hi @quisutd3us
Actually what I meant is:
Entering
sudo runuser -u _gvm – gvmd --get-scanners
should give you as output the list of your scanners; the first column, if I remember well, should be the scanner ID.
Then, equivalently, entering:
sudo runuser -u _gvm – gvmd --get-users --verbose
should give you the list of your users (most likely you’re using “admin”), including their IDs.
Finally, entering:
sudo runuser -u _gvm – gvmd --modify-scanner [scanner id] --value [user id]
should do the trick.
Again, please consider that I’m not an expert, and this is only what solved my own problem, which, although showing the same error message, maybe had different “root causes”…
As said before, I just started from some instructions reported above in the thread, making a change because something was telling me that probably my user was not owner or was not “connected to” my scanner.

I hope this helps…

1 Like

this one helped to me. Exactly these 3 commands. Thank you.

2 Likes

Hii,

I am also facing the same issue of failed to find scan config in ubuntu. I tried the 3 commands but somehow I am not getting the scanner id in my terminal.Can you please help me what am I doing wrong.

Hi @BAK, most likely the problem Is in the single dash - before gvmd: It should be double, --, like before get-scanners, buy with a space before gvmd

Thanks for your reply, I tried what you said but it gave nothing as an output.

Hi, you need to check the log file of gvmd (named gvmd.log normally somewhere in /var/log). It is very likely that is contains an error message stating some database issues.

1 Like

Hi, this below is my content in log file

md main:MESSAGE:2021-03-11 06h22.44 utc:4663: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md main: INFO:2021-03-11 06h22.44 utc:4663: Migrating database.
md main:WARNING:2021-03-11 06h22.44 utc:4663: manage_migrate: no task tables yet, so no need to migrate them
md main:MESSAGE:2021-03-11 06h22.44 utc:4663: No SCAP database found for migration
md main:MESSAGE:2021-03-11 06h22.44 utc:4663: No CERT database found for migration
md main:WARNING:2021-03-11 06h22.44 utc:4663: gvmd: databases are already at the supported version
md main:MESSAGE:2021-03-11 06h22.44 utc:4669: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-11 06h22.44 utc:4669: Getting users.
md manage:WARNING:2021-03-11 06h22.45 utc:4669: sql_exec_internal: PQexec failed: ERROR: relation “public.meta” does not exist
LINE 1: SELECT value FROM public.meta WHERE name = 'database_version…
^
(7)
md manage:WARNING:2021-03-11 06h22.45 utc:4669: sql_exec_internal: SQL: SELECT value FROM public.meta WHERE name = ‘database_version’;
md manage:WARNING:2021-03-11 06h22.45 utc:4669: sql_x: sql_exec_internal failed
md manage:MESSAGE:2021-03-11 06h22.45 utc:4669: No SCAP database found
md manage:MESSAGE:2021-03-11 06h22.45 utc:4669: No CERT database found
md main:MESSAGE:2021-03-11 06h22.46 utc:4673: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-11 06h22.46 utc:4673: Creating user.
md manage:MESSAGE:2021-03-11 06h22.46 utc:4673: No SCAP database found
md manage:MESSAGE:2021-03-11 06h22.46 utc:4673: No CERT database found
md main:MESSAGE:2021-03-11 06h22.47 utc:4692: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-11 06h22.47 utc:4692: Getting users.
md manage:MESSAGE:2021-03-11 06h22.47 utc:4692: No SCAP database found
md manage:MESSAGE:2021-03-11 06h22.47 utc:4692: No CERT database found
md main:MESSAGE:2021-03-11 06h22.48 utc:4696: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-11 06h22.48 utc:4696: Modifying setting.
md manage:MESSAGE:2021-03-11 06h22.48 utc:4696: No SCAP database found
md manage:MESSAGE:2021-03-11 06h22.48 utc:4696: No CERT database found
md main:MESSAGE:2021-03-11 07h25.30 utc:5292: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-11 07h25.30 utc:5292: Getting scanners.
md manage:MESSAGE:2021-03-11 07h25.32 utc:5292: No SCAP database found
md manage:MESSAGE:2021-03-11 07h25.32 utc:5292: No CERT database found
event port_list:MESSAGE:2021-03-11 07h25.33 utc:5292: Port list All IANA assigned TCP and UDP (4a4717fe-57d2-11e1-9a26-406186ea4fc5) has been created by admin
event port_list:MESSAGE:2021-03-11 07h25.33 utc:5292: Port list All TCP and Nmap top 100 UDP (730ef368-57e2-11e1-a90f-406186ea4fc5) has been created by admin
event port_list:MESSAGE:2021-03-11 07h25.34 utc:5292: Port list All IANA assigned TCP (33d0cd82-57c6-11e1-8ed1-406186ea4fc5) has been created by admin
event report_format:MESSAGE:2021-03-11 07h25.34 utc:5292: Report format CSV Results (c1645568-627a-11e3-a660-406186ea4fc5) has been created by admin
event report_format:MESSAGE:2021-03-11 07h25.34 utc:5292: Report format Anonymous XML (5057e5cc-b825-11e4-9d0e-28d24461215b) has been created by admin
event report_format:MESSAGE:2021-03-11 07h25.34 utc:5292: Report format PDF (c402cc3e-b531-11e1-9163-406186ea4fc5) has been created by admin
event report_format:MESSAGE:2021-03-11 07h25.34 utc:5292: Report format XML (a994b278-1f62-11e1-96ac-406186ea4fc5) has been created by admin
event report_format:MESSAGE:2021-03-11 07h25.34 utc:5292: Report format TXT (a3810a62-1f62-11e1-9219-406186ea4fc5) has been created by admin
event report_format:MESSAGE:2021-03-11 07h25.35 utc:5292: Report format ITG (77bd6c4a-1f62-11e1-abf0-406186ea4fc5) has been created by admin
md main:MESSAGE:2021-03-11 07h26.58 utc:5333: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage:MESSAGE:2021-03-11 07h26.59 utc:5334: No SCAP database found
md manage:MESSAGE:2021-03-11 07h26.59 utc:5334: No CERT database found
util gpgme: INFO:2021-03-11 07h26.59 utc:5334: starting key generation …
util gpgme: INFO:2021-03-11 07h27.00 utc:5334: OpenPGP key ‘GVM Credential Encryption’ has been generated
md manage:WARNING:2021-03-11 07h28.41 utc:5469: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2021-03-11 07h28.41 utc:5473: OSP service has different VT status (version 202103101106) from database (version (null), 0 VTs). Starting update …
md manage: INFO:2021-03-11 07h28.41 utc:5470: Initializing CERT database
md manage: INFO:2021-03-11 07h28.41 utc:5469: update_scap: Updating data from feed
md manage: INFO:2021-03-11 07h28.41 utc:5469: Updating CPEs
md manage: INFO:2021-03-11 07h28.41 utc:5470: sync_cert: Updating data from feed
md manage: INFO:2021-03-11 07h28.41 utc:5470: update_dfn_xml: dfn-cert-2015.xml
md manage: INFO:2021-03-11 07h28.41 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2015.xml
md manage: INFO:2021-03-11 07h29.24 utc:5470: update_dfn_xml: dfn-cert-2010.xml
md manage: INFO:2021-03-11 07h29.24 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2010.xml
md manage: INFO:2021-03-11 07h29.46 utc:5470: update_dfn_xml: dfn-cert-2018.xml
md manage: INFO:2021-03-11 07h29.46 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2018.xml
event target:MESSAGE:2021-03-11 07h29.51 UTC:5616: Target Target for immediate scan of IP 127.0.0.1 - 2021-03-11 07:29:51 (f12921e2-d82a-45fd-80f2-78257bf48020) has been created by admin
event task:MESSAGE:2021-03-11 07h29.51 UTC:5616: Status of task (00fb5c40-6f90-4c9d-bc2c-25a80ef5ca82) has changed to New
event wizard:MESSAGE:2021-03-11 07h29.52 UTC:5616: Wizard quick_first_scan could not be run by admin
md manage: INFO:2021-03-11 07h30.18 utc:5470: update_dfn_xml: dfn-cert-2016.xml
md manage: INFO:2021-03-11 07h30.18 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2016.xml
md manage: INFO:2021-03-11 07h30.42 utc:5470: update_dfn_xml: dfn-cert-2012.xml
md manage: INFO:2021-03-11 07h30.42 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2012.xml
md manage: INFO:2021-03-11 07h31.04 utc:5470: update_dfn_xml: dfn-cert-2019.xml
md manage: INFO:2021-03-11 07h31.04 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2019.xml
md manage: INFO:2021-03-11 07h31.48 utc:5470: update_dfn_xml: dfn-cert-2009.xml
md manage: INFO:2021-03-11 07h31.48 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2009.xml
md manage: INFO:2021-03-11 07h31.57 utc:5470: update_dfn_xml: dfn-cert-2017.xml
md manage: INFO:2021-03-11 07h31.57 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2017.xml
md manage: INFO:2021-03-11 07h32.36 utc:5470: update_dfn_xml: dfn-cert-2021.xml
md manage: INFO:2021-03-11 07h32.36 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2021.xml
md manage: INFO:2021-03-11 07h32.43 utc:5470: update_dfn_xml: dfn-cert-2014.xml
md manage: INFO:2021-03-11 07h32.43 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2014.xml
md manage: INFO:2021-03-11 07h33.02 utc:5470: update_dfn_xml: dfn-cert-2013.xml
md manage: INFO:2021-03-11 07h33.02 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2013.xml
md manage: INFO:2021-03-11 07h33.37 utc:5470: update_dfn_xml: dfn-cert-2020.xml
md manage: INFO:2021-03-11 07h33.37 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2020.xml
md manage: INFO:2021-03-11 07h34.43 utc:5470: update_dfn_xml: dfn-cert-2008.xml
md manage: INFO:2021-03-11 07h34.43 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2008.xml
md manage: INFO:2021-03-11 07h34.44 utc:5470: update_dfn_xml: dfn-cert-2011.xml
md manage: INFO:2021-03-11 07h34.44 utc:5470: Updating /var/lib/gvm/cert-data/dfn-cert-2011.xml
md manage: INFO:2021-03-11 07h35.22 utc:5470: Updating /var/lib/gvm/cert-data/CB-K13.xml
md manage: INFO:2021-03-11 07h35.32 utc:5470: Updating /var/lib/gvm/cert-data/CB-K20.xml
md manage: INFO:2021-03-11 07h35.54 utc:5470: Updating /var/lib/gvm/cert-data/CB-K14.xml
md manage: INFO:2021-03-11 07h36.16 utc:5470: Updating /var/lib/gvm/cert-data/CB-K16.xml
md manage: INFO:2021-03-11 07h36.47 utc:5470: Updating /var/lib/gvm/cert-data/CB-K15.xml
md manage: INFO:2021-03-11 07h37.09 utc:5470: Updating /var/lib/gvm/cert-data/CB-K17.xml
md manage: INFO:2021-03-11 07h37.41 utc:5470: Updating /var/lib/gvm/cert-data/CB-K19.xml
md manage: INFO:2021-03-11 07h37.55 utc:5470: Updating /var/lib/gvm/cert-data/CB-K21.xml
md manage: INFO:2021-03-11 07h37.56 utc:5470: Updating /var/lib/gvm/cert-data/CB-K18.xml
md manage: INFO:2021-03-11 07h38.07 utc:5470: sync_cert: Updating CERT info succeeded.
event target:MESSAGE:2021-03-11 07h38.51 UTC:6116: Target Target for immediate scan of IP 127.0.0.1 - 2021-03-11 07:38:51 (10ac4ab7-b854-47ca-bcbb-3450848c3d70) has been created by admin
event task:MESSAGE:2021-03-11 07h38.51 UTC:6116: Status of task (a0b88cdd-d9af-4e9c-b8d2-e608f1547e6a) has changed to New
event wizard:MESSAGE:2021-03-11 07h38.51 UTC:6116: Wizard quick_first_scan could not be run by admin
md manage: INFO:2021-03-11 07h42.42 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2002.xml
md manage: INFO:2021-03-11 07h43.15 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2021.xml
md manage: INFO:2021-03-11 07h43.28 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2011.xml
md manage: INFO:2021-03-11 07h44.22 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2012.xml
md manage: INFO:2021-03-11 07h45.11 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2009.xml
md manage: INFO:2021-03-11 07h46.16 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2006.xml
md manage: INFO:2021-03-11 07h46.55 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2016.xml
md manage: INFO:2021-03-11 07h48.00 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2005.xml
md manage: INFO:2021-03-11 07h48.48 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2018.xml
md main:MESSAGE:2021-03-11 07h51.22 utc:8886: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-11 07h51.22 utc:8886: Getting scanners.
md manage:MESSAGE:2021-03-11 07h51.24 utc:8886: No SCAP database found
md manage: INFO:2021-03-11 07h54.42 utc:5469: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2015.xml
md main:MESSAGE:2021-03-11 10h29.13 utc:1399: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage:MESSAGE:2021-03-11 10h29.16 utc:1400: No SCAP database found
event target:MESSAGE:2021-03-11 10h31.34 UTC:1873: Target Target for immediate scan of IP 127.0.0.1 - 2021-03-11 10:31:34 (2d949710-31a8-472d-b178-51b23af78b6b) has been created by admin
event task:MESSAGE:2021-03-11 10h31.34 UTC:1873: Status of task (1d62da4c-d0a0-4869-a848-5536c21cda65) has changed to New
event wizard:MESSAGE:2021-03-11 10h31.34 UTC:1873: Wizard quick_first_scan could not be run by admin
md manage:WARNING:2021-03-11 10h34.18 utc:1942: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2021-03-11 10h34.18 utc:1946: OSP service has different VT status (version 202103101106) from database (version (null), 0 VTs). Starting update …
md manage: INFO:2021-03-11 10h34.19 utc:1942: update_scap: Updating data from feed
md manage: INFO:2021-03-11 10h34.19 utc:1942: Updating CPEs
md manage: INFO:2021-03-11 10h42.37 utc:1942: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2002.xml
md manage: INFO:2021-03-11 10h43.13 utc:1942: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2021.xml
md manage: INFO:2021-03-11 10h43.23 utc:1942: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2011.xml
md manage: INFO:2021-03-11 10h44.09 utc:1942: Updating /var/lib/gvm/scap-data/nvdcve-2.0-2012.xml
md main:MESSAGE:2021-03-12 03h32.16 utc:1535: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md main: INFO:2021-03-12 03h32.16 utc:1535: Migrating database.
md main:MESSAGE:2021-03-12 03h32.16 utc:1535: No SCAP database found for migration
md main:WARNING:2021-03-12 03h32.16 utc:1535: gvmd: databases are already at the supported version
md main:MESSAGE:2021-03-12 03h32.16 utc:1541: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-12 03h32.16 utc:1541: Getting users.
md manage:MESSAGE:2021-03-12 03h32.16 utc:1541: No SCAP database found
md main:MESSAGE:2021-03-12 03h43.21 utc:1772: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-12 03h43.21 utc:1772: Getting scanners.
md manage:MESSAGE:2021-03-12 03h43.21 utc:1772: No SCAP database found
md main:MESSAGE:2021-03-12 03h44.16 utc:1789: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage:MESSAGE:2021-03-12 03h44.16 utc:1790: No SCAP database found
md manage:WARNING:2021-03-12 03h45.29 utc:1870: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2021-03-12 03h45.29 utc:1874: OSP service has different VT status (version 202103111126) from database (version (null), 0 VTs). Starting update …
md manage: INFO:2021-03-12 03h45.30 utc:1871: sync_cert: Updating data from feed
md manage: INFO:2021-03-12 03h45.32 utc:1870: update_scap: Updating data from feed
md manage: INFO:2021-03-12 03h45.32 utc:1870: Updating CPEs
md manage: INFO:2021-03-12 03h45.32 utc:1871: update_dfn_xml: dfn-cert-2015.xml
md manage: INFO:2021-03-12 03h45.32 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2015.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.32 utc:1871: update_dfn_xml: dfn-cert-2010.xml
md manage: INFO:2021-03-12 03h45.32 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2010.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.32 utc:1871: update_dfn_xml: dfn-cert-2018.xml
md manage: INFO:2021-03-12 03h45.32 utc:1871: Updating /var/lib/gvm/cert-data/dfn-cert-2018.xml
md manage: INFO:2021-03-12 03h45.34 utc:1871: update_dfn_xml: dfn-cert-2016.xml
md manage: INFO:2021-03-12 03h45.34 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2016.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.34 utc:1871: update_dfn_xml: dfn-cert-2012.xml
md manage: INFO:2021-03-12 03h45.34 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2012.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.34 utc:1871: update_dfn_xml: dfn-cert-2019.xml
md manage: INFO:2021-03-12 03h45.34 utc:1871: Updating /var/lib/gvm/cert-data/dfn-cert-2019.xml
md manage: INFO:2021-03-12 03h45.39 utc:1871: update_dfn_xml: dfn-cert-2009.xml
md manage: INFO:2021-03-12 03h45.39 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2009.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.39 utc:1871: update_dfn_xml: dfn-cert-2017.xml
md manage: INFO:2021-03-12 03h45.39 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2017.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.39 utc:1871: update_dfn_xml: dfn-cert-2021.xml
md manage: INFO:2021-03-12 03h45.39 utc:1871: Updating /var/lib/gvm/cert-data/dfn-cert-2021.xml
md manage: INFO:2021-03-12 03h45.43 utc:1871: update_dfn_xml: dfn-cert-2014.xml
md manage: INFO:2021-03-12 03h45.43 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2014.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.43 utc:1871: update_dfn_xml: dfn-cert-2013.xml
md manage: INFO:2021-03-12 03h45.43 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2013.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.43 utc:1871: update_dfn_xml: dfn-cert-2020.xml
md manage: INFO:2021-03-12 03h45.43 utc:1871: Updating /var/lib/gvm/cert-data/dfn-cert-2020.xml
md manage: INFO:2021-03-12 03h45.43 utc:1871: update_dfn_xml: dfn-cert-2008.xml
md manage: INFO:2021-03-12 03h45.43 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2008.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.43 utc:1871: update_dfn_xml: dfn-cert-2011.xml
md manage: INFO:2021-03-12 03h45.43 utc:1871: Skipping /var/lib/gvm/cert-data/dfn-cert-2011.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.48 utc:1871: Skipping /var/lib/gvm/cert-data/CB-K13.xml, file is older than last revision
md manage: INFO:2021-03-12 03h45.48 utc:1871: Updating /var/lib/gvm/cert-data/CB-K20.xml
md manage: INFO:2021-03-12 03h46.02 utc:1871: Skipping /var/lib/gvm/cert-data/CB-K14.xml, file is older than last revision
md manage: INFO:2021-03-12 03h46.02 utc:1871: Skipping /var/lib/gvm/cert-data/CB-K16.xml, file is older than last revision
md manage: INFO:2021-03-12 03h46.02 utc:1871: Skipping /var/lib/gvm/cert-data/CB-K15.xml, file is older than last revision
md manage: INFO:2021-03-12 03h46.02 utc:1871: Skipping /var/lib/gvm/cert-data/CB-K17.xml, file is older than last revision
md manage: INFO:2021-03-12 03h46.02 utc:1871: Updating /var/lib/gvm/cert-data/CB-K19.xml
md manage: INFO:2021-03-12 03h46.03 utc:1871: Updating /var/lib/gvm/cert-data/CB-K21.xml
md manage: INFO:2021-03-12 03h46.04 utc:1871: Updating /var/lib/gvm/cert-data/CB-K18.xml
md manage: INFO:2021-03-12 03h46.05 utc:1871: sync_cert: Updating CERT info succeeded.
event target:MESSAGE:2021-03-12 03h52.32 UTC:2472: Target Target for immediate scan of IP 127.0.0.1 - 2021-03-12 03:52:32 (455c97f4-364d-4d96-aa8e-a60d81e02ce2) has been created by admin
event task:MESSAGE:2021-03-12 03h52.32 UTC:2472: Status of task (5505d8cf-04cd-461b-bd00-3b39bd135afc) has changed to New
event wizard:MESSAGE:2021-03-12 03h52.32 UTC:2472: Wizard quick_first_scan could not be run by admin

Can you please guide me what I can do to solve it

Hi @BAK
Please try this one (I think a non privileged user gvm exists in your system):
sudo su - gvm
gvmd --get-users --verbose
(take a note of your user ID, normally admin)
gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value [user ID]

Yesterday I fired up a new Debian VM, followed the installation write-up found in this forum in a different thread (but it should be very similar, if not identical, for Ubuntu) and I was stuck with that error.
I’m sure I had run that command during the install, since it is part of the instructions! But I got the error. Maybe there was a problem with the feed updates, I don’t know…
Today, I run that command again and now it works…!

Even after you have fully synced the feeds, it takes gvm some time to ingest that data. I’ve seen it take anywhere from 15minutes to an hour depending on how much CPU/Memory you are throwing at it. I got around this by using docker and building an image that includes a recent full copy of the feeds as well as a fully functioning DB. You can spin up the scanner and have it ready to scan in 5-10 minutes or immediately if you skip the sync.

immauss/openvas (docker.com)

2 Likes

Hey Folks,

i have the same Problem. I followed the instruction but i have 0 scan configs.

here can we see the last entry is 22 days old and 0 configs. What can i do? thanks

You need to check the gvmd log file (should be somewhere in /var/log and named gvmd.log) about GVMD_DATA sync.

1 Like

Hey Bricks, thanks for help. Here is the log. Dont know what the issue :frowning:

FATAL: role “_gvm” does not exist

gvmd.log (39.6 KB)

Just directly at the start of the log file

md manage:WARNING:2021-04-29 05h53.30 utc:4270: sql_open: PQconnectPoll failed
md manage:WARNING:2021-04-29 05h53.30 utc:4270: sql_open: PQerrorMessage (conn): FATAL:  role "_gvm" does not exist
md manage:WARNING:2021-04-29 05h53.30 utc:4270: init_manage_process: sql_open failed

means your database is not correctly set up. Because this is very distribution specific you need to contact the distribution for a fix. I suspect you can follow the db setup steps from https://github.com/greenbone/gvmd/blob/gvmd-21.04/INSTALL.md#setting-up-the-postgresql-database and replace the username mattm with _gvm but I am not sure about that.

2 Likes