I have a dockerized installation of GVM 20.08.0. I have 4 scans set up to run every morning at 6 am local time. Some days it works without any issues, other days it fails. In the web GUI I can find the error
Could not connect to Scanner.
I should note that each night at midnight the Docker container gets a reboot from a cronjob.
Inside of the Docker container I can find some log files at
gvmd.log I find 4 lines with
Could not connect to Scanner at /var/run/ospd/ospd.sock on a day that the scans fail, one for each scan.
ospd-openvas.log I find a line that says Starting
OSPd OpenVAS version 20.8.1., each night, around midnight. I see this on days that the scans fail as well as on days that the scans work. On days that the scans work I can also see records with
Scan x added to the queue in position 1.,
Starting scan x. and
x: Host scan finished. as well as
x: Scan finished.
What could be causing the lack of connectivity to the scanner?