Hi everyone I’m trying to solve this:
$ docker compose -f ./greenbone-community-container/docker-compose.yml -p greenbone-community-edition
run --rm gvmd greenbone-feed-sync --type gvmd-data
[+] Creating 6/0
Container greenbone-community-edition-pg-gvm-1 Running 0.0s
Container greenbone-community-edition-cert-bund-data-1 Created 0.0s
Container greenbone-community-edition-data-objects-1 Created 0.0s
Container greenbone-community-edition-scap-data-1 Created 0.0s
Container greenbone-community-edition-dfn-cert-data-1 Created 0.0s
Container greenbone-community-edition-report-formats-1 Created 0.0s
[+] Running 5/5
Container greenbone-community-edition-cert-bund-data-1 Started 0.6s
Container greenbone-community-edition-scap-data-1 Started 0.7s
Container greenbone-community-edition-data-objects-1 Started 0.7s
Container greenbone-community-edition-dfn-cert-data-1 Started 0.5s
Container greenbone-community-edition-report-formats-1 Started 0.6s
setting up configuration file for mail agent
error: exec: “greenbone-feed-sync”: executable file not found in $PATH
Can you assist me please? Btw the real issue is that I dont have the gvmd-data in place specialy the port_scan profiles. And I’m trying to go arround and fix it (I’m using Community Containers)
What instructions are you following? The feed-sync method you are using is not the the one provided by the Greenbone Docker Containers Workflow instructions.
Again, can you please specify which install and feed-sync instructions you are using. Unfortunately we cannot troubleshoot methods that fall outside of the scope of our official tutorials. This would place an undue burden on our ability to provide help.
For example, one problem I see is that the user gvmd is not the correct user that matches the official install method. Furthermore, although I don’t want to specifically criticize the reputation of the creator whose instructions you are following, I would consider it more of a security risk to use unsupported installation methods published on the Internet.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8d1100521a57 greenbone/gsa:stable "/usr/local/bin/entr…" 13 hours ago Up 4 hours 127.0.0.1:9392->80/tcp greenbone-community-edition-gsa-1
cc333efd022f greenbone/gvmd:stable "/usr/local/bin/entr…" 13 hours ago Up 4 hours greenbone-community-edition-gvmd-1
cfddae9db24a greenbone/ospd-openvas:stable "/usr/bin/tini -- /u…" 13 hours ago Up 54 minutes greenbone-community-edition-ospd-openvas-1
465f4d012da7 greenbone/redis-server "/bin/sh -c 'rm -f /…" 13 hours ago Up 4 hours greenbone-community-edition-redis-server-1
1dd24de3b855 greenbone/pg-gvm:stable "/usr/local/bin/entr…" 13 hours ago Up 4 hours greenbone-community-edition-pg-gvm-1
cfbf4cb1c934 greenbone/mqtt-broker "/bin/sh -c 'mosquit…" 13 hours ago Up 4 hours greenbone-community-edition-mqtt-broker-1
Next feeds in the web saying in status all “Current”. NVT, SCAP, CERT all are visible and with data but in the GVMD_DATA no info avaliable at: Compliance Policies, Port List, Report Formats and Scan Configs.
but nevertheless you don’t need to run the commands to sync the feed manually at all for the containers. There is no reason for doing that despite experiments and learning about the internals.
@orlandoprz could you please format your outputs and commands via backticks ` Without the posts are difficult to read and follow. See Start Here - #3 by bricks
$ docker compose -f ./greenbone-community-container/docker-compose.yml -p greenbone-community-edition run --rm greenbone-feed-sync greenbone-feed-sync --type gvmd-data
Trying to acquire lock on /var/lib/gvm/feed-update.lock
Acquired lock on /var/lib/gvm/feed-update.lock
⠧ Downloading gvmd data from rsync://feed.community.greenbone.net/community/data-feed/22.04/ to /var/lib/gvm/data-objects/gvmd/22.04
Releasing lock on /var/lib/gvm/feed-update.lock
$ docker compose -f ./greenbone-community-container/docker-compose.yml -p greenbone-community-edition run --rm greenbone-feed-sync greenbone-feed-sync --type gvmd-data
Trying to acquire lock on /var/lib/gvm/feed-update.lock
Acquired lock on /var/lib/gvm/feed-update.lock
⠏ Downloading gvmd data from rsync://feed.community.greenbone.net/community/data-feed/22.04/ to /var/lib/gvm/data-objects/gvmd/22.04
Releasing lock on /var/lib/gvm/feed-update.lock
$ telnet feed.community.greenbone.net 873
Trying 45.135.106.143...
Connected to feed.community.greenbone.net.
Escape character is '^]'.
@RSYNCD: 31.0 sha512 sha256 sha1 md5 md4
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.