# SOLVED: Guidance troubleshooting from log files. ospd service running but not accepting connections

**URL:** <https://forum.greenbone.net/t/solved-guidance-troubleshooting-from-log-files-ospd-service-running-but-not-accepting-connections/11900>\
**Category:** Greenbone Community Edition\
**Created:** [April 7, 2022, 4:37pm UTC](https://forum.greenbone.net/t/solved-guidance-troubleshooting-from-log-files-ospd-service-running-but-not-accepting-connections/11900 "2022-04-07T16:37:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greendog](https://forum.greenbone.net/letter_avatar/greendog/32/6_449c533f586939b6e5f246632a46421f.png) [@greendog](https://forum.greenbone.net/u/greendog)\
**Post date:** [April 7, 2022, 4:37pm UTC](https://forum.greenbone.net/t/solved-guidance-troubleshooting-from-log-files-ospd-service-running-but-not-accepting-connections/11900/1 "2022-04-07T16:37:28Z")

</div>

This thread can be closed. The solution was to edit the two services to point to /var/run/ospd/ospd.sock

### GVM versions

**gsad:** 21.4.4  
**gvmd:** 21.4.5  
**openvas-scanner:** OpenVAS 21.4.4  
**gvm-libs:** 21.4.4

### Environment

**Operating system:** rocky-release-8.5-3.el8  
**Kernel:** 4.18.0-348.20.1.el8\_5.x86\_64  
**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:

**ospd-scanner.log**  
_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)

**gvmd.log**  
_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_

**openvas.log**  
_libgvm util:MESSAGE:2022-04-07 15h31.27 utc:1987: Updated NVT cache from version 0 to 202204061004_

**gsad.log**  
_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:

1. /var/run/ospd/ospd-openvas.sock  
and
2. /var/run/ospd/ospd.sock

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.

---

<div class="post-metadata">

**Author:** ![greendog](https://forum.greenbone.net/letter_avatar/greendog/32/6_449c533f586939b6e5f246632a46421f.png) [@greendog](https://forum.greenbone.net/u/greendog)\
**Post date:** [April 7, 2022, 6:33pm UTC](https://forum.greenbone.net/t/solved-guidance-troubleshooting-from-log-files-ospd-service-running-but-not-accepting-connections/11900/2 "2022-04-07T18:33:06Z")

</div>

Got this working.

Edit the two services to point to /var/run/ospd/ospd.sock

**/user/lib/systemd/system/gvmd.service**

_#ExecStart=/usr/sbin/gvmd --osp-vt-update=/var/run/ospd/ospd-openvas.sock $OPTIONS_  
_ExecStart=/usr/sbin/gvmd --osp-vt-update= **/var/run/ospd/ospd.sock** $OPTIONS_

**/user/lib/systemd/system/ospd-openvas.service**

_#PIDFile=/var/run/ospd/ospd-openvas.pid_  
_PIDFile=/var/run/ospd/ospd.pid_  
_#ExecStart=/opt/atomicorp/bin/ospd-openvas --pid-file /var/run/ospd/ospd-openvas.pid --unix-socket=/var/run/ospd/ospd-openvas.sock --log-file /var/log/gvm/ospd-scanner.log --lock-file-dir /var/run/gvm/_  
_ExecStart=/opt/atomicorp/bin/ospd-openvas --pid-file **/var/run/ospd/ospd.pid** --unix-socket= **/var/run/ospd/ospd.sock** --log-file /var/log/gvm/ospd-scanner.log --lock-file-dir /var/run/gvm/_

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [April 12, 2022, 1:26pm UTC](https://forum.greenbone.net/t/solved-guidance-troubleshooting-from-log-files-ospd-service-running-but-not-accepting-connections/11900/3 "2022-04-12T13:26:18Z")

</div>

Normally it shouldn’t be required to update any `.services` files, especially if the installation is coming from a package based repository.

If there are problems with these specific packages from atomic it is suggested to raise an issue at [Issues · Atomicorp/gvm · GitHub](https://github.com/atomicorp/gvm/issues)

As an alternative the socket location `gvmd` is looking for can be updated like described in the documentation available [here](https://github.com/greenbone/gvmd/blob/v21.4.5/INSTALL.md#configure-the-default-ospd-scanner-socket-path).

---

<div class="post-metadata">

**Author:** ![greendog](https://forum.greenbone.net/letter_avatar/greendog/32/6_449c533f586939b6e5f246632a46421f.png) [@greendog](https://forum.greenbone.net/u/greendog)\
**Post date:** [April 12, 2022, 1:37pm UTC](https://forum.greenbone.net/t/solved-guidance-troubleshooting-from-log-files-ospd-service-running-but-not-accepting-connections/11900/4 "2022-04-12T13:37:43Z")

</div>

Thanks for that info. It looks like someone has already raised this as a bug with Atomic

> <https://github.com/Atomicorp/gvm/issues/57>
>
> ospd-openvas is trying to write to /var/run/gvm which has changed to /var/run/gv…md and gvmd can't find the ospd-openvas socket - had to add its path in /etc/sysconfig/gvmd

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:14am UTC](https://forum.greenbone.net/t/solved-guidance-troubleshooting-from-log-files-ospd-service-running-but-not-accepting-connections/11900/5 "2025-04-07T10:14:22Z")

</div>

Closed on April 7, 2025, 10:14am UTC


