View Issue Details

IDProjectCategoryView StatusLast Update
0008395Kali LinuxKali Package Bugpublic2025-07-14 09:37
Reporterwarnaud Assigned Tosbrun  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2023.2 
Fixed in Version2023.3 
Summary0008395: update openvas services packages leads to gvmd not starting
Description

Hi,
Yesterday https://bugs.kali.org/view.php?id=8387 was resolved, I then tried it on my test server at home.
I did a simple apt update then apt upgrade, saw the package update and updated it. To be sure all is working well I rebooted the machine.
After some minutes I tried to log on the web interface. Nothing was working - connection refused.
Went to the console:
systemctl status gvmd:
ystemctl status gvmd
● gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)
Loaded: loaded (/lib/systemd/system/gvmd.service; enabled; preset: disabled)
Active: activating (start) since Fri 2023-07-21 07:03:56 CEST; 1min 13s ago
Docs: man:gvmd(8)
Process: 1157 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 9315)
Memory: 20.0K
CPU: 50ms
CGroup: /system.slice/gvmd.service

Jul 21 07:03:56 kali systemd[1]: Starting gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)...
Jul 21 07:03:56 kali systemd[1]: gvmd.service: Can't open PID file /run/gvmd/gvmd.pid (yet?) after start: No such file or directory

I already saw this issue. I went to the openvas forum and yes in November 2022: https://forum.greenbone.net/t/gmvd-service-not-starting-after-kali-update/13474

I tried as mentionned to add --foreground to the commandline (and did a systemctl daemon-reload) but then:
systemctl status gvmd
× gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)
Loaded: loaded (/lib/systemd/system/gvmd.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Fri 2023-07-21 07:11:38 CEST; 10s ago
Docs: man:gvmd(8)
Process: 1355 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm --foreground (code=exited, status=1/FAILURE)
CPU: 37ms

Jul 21 07:11:38 kali systemd[1]: gvmd.service: Scheduled restart job, restart counter is at 5.
Jul 21 07:11:38 kali systemd[1]: Stopped gvmd.service - Greenbone Vulnerability Manager daemon (gvmd).
Jul 21 07:11:38 kali systemd[1]: gvmd.service: Start request repeated too quickly.
Jul 21 07:11:38 kali systemd[1]: gvmd.service: Failed with result 'exit-code'.
Jul 21 07:11:38 kali systemd[1]: Failed to start gvmd.service - Greenbone Vulnerability Manager daemon (gvmd).

Steps To Reproduce

apt update && apt upgrade
or specifically upgrade openvas packages

Activities

warnaud

warnaud

2023-07-21 05:27

reporter   ~0018245

Sorry I forgot, I did a snapshot of our production server (running kali 2023.2 like my test one), tried the update, same result

sbrun

sbrun

2023-07-21 08:46

manager   ~0018246

Upstream updated the database.
If gvm was already installed, you will have to migrate the database with the command:
sudo runuser -u _gvm -- gvmd --migrate

(gvm-check-setup would have identified the problem)

warnaud

warnaud

2023-07-21 09:14

reporter   ~0018248

Hi sbrun, I also did that but still no web interface (rebooted in between)

warnaud

warnaud

2023-07-21 09:16

reporter   ~0018249

sudo runuser -u _gvm -- gvmd --migrate

systemctl daemon-reload && systemctl restart gvmd.service gsad.service

systemctl status gvmd
● gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)
Loaded: loaded (/lib/systemd/system/gvmd.service; enabled; preset: disabled)
Active: active (running) since Fri 2023-07-21 11:15:26 CEST; 5s ago
Docs: man:gvmd(8)
Process: 4221 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm (code=exited, status=0/SUCCESS)
Main PID: 4225 (gvmd)
Tasks: 1 (limit: 9315)
Memory: 180.2M
CPU: 1.722s
CGroup: /system.slice/gvmd.service
└─4225 "gvmd: gvmd: Wa" --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm

Jul 21 11:15:23 kali systemd[1]: Starting gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)...
Jul 21 11:15:23 kali systemd[1]: gvmd.service: Can't open PID file /run/gvmd/gvmd.pid (yet?) after start: No such file or directory
Jul 21 11:15:26 kali systemd[1]: Started gvmd.service - Greenbone Vulnerability Manager daemon (gvmd).

warnaud

warnaud

2023-07-21 10:44

reporter   ~0018253

In case this helps:

gvm-check-setup

gvm-check-setup 22.5.0
Test completeness and readiness of GVM-22.5.0
Step 1: Checking OpenVAS (Scanner)...
OK: OpenVAS Scanner is present in version 22.7.3.
OK: Notus Scanner is present in version 22.5.0.
OK: Server CA Certificate is present as /var/lib/gvm/CA/servercert.pem.
Checking permissions of /var/lib/openvas/gnupg/*
OK: _gvm owns all files in /var/lib/openvas/gnupg
OK: redis-server is present.
OK: scanner (db_address setting) is configured properly using the redis-server socket: /var/run/redis-openvas/redis-server.sock
OK: the mqtt_server_uri is defined in /etc/openvas/openvas.conf
OK: _gvm owns all files in /var/lib/openvas/plugins
OK: NVT collection in /var/lib/openvas/plugins contains 85973 NVTs.
OK: The notus directory /var/lib/notus/products contains 434 NVTs.
Checking that the obsolete redis database has been removed
OK: No old Redis DB
OK: ospd-openvas service is active.
OK: ospd-OpenVAS is present in version 22.5.3.
Step 2: Checking GVMD Manager ...
OK: GVM Manager (gvmd) is present in version 22.5.5.
Step 3: Checking Certificates ...
OK: GVM client certificate is valid and present as /var/lib/gvm/CA/clientcert.pem.
OK: Your GVM certificate infrastructure passed validation.
Step 4: Checking data ...
OK: SCAP data found in /var/lib/gvm/scap-data.
OK: CERT data found in /var/lib/gvm/cert-data.
Step 5: Checking Postgresql DB and user ...
OK: Postgresql version and default port are OK.
gvmd | _gvm | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc |
16435|pg-gvm|10|2200|f|22.5||
OK: At least one user exists.
Step 6: Checking Greenbone Security Assistant (GSA) ...
OK: Greenbone Security Assistant is present in version 22.05.1~git.
Step 7: Checking if GVM services are up and running ...
OK: gvmd service is active.
OK: gsad service is active.
Step 8: Checking few other requirements...
OK: nmap is present.
OK: ssh-keygen found, LSC credential generation for GNU/Linux targets is likely to work.
OK: nsis found, LSC credential package generation for Microsoft Windows targets is likely to work.
OK: xsltproc found.
WARNING: Your password policy is empty.
SUGGEST: Edit the /etc/gvm/pwpolicy.conf file to set a password policy.
Step 9: Checking greenbone-security-assistant...
OK: greenbone-security-assistant is installed

It seems like your GVM-22.5.0 installation is OK.

warnaud

warnaud

2023-07-26 12:57

reporter   ~0018258

Update:

  • gvmd is working fine, I still have fun .pid logs

    systemctl status gvmd

    ● gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)
    Loaded: loaded (/lib/systemd/system/gvmd.service; enabled; preset: disabled)
    Active: active (running) since Wed 2023-07-26 14:52:51 CEST; 3min 58s ago
    Docs: man:gvmd(8)
    Process: 1241 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm (code=exited, status=0/SUCCESS)
    Main PID: 1242 (gvmd)
    Tasks: 1 (limit: 9315)
    Memory: 178.1M
    CPU: 5.736s
    CGroup: /system.slice/gvmd.service
    └─1242 "gvmd: gvmd: Wa" --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm

Jul 26 14:52:47 kali systemd[1]: Starting gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)...
Jul 26 14:52:47 kali systemd[1]: gvmd.service: Can't open PID file /run/gvmd/gvmd.pid (yet?) after start: No such file or directory
Jul 26 14:52:51 kali systemd[1]: Started gvmd.service - Greenbone Vulnerability Manager daemon (gvmd).

Greenbone assistant is working fine once I realised the /lib/systemd/system/greenbone-security-assistant.service was overwritten :-)

Issue History

Date Modified Username Field Change
2023-07-21 05:25 warnaud New Issue
2023-07-21 05:27 warnaud Note Added: 0018245
2023-07-21 08:46 sbrun Note Added: 0018246
2023-07-21 08:46 sbrun Assigned To => sbrun
2023-07-21 08:46 sbrun Status new => assigned
2023-07-21 09:14 warnaud Note Added: 0018248
2023-07-21 09:16 warnaud Note Added: 0018249
2023-07-21 10:44 warnaud Note Added: 0018253
2023-07-26 12:57 warnaud Note Added: 0018258
2023-08-09 12:03 sbrun Status assigned => closed
2023-08-09 12:03 sbrun Resolution open => no change required
2023-08-09 12:03 sbrun Fixed in Version => 2023.3
2025-07-14 09:37 g0tmi1k Severity block => minor