This thread can be closed. The solution was to edit the two services to point to /var/run/ospd/ospd.sock
openvas-scanner: OpenVAS 21.4.4
Operating system: rocky-release-8.5-3.el8
Installation method / source: yum update (atomic repo)
I’ve recently upgraded Centos 8 to Rocky. However there is something wrong with the ospd service not accepting connections.
Can this be troubleshooted via log files as I don’t see anything helpful:
INFO: (ospd.main) Starting OSPd OpenVAS version 21.4.5.dev1.
(nothing else, just that one line. Nothing to say it has started or why it hasn’t fully started)
md manage:WARNING:2022-04-07 16h01.57 UTC:3056: osp_scanner_feed_version: failed to connect to /var/run/ospd/ospd-openvas.sock
md manage: INFO:2022-04-07 16h01.57 UTC:3056: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenVAS is still starting
md manage: INFO:2022-04-07 16h02.07 UTC:3063: osp_scanner_feed_version: failed to get scanner_feed_version. OSPd OpenVAS is still starting
This is repeated. Then if I try to run a scan, this is the message logged:
event task:MESSAGE:2022-04-07 15h56.35 UTC:2757: Status of task Scan TEST has changed to Requested
event task:MESSAGE:2022-04-07 15h56.35 UTC:2757: Task Scan TEST has been requested to start by admin
md manage:WARNING:2022-04-07 15h57.10 UTC:2763: Could not connect to Scanner at /var/run/ospd/ospd.sock
md manage:WARNING:2022-04-07 15h57.10 UTC:2763: OSP start_scan: Could not connect to Scanner
libgvm util:MESSAGE:2022-04-07 15h31.27 utc:1987: Updated NVT cache from version 0 to 202204061004
gsad main:MESSAGE:2022-04-07 15h55.24 utc:2651: Starting GSAD version 21.4.4
website loads fine and I can log in.
firewalld is turned off
netstat shows nothing for /var/run/ospd/ospd*.sock indicating it’s not running.
Yet the ospd service shows as running:
sudo systemctl status ospd-openvas
ospd-openvas.service - Job that runs the ospd-openvas daemon
Loaded: loaded (/usr/lib/systemd/system/ospd-openvas.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-04-07 11:55:24 EDT; 37min ago
Is there anywhere to enable verbose logging to find out why the ospd service is not listening for connections?
I’m guessing it’s something to do with gvmd.log referencing both:
No idea why it’s referencing both but the actual socket is: /var/run/ospd/ospd-openvas.sock
I added OPTIONS="–scanner-host=/var/run/ospd/ospd-openvas.sock" to the /etc/sysconfig/gvmd file but it’s the same problem.