GVM_22.4.0 gsad.service can't start

Hello,
I installed GVM 22.4.0 on Ubuntu 22.04 following the instructions below: https://www.libellux.com/openvas/
Unfortunately, the gsad.service cannot be started.

sudo systemctl status gsad.service
ā— gsad.service - Greenbone Security Assistant daemon (gsad)
     Loaded: loaded (/etc/systemd/system/gsad.service; enabled; vendor preset: enabled)
     Active: activating (start) since Fri 2023-06-23 13:33:09 CEST; 826ms ago
       Docs: man:gsad(8)
             https://www.greenbone.net
    Process: 10952 ExecStart=/usr/local/sbin/gsad --port=9392 (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 18959)
     Memory: 1.6M
        CPU: 17ms
     CGroup: /system.slice/gsad.service
             ā””ā”€10953 /usr/local/sbin/gsad --port=9392

Jun 23 13:33:09 UD2204 systemd[1]: Starting Greenbone Security Assistant daemon (gsad)...
Jun 23 13:33:09 UD2204 gsad[10952]: Oops, secure memory pool already initialized
Jun 23 13:33:09 UD2204 systemd[1]: gsad.service: Can't open PID file /run/gsad/gsad.pid (yet?) after start: Operation not permitted
cat gsad.service
[Unit]
Description=Greenbone Security Assistant daemon (gsad)
Documentation=man:gsad(8) https://www.greenbone.net
After=network.target gvmd.service
Wants=gvmd.service
[Service]
Type=forking
User=gvm
Group=gvm
RuntimeDirectory=gsad
RuntimeDirectoryMode=2775
PIDFile=/run/gsad/gsad.pid
ExecStart=/usr/local/sbin/gsad --port=9392
Restart=always
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target
Alias=greenbone-security-assistant.service

The directory /run/gsad is empty. The file gsad.pid is probably only created when the service is started.
Does anyone have any tips on how to proceed here?
Thanks ottto

Just an idea for the future, Greenbone provides its own source build instructions.

2 Likes