problem is Failed to find port_list '33d0cd82-57c6-11e1-8ed1-406186ea4fc5'
when i run scanner
tried following things:
1.https://forum.greenbone.net/t/failed-to-rebuild-gvmd-data/14038
2.https://greenbone.github.io/docs/latest/22.4/source-build/troubleshooting.html#failed-to-find-config
but didnt work
when i run sudo -u _gvm gvmd --rebuild-gvmd-data=all
I got error:
Failed to rebuild gvmd data: Feed locked.
bricks
February 26, 2024, 3:27pm
2
This means there is another process running which accesses the feed. This can be either gvmd
loading feed data currently already or greenbone-feed-sync
downloading the feed data from the server. I would bet for the first. Check the gvmd
logs if it is loading the feed data currently and if all data has loaded successfully. The log messages to keep an eye on are listed at https://greenbone.github.io/docs/latest/22.4/source-build/index.html#performing-a-feed-synchronization
2 Likes
event wizard:MESSAGE:2024-02-26 18h19.26 UTC:4881: Wizard quick_first_scan could not be run by al0ne
when i click “start scan” button i got that log
bricks
February 27, 2024, 6:54am
4
This is just a symptom of the issue not the issue itself.
First of all did you check if port list has been downloaded from the feed
find /var/lib/gvm/data-objects/ -name "*33d0cd82-57c6-11e1-8ed1-406186ea4fc5*.xml"
Afterwards the /var/log/gvm/gvmd.log
should contain the following line (the user can be different of course)
Port list All IANA assigned TCP (33d0cd82-57c6-11e1-8ed1-406186ea4fc5) has been created by admin
Next step is to check /var/log/gvm/gvmd.log
for errors.
Additionally you can try to shut down gvmd
via
systemctl stop gvmd.service
and wait some time until ps aux | grep gvmd
doesn’t show any running gvmd
process.
When gvmd
is not running anymore
sudo -u _gvm gvmd --rebuild-gvmd-data=all
should work without an issue. Otherwise if you still get the Failed to rebuild gvmd data: Feed locked.
message, try deleting the lock file
sudo rm /var/lib/gvm/feed-update.lock
and re-run
sudo -u _gvm gvmd --rebuild-gvmd-data=all
1 Like
find /var/lib/gvm/data-objects/ -name "*33d0cd82-57c6-11e1-8ed1-406186ea4fc5*.xml"
/var/lib/gvm/data-objects/gvmd/22.04/port-lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
Port list All IANA assigned TCP (33d0cd82-57c6-11e1-8ed1-406186ea4fc5) has been created by admin
not have it
sudo -u _gvm gvmd --rebuild-gvmd-data=all
worked but nothing have output and in gvmd.log
Hi I’m having the same problem using the docker version. Can anyone help?
Ref:
root@db1727c8189b:/# find /var/lib/gvm/data-objects/ -name “33d0cd82-57c6-11e1-8ed1-406186ea4fc5 .xml”
/var/lib/gvm/data-objects/gvmd/22.04/port-lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/port-lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/port-lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
root@db1727c8189b:/#
First, you can try using the appropriate feed-sync command as specified in the official Greenbone Docker Containers Workflow . You can check the web-interface (GSA) feed-status
page to check whether the feeds have finished synchronization. If that does not work for you, please re-post your issue in the appropriate forum category . Thanks kindly
1 Like
Did the re-post of my problem in:
Hi any ideia how to resolve this issue?
Look:
[Captura de ecrã 2024-03-15, às 14.09.54]
In the log:
gsa-1 | gsad gmp:MESSAGE:2024-03-15 14h09.25 GMT:13: Authentication success for 'admin' from 172.19.0.1
gvmd-1 | event config:MESSAGE:2024-03-15 14h09.40 WET:1894: Config could not be created by admin
and
Hi everyone, I’m having problems updating all the feeds manually.
Running:
$ docker compose -f ./greenbone-community-container/docker-compose.yml -p greenbone-community-edition run --rm greenbone-feed-sync greenbone-feed-sync --type all
Traceback (most recent call last):
File "/usr/local/bin/greenbone-feed-sync", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/dist-packages/greenbone/feed/sync/main.py", line 221, in main
sys.exit(asyncio.run…
Thnak you!
i got this error:
┌──(kali㉿kali)-[~]
└─$ sudo -u _gvm gvmd --rebuild-gvmd-data=all
Failed to rebuild gvmd data: NVTs must be available while rebuilding configs.