# Missing /run/ospd/ospd-openvas.sock after starting system services

**URL:** <https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270>\
**Category:** Greenbone Community Edition\
**Created:** [May 26, 2022, 7:15pm UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270 "2022-05-26T19:15:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fiendish](https://forum.greenbone.net/letter_avatar/fiendish/32/6_449c533f586939b6e5f246632a46421f.png) [@Fiendish](https://forum.greenbone.net/u/Fiendish)\
**Post date:** [May 26, 2022, 7:15pm UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/1 "2022-05-26T19:15:41Z")

</div>

### GVM versions

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

### Environment

**Operating system:** Linux Ubuntu 64-bit  
**Kernel:** Linux openvas 5.4.0-110-generic #124-Ubuntu SMP Thu Apr 14 19:46:19 UTC 2022 x86\_64 x86\_64 x86\_64 GNU/Linux  
**Installation method / source:** Following [official documentation.](https://greenbone.github.io/docs/21.04/index.html#)

Hello again, I’ve come with another problem, this time at the tail end of my installation experience. I have gotten all 3 system services (gsad, gvmd, openvas-scanner) to be up and running, and am now attempting to access the program via web interface. However, when I attempt a connection to the server (ports/ip are correct), nothing returns. **I believe it is an issue with missing the socket file at /run/ospd/ospd-openvas.sock, but I am not knowledgeable enough to confirm this.**

All of the respective service files (gsad.service, gvmd.service, ospd-openvas.service) are configured how the guide directs, as seen [here.](https://greenbone.github.io/docs/21.04/index.html#starting-services-with-systemd) I really don’t know where to begin with this issue, so a bit of help or a starting point for troubleshooting would be greatly appreciated.

Let me know if there’s any further info you need. Thanks.

gsad service:

 ![image](https://forum.greenbone.net/uploads/default/original/2X/1/10a43bb7665b41cc1a87030c38596425cb979572.png)  
gvmd service:  
 ![image](https://forum.greenbone.net/uploads/default/original/2X/a/a5579f5d49eb45c2b890be3c7169b1d7d1e65b6a.png)  
ospd-openvas service:  
 ![image](https://forum.greenbone.net/uploads/default/original/2X/a/aacc8210445ee5f5b60866450a2783b7588d40cc.png)

---

<div class="post-metadata">

**Author:** ![bricks](https://forum.greenbone.net/user_avatar/forum.greenbone.net/bricks/32/46_2.png) [@bricks](https://forum.greenbone.net/u/bricks)\
**Post date:** [May 27, 2022, 6:42am UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/2 "2022-05-27T06:42:08Z")

</div>

Hi,

I am seeing two issues here. First the gvmd.service file is using the wrong (possible from and old version of our guide) `RuntimeDirectory` and/or `PIDFile` setting. It must be `RuntimeDirectory=gvmd` and `PIDFile=/run/gvmd/gvmd.pid`.

[https://greenbone.github.io/docs/latest/21.04/source-build/index.html#starting-services-with-systemd](https://greenbone.github.io/docs/latest/21.04/source-build/index.html#starting-services-with-systemd)

Second the openvas executable at `/usr/local/sbin/openvas` can’t find the `libopenvas_nasl.so.21` library which should be placed at `/usr/local/lib/libopenvas_nasl.so.21`. Please check if the library is available at this location. If not you need to rebuild and reinstall the openvas scanner ([https://greenbone.github.io/docs/latest/21.04/source-build/index.html#openvas-scanner](https://greenbone.github.io/docs/latest/21.04/source-build/index.html#openvas-scanner)). If the library is available you need to make the linker aware of it by running `sudo ldconfig`.

---

<div class="post-metadata">

**Author:** ![Fiendish](https://forum.greenbone.net/letter_avatar/fiendish/32/6_449c533f586939b6e5f246632a46421f.png) [@Fiendish](https://forum.greenbone.net/u/Fiendish)\
**Post date:** [May 27, 2022, 2:09pm UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/3 "2022-05-27T14:09:54Z")

</div>

Hello,

I checked gvmd.service, and both `RuntimeDirectory` and `PIDFile` settings are correct and set to what they should be. Secondly, the library `libopenvas_nasl.so.21` is available at `/usr/local/lib/libopenvas_nasl.so.21`, and after running `sudo ldconfig` I am now unable to get gvmd or ospd-openvas to work properly; see screenshots.

On the bright side, gsad.service seems to be unaffected and running as normal.

Any further ideas?

**gvmd.service**

 ![image](https://community.greenbone.net/uploads/default/original/2X/5/58fc84cd381a996572bbd74a6f37fa1aea3a4347.png)

**ospd-openvas.service**

 ![image](https://community.greenbone.net/uploads/default/original/2X/9/9f1c4cc37a3157378bdd0b266eb1fcf7dffb0a6e.png)

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [May 28, 2022, 10:07am UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/4 "2022-05-28T10:07:31Z")

</div>

sounds like permission problem in pid/run directories?

---

<div class="post-metadata">

**Author:** ![Fiendish](https://forum.greenbone.net/letter_avatar/fiendish/32/6_449c533f586939b6e5f246632a46421f.png) [@Fiendish](https://forum.greenbone.net/u/Fiendish)\
**Post date:** [June 1, 2022, 5:39pm UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/5 "2022-06-01T17:39:13Z")

</div>

Hi,

I am unsure how it would be a permission problem. All of the steps for gvm user went smoothly, how would I be able to check if it is a perms problem?

Thank you

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 1, 2022, 6:34pm UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/6 "2022-06-01T18:34:15Z")

</div>

@Fiendish It’s really hard to help without seeing the setup.

If you are using Debian 11 then you can use my autoinstaller script: [https://github.com/EeroV/openvas-gvm](https://github.com/EeroV/openvas-gvm)

Eero

---

<div class="post-metadata">

**Author:** ![Fiendish](https://forum.greenbone.net/letter_avatar/fiendish/32/6_449c533f586939b6e5f246632a46421f.png) [@Fiendish](https://forum.greenbone.net/u/Fiendish)\
**Post date:** [June 8, 2022, 5:48pm UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/7 "2022-06-08T17:48:30Z")

</div>

Hi,

I am attempting to use your autoinstaller script and I had a few questions about getting it configured properly. Namely, what do the ip address and domain name need to be?

Thanks

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 8, 2022, 6:22pm UTC](https://forum.greenbone.net/t/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/8 "2022-06-08T18:22:02Z")

</div>

@Fiendish  
-i ip-address of host to install gvm, with ssh root using public key auth.  
-d domain name, “host name” used with nginx proxy, if installed or with lets encrypt hostname.

Nginx settings and installation is not in the main file, but needs to be installed after gvm.

[nginx-with-ssl-certbot.yaml] installs nginx with lets encrypt ssl  
[nginx-with-ssl-files.yaml] installs nginx with your own ssl files, use [generate-ssl.sh] to create them, if you don’t have real certificates.

Eero

---

<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/missing-run-ospd-ospd-openvas-sock-after-starting-system-services/12270/9 "2025-04-07T10:14:51Z")

</div>

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


