View Issue Details

IDProjectCategoryView StatusLast Update
0007639Kali LinuxGeneral Bugpublic2022-03-28 08:50
Reporterninp0 Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versionkali-dev 
Summary0007639: gvmd Not Starting Due to Change from /run/gvm to /run/gvmd Folder
Description

Following an upgrade to gvmd 21.4.5-0kali4, the daemon refuses to start due to the following error found in /var/log/gvmd.log:

pidfile_create: failed to open pidfile: No such file or directory

It appears /run/gvm exists, however, the GVM_RUN_DIR in source code references /run/gvmd:
https://github.com/greenbone/gvmd/blob/2d66c144afe901ff14c70b8822e60229944e2155/CMakeLists.txt#L184

An initial work-around is to create a symlink of /run/gvm to /run/gvmd:
sudo ln -s /run/gvm /run/gvmd
sudo systemctl start gvmd

However, it gets tricky since /run is a tmpfs partition and loses the /run/gvmd symlink on reboot. In order to fix this, I had to change the systemctl script:

sudo systemctl edit --full gvmd

and change

<snip>
PIDFile=/run/gvm/gvmd.pid
RuntimeDirectory=gvm
</snip>

to

<snip>
PIDFile=/run/gvmd/gvmd.pid
RuntimeDirectory=gvmd
</snip>

Attached Files

Activities

daniruiz

daniruiz

2022-03-23 06:08

manager   ~0015929

Hello!
I've tried gvm 21.4.5-0kali4 in a clean Kali installation and I can't reproduce the issue. If I edit the systemd file the path seems correct, showing the PIDFile /run/gvmd/gvmd.pid

Try reinstalling the package with: sudo apt update && sudo apt reinstall -y gvmd

image.png (120,642 bytes)   
image.png (120,642 bytes)   
ninp0

ninp0

2022-03-25 22:24

reporter   ~0015954

Yep, no need - the fix I did in the original description met my needs...I simply submitted this in case anyone else out there needed to fix. Thanks @daniruiz!

Issue History

Date Modified Username Field Change
2022-03-22 16:13 ninp0 New Issue
2022-03-23 06:08 daniruiz File Added: image.png
2022-03-23 06:08 daniruiz Note Added: 0015929
2022-03-25 13:57 g0tmi1k Severity major => feature
2022-03-25 13:58 g0tmi1k Severity feature => minor
2022-03-25 22:24 ninp0 Note Added: 0015954
2022-03-28 08:50 daniruiz Assigned To => daniruiz
2022-03-28 08:50 daniruiz Status new => closed
2022-03-28 08:50 daniruiz Resolution open => fixed