Hello,
I installed Greenbone Community Containers on Ubuntu 24.04, I setup SSL/TLS for GSA and everything works good.
After server reboot container starts automatically but looks ospd-openvas not starting, below message found in logs:
gvmd-1 | md manage:WARNING:2025-02-19 09h23.09 utc:89: osp_scanner_feed_version: failed to connect to /run/ospd/ospd-openvas.sock
Running command “docker compose ps” I can see below services running and looks greenbone-community-edition-ospd-openvas-1 is missing:
I think you can use scheduled bash script to verify that the containers are all up and running after a reboot and/or restart them after the boot process has completed. Otherwise, maybe competition for system resources during the boot that cause this issue since they always seem to come up for me when rebooting a VM with the containers installed on them.
#!/bin/bash
sleep 30 # wait 30s after systemstart
# check if service is running
RUNNING=$(docker ps --filter "name=ospd-openvas" --format "{{.Names}}")
if [ "$RUNNING" != "ospd-openvas" ]; then
echo "ospd-openvas not found, start..."
docker compose -f $HOME/greenbone-community-container/docker-compose.yml restart ospd-openvas
else
echo "ospd-openvas is running!"
fi
sudo chmod +x /usr/local/bin/check_ospd.sh
create systemd service file
sudo nano /etc/systemd/system/check-ospd.service
@ottelo_rbk Please be aware that this thread / topic is about the official Docker community containers (see relevant category this thread is in) so any non-Docker solution won’t work for these. I would suggest to move this hint to a dedicated thread.