I’ve reviewed several threads on missing import scan configurations, but am not clear how to actually get a usable scan config after syncing. Details…
I have just got GVM running and its feeds synced, but there are no configured scans and the GVMD_DATA Feed status says something like “11 days old”. I noticed there is an upload icon, and so tried to load one of the several configs on disk. FWIW, here is one file I tried:
$ cat /var/lib/gvm/data-objects/gvmd/20.08/configs/base-d21f6c81-2b88-4ac1-b7b4-a2a9f2ad4663.xml
<!-- Copyright (C) 2020 Greenbone Networks GmbH -->
<config id="d21f6c81-2b88-4ac1-b7b4-a2a9f2ad4663">
<name>Base</name>
<comment>Basic configuration template with a minimum set of NVTs required for a scan. Version 20200827.</comment>
<type>0</type>
<usage_type>scan</usage_type>
<preferences>
</preferences>
<nvt_selectors>
<nvt_selector>
<include>1</include>
<type>2</type>
<family_or_nvt>1.3.6.1.4.1.25623.1.0.100315</family_or_nvt>
</nvt_selector>
<nvt_selector>
<include>1</include>
<type>2</type>
<family_or_nvt>1.3.6.1.4.1.25623.1.0.14259</family_or_nvt>
</nvt_selector>
<nvt_selector>
<include>1</include>
<type>2</type>
<family_or_nvt>1.3.6.1.4.1.25623.1.0.103997</family_or_nvt>
</nvt_selector>
</nvt_selectors>
</config>
Unfortunately, each file I tried gave what looks like a validation error “Name and base config to copy must be at least one character long”. Should this work? Is there some other way to get a scan config loaded?
Possibly related: if I try to create a “New Scan Config”, I get this error which, interestingly, cites the UUID of the file I showed me trying to load above:
regarding the error “Name and base config to copy must be at least one character long”: In the web interface, you can only import objects that have been exported via the web interface. Manually importing an object from the Greenbone Feed is not supported and causes the corresponding error.
Regarding your second post, this is the true problem. For some reason, the feed objects have not been processed by GVM yet and are thus unavailable.
Perhaps that is a clue to the problem? I also performed another set of syncs just now (as I write, the feeds are “Update in progress…”).
Thanks, Shaheed
P.S. If you need me to check something in the database, I am able to do that using pgAdmin (in fact I did, in desperation, manually create some Scan Configs using pgAdmin though since I have no idea what I am doing, the lack of progress was very predictable ;-)).
AFAIK this happens if the scanner has loaded the VT cache but the manager daemon (gvmd) isn’t able to connect to the scanner to sync its internal one with the one of the scanner.