Hi, I have tried to do feed syn but it still shows NVT Feed too old (39 days)
I followed the reference: Workflows - Greenbone Community Documentation
as wel as I checked: How to Configure and Check Feed Sync Timing in Greenbone Docker Container?
Ran the commands:
docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition pull notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats
docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats
And then After running the sync, everything is done, But still in Openvas Frontend it shows Old version.
The terminal Output:
ubuntu@ubuntu-openvas:~/maintools/openvas$ docker-compose -f compose.yml -p greenbone-community-edition pull notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats data-objects
Pulling vulnerability-tests ... done
Pulling notus-data ... done
Pulling scap-data ... done
Pulling cert-bund-data ... done
Pulling dfn-cert-data ... done
Pulling data-objects ... done
Pulling report-formats ... done
ubuntu@ubuntu-openvas:~/maintools/openvas$
ubuntu@ubuntu-openvas:~/maintools/openvas$ docker-compose -f compose.yml -p greenbone-community-edition up -d notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats data-object
ERROR: No such service: data-object
ubuntu@ubuntu-openvas:~/maintools/openvas$ docker-compose -f compose.yml -p greenbone-community-edition up -d notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats
Recreating greenbone-community-edition_cert-bund-data_1 ... done
Recreating greenbone-community-edition_data-objects_1 ... done
Recreating greenbone-community-edition_notus-data_1 ... done
Recreating greenbone-community-edition_vulnerability-tests_1 ... done
Recreating greenbone-community-edition_scap-data_1 ... done
Recreating greenbone-community-edition_dfn-cert-data_1 ... done
Recreating greenbone-community-edition_report-formats_1 ... done
ubuntu@ubuntu-openvas:~/maintools/openvas$
ubuntu@ubuntu-openvas:~/maintools/openvas$ python3
Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux
greenbone feed sync
I Refered to: Error: exec: "greenbone-feed-sync": executable file not found in $PATH - #8 by bricks
But when running,
docker-compose -f compose.yml -p greenbone-community-edition run --rm greenbone-feed-sync greenbone-feed-sync --type nvt
I am getting service not found error.
ERROR: No such service: greenbone-feed-sync
- I also checked the GitHub - greenbone/greenbone-feed-sync: New script for downloading the Greenbone Community Feed However when running
sudo /usr/local/bin/greenbone-feed-sync
I am getting the user not found as shown below,
ubuntu@ubuntu-openvas:~$ sudo /usr/local/bin/greenbone-feed-sync
Running as root. Switching to user 'gvm' and group 'gvm'.
❌Error: Can't run as user 'gvm'. User 'gvm' is unknown.