You probably have either missed to sync the new GVMD_DATA or have missed to set a feed import owner afterwards. The “Details” section of the following announcements have a few additional links / info around both topics:
I’ve synced GVMD_DATA. The default port lists and report formats are present, and they come from that feed. Additionally, gvmd indicates that the feed is up to date.
The feed owner is also set. At this point, the only things that seems to be missing are the scanner configs specifically.
root@openvas:~# sudo -u gvm gvmd --get-users --verbose
admin bab59909-a9b4-4c1b-98e6-7cbf6ddad44a
root@openvas:~# sudo -u gvm psql -d gvmd -c "SELECT * FROM settings WHERE uuid = '78eceaec-3385-11ea-b237-28d24461215b'";
could not change directory to "/root": Permission denied
id | uuid | owner | name | comment | value
----+--------------------------------------+-------+-------------------+---------------------------------------------------------+--------------------------------------
15 | 78eceaec-3385-11ea-b237-28d24461215b | | Feed Import Owner | User who is given ownership of new resources from feed. | bab59909-a9b4-4c1b-98e6-7cbf6ddad44a
(1 row)
TLDR: Either a wrongly configured redis-server or a gvmd not configured to access the correct ospd-openvas / ospd socket could be additional reasons for this problem.
So, the issue seemed to be primarily related to redis. ospd-openvas seemed to be looking for the socket at /var/run/redis/redis.sock, while the default path (in debian) is /var/run/redis/redis-server.sock.
Changing the socket path allowed the scanner service to find the redis socket, and changing the socket permissions to 770 allowed the gvm user (a member of the redis group) to access the socket.
It took some time for the scanner configs to actually update, but they appear to be present now. Thanks again, for pointing me in the right direction!
I have same problem but in a fresh install of 21.4.3. on Kali 5.14. I’ve run thru the scripts from above. My feeds seem to download but do not update the folders. I do not have a gym user and instead have a _gvm user which is normal update process.
pg_lsclusters show version 14 db. When I do the select against gym, I do not have a feed import owner.
Well, solved my missing configus by dropping kali and openvas. Reinstalled kali from iso, then purged postgresql (
sudo apt-get --purge remove postgresql.
sudo apt-get purge postgresql*
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common.
Then reinstalled gvm from scratch The Absolute Best Way To Install OpenVAS On Kali Linux. or
1.sudo apt-get update
2.sudo apt install gvm
3.sudo gvm-setup
4.sudo gvm-start (It really was already started by step3)
Wait 30 minutes for all the feed updates to appear and it works!
Suspect that the main issue revolves around Postgres 13 to 14 conversion.