Failed to start Open Vulnerability Assessment System Manager Daemon and Greenbone Security Assistant

Hello,

i had install the GVM-20.08 with this Manual https://pentestit.de/gvm-20-08-auf-ubuntu-server-20-04-installieren/ now i have the Problem, that the Services gvmd and gsad not start.
Here are the Logs:

root@WS-OpenVAS:/etc/openvas# systemctl status gsad
* gsad.service - Greenbone Security Assistant (gsad)
     Loaded: loaded (/etc/systemd/system/gsad.service; enabled; vendor preset: enabled)
     Active: activating (start) since Wed 2021-08-11 08:51:06 CEST; 14s ago
       Docs: man:gsad(8)
             https://www.greenbone.net
    Process: 37680 ExecStart=/opt/gvm/sbin/gsad --drop-privileges=gvm (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 19142)
     Memory: 24.0K
     CGroup: /system.slice/gsad.service

Aug 11 08:51:06 WS-OpenVAS systemd[1]: Starting Greenbone Security Assistant (gsad)...
Aug 11 08:51:06 WS-OpenVAS systemd[1]: gsad.service: Can't open PID file /opt/gvm/var/run/gsad.pid (yet?) after start: Operation not permitted

root@WS-OpenVAS:/etc/openvas# systemctl status gvmd
* gvmd.service - Open Vulnerability Assessment System Manager Daemon
     Loaded: loaded (/etc/systemd/system/gvmd.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Wed 2021-08-11 08:50:32 CEST; 1min 22s ago
       Docs: man:gvmd(8)
             https://www.greenbone.net
    Process: 37666 ExecStart=/opt/gvm/sbin/gvmd --osp-vt-update=/opt/gvm/var/run/ospd.sock (code=exited, status=1/FAILURE)
      Tasks: 2 (limit: 19142)
     Memory: 97.7M
     CGroup: /system.slice/gvmd.service
             |-35731 gvmd: Waiting for incoming connections
             `-35756 gpg-agent --homedir /var/lib/gvm/gvmd/gnupg --use-standard-socket --daemon

GVM versions

gsad: Greenbone Security Assistant 20.8.4~dev1 (‘gsad --version’) Greenbone Security Assistant 20.8.4~dev1
gvmd: Greenbone Vulnerability Manager 20.08.4~git-0df97cc4-gvmd-20.08 (‘gvmd --version’)
openvas-scanner: OpenVAS 20.8.4 (‘openvas --version’, in older GVM versions < 11: ‘openvassd --version’)
gvm-libs: 20.08

Environment

Operating system:
Kernel: Linux WS-OpenVAS 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux (‘uname -a’)
Installation method / source:

The permissions for /opt/gvm/var/run are not correct. That has nothing to do with GVM itself.

Please use the official build from source guide instead: https://greenbone.github.io/docs/

1 Like

Hello bricks,

thanks for your reply.

here are the Permission from run

root@WS-OpenVAS:/opt/gvm/var# ls -l
total 8
drwxrwxr-x 3 gvm gvm 4096 Aug 11 08:16 log
drwxrwxr-x 3 gvm gvm 4096 Aug 11 09:06 run

root@WS-OpenVAS:/opt/gvm/var/run# ls -l
total 8
drwxrwxr-x 2 gvm gvm 4096 Aug 11 08:21 ospd
-rwxr-xr-x 1 gvm gvm    5 Aug 11 08:21 ospd-openvas.pid
srwxrwx--- 1 gvm gvm    0 Aug 11 08:21 ospd.sock

I am not going to debug permission issues in this forum. Either you can wait for someone else or

1 Like