View Issue Details

IDProjectCategoryView StatusLast Update
0008379Kali LinuxGeneral Bugpublic2023-07-13 10:02
Reporterkeithc1971 Assigned Tosbrun  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionno change required 
Product Version2023.2 
Summary0008379: gsad service not found when running gvm-check-setup
Description

Kali Distro 2023.2 was updated to from Kali 2021 . Openvas was uninstalled\reinstalled and in process of gvm-setup postgres 13 errors came up. I went ahead and removed postgres 13 in favour of postgres 15 which running gvm-checksetup no longer flags on postgres but now states "gsad service not found". I have the following errors with gvm-setup but unsure if relates to gsad service. I have checked service which is not there
──(rootkali)-[~]
└─# sudo systemctl start gsad
Failed to start gsad.service: Unit gsad.service not found.
gsad service not found when running gvm-check-setup
┌──(rootkali)-[~]
└─# sudo cat /var/log/gvm/gsad.log
NO LOG FILE BECAUSE NO GSAD SERVICE 5 ⨯

┌──(rootkali)-[~]
└─#

I tried to add service by person in this thread

sudo gvm-setup

[>] Starting PostgreSQL service

[>] Creating GVM's certificate files

[>] Creating PostgreSQL database
could not change directory to "/root": Permission denied
[i] User _gvm already exists in PostgreSQL
could not change directory to "/root": Permission denied
[i] Database gvmd already exists in PostgreSQL
could not change directory to "/root": Permission denied
[i] Role DBA already exists in PostgreSQL

[*] Applying permissions
could not change directory to "/root": Permission denied
NOTICE: role "_gvm" is already a member of role "dba"
GRANT ROLE
could not change directory to "/root": Permission denied
[i] Extension uuid-ossp already exists for gvmd database
could not change directory to "/root": Permission denied
[i] Extension pgcrypto already exists for gvmd database
could not change directory to "/root": Permission denied
[i] Extension pg-gvm already exists for gvmd database
[>] Migrating database

Additional Information

I also tried to modify file below to the following which has had no effect

Please follow the instructions marked with FIX above and run this
script again.

─# cat /usr/lib/systemd/system/greenbone-security-assistant.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
ExecStart=/usr/sbin/gsad --foreground --listen 127.0.0.1 --port 9392
Restart=always
TimeoutStopSec=10

[Install]
WantedBy=multi-user.target
Alias=gsad.service

Activities

keithc1971

keithc1971

2023-07-07 17:43

reporter   ~0018229

Resolved by doing the following. Can close this out as I am new to the board here and do not see a way that I can close out my own submissions

For me, it seems like the issue was caused by the symlink.

ls -alh /usr/lib/systemd/system/greenbone-security-assistant.service /usr/lib/systemd/system/gsad.service

Showed that the former was a symlink to the latter.

So I did:

rm /usr/lib/systemd/system/greenbone-security-assistant.service # Remove the symlink
mv /usr/lib/systemd/system/gsad.service /usr/lib/systemd/system/greenbone-security-assistant.service
And edited /usr/lib/systemd/system/greenbone-security-assistant.service's last line to
Alias=gsad.service.

And obligatory systemctl daemon-reload

Issue History

Date Modified Username Field Change
2023-07-07 15:45 keithc1971 New Issue
2023-07-07 17:43 keithc1971 Note Added: 0018229
2023-07-13 10:02 sbrun Assigned To => sbrun
2023-07-13 10:02 sbrun Status new => closed
2023-07-13 10:02 sbrun Resolution open => no change required