I am running the official Greenbone Community Edition via docker-compose (greenbone images, GVM 22.9 / gvmd 26.6.0).
Problem: every time the PostgreSQL container restarts (or even just recovers after a crash), gvmd loses the connection to ospd-openvas and never recovers it automatically. After that:
The Unix socket /run/ospd/ospd-openvas.sock disappears.
All running tasks switch to status Interrupted.
gvmd starts spamming warnings forever:
md manage:WARNING:... osp_scanner_feed_version: failed to connect to /run/ospd/ospd-openvas.sock
Even when ospd-openvas comes back up completely and successfully loads all VTs (logs show “Finished loading VTs. The VT cache has been updated …”), gvmd still considers the scanner dead and does not reconnect.
PostgreSQL logs show the typical recovery messages:
database system was not properly shut down; automatic recovery in progress
invalid record length at ... wanted 24, got 0
Is this a known issue? Is there an official, up-to-date, “working” docker-compose.yml for the Community Edition (22.9+) that already solves these problems?
I would be very grateful for a working docker-compose example or any definitive recommendations.
Yes — that is basically the “normal” list of volumes. I can’t verify for the rough expected sizes ATM because I don’t have access to a system with the containers, but they look roughly correct. TBH, I haven’t installed the containers in a few weeks, so I don’t know if there has been an component upgrade that is problematic.