This morning, I opened the OpenVAS Web UI and noticed I was unable to run any tasks. Upon checking the Feed Status, I saw an error indicating a synchronization issue with the NVT feed.
The error message reads: Synchronization issue: Could not connect to scanner to get feed info.
To troubleshoot, I started updating the feeds. While the feeds are updating, the NVTs are not being updated. See the screenshot below for reference:
During troubleshooting, I found that the /run/ospd/ospd-openvas.sock file was missing, and a feed-update.lock file was in its place.
To resolve, I removed the feed-update.lock file and re-pulled all OpenVAS containers, ensuring that I did not remove any volumes. This preserved the database records and previous scan data, and restored the ospd-openvas.sock file.
Afterward, I updated the feed, and the update completed successfully.
For safety, I recommend making a backup or taking a snapshot of the VM before performing similar actions.
Hi @nickvas I’ve exactly the same problem, every time I restart the host.
Do you running Greenbone via docker? I’m running it via Docker on Debian (VM). Do you know how to get to the /run/ospd/feed-update.lock file inside docker?
Update
After the following command, the error message disappear (Status = Current): docker compose -f $DOWNLOAD_DIR/docker-compose.yml up -d
After this command I can connect to the ospd-openvas terminal with this command: docker compose -f $DOWNLOAD_DIR/docker-compose.yml exec ospd-openvas /bin/bash
Inside run/ospd/ I found feed-update.lock and ospd-openvas.sock and removed the lock file (rm feed-update.lock). But after a reboot the error message still appears. Why Service “ospd-openvas” is not running after reboot? Do I have to run the pull and up commands after a reboot?
Run this command to set the Download dir var. export DOWNLOAD_DIR=$HOME/greenbone-community-container && mkdir -p $DOWNLOAD_DIR
I’d already looked at the log. But it only says:
(ospd.main) Shutting-down server …
And that’s it. After a reboot, it doesn’t start. Maybe that’s because I’m running Debian in a VM. Now I have a check and restart script. This works.