View Issue Details

IDProjectCategoryView StatusLast Update
0007617Kali LinuxKali Package Bugpublic2022-04-01 14:07
Reporteraltjx Assigned Tosbrun  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2022.1 
Summary0007617: Greenbone-security-assistance no longer working
Description

After the latest Kali update, I'm noticing that greenbone-security-assistant service can no longer be found. Running the latest version of Kali (2022.1). I pull down the latest docker container quite often and have never noticed this until most recently.

Steps To Reproduce
  1. Install OpenVAS via "apt install openvas"
  2. Use systemctl to check the status of the greenbone-security-assistant.
  3. The following results will occur:

└─# systemctl status greenbone-security-assistant
ERROR:systemctl:Unit greenbone-security-assistant.service could not be found.

Additional Information

Additional references:

Activities

altjx

altjx

2022-03-13 00:29

reporter   ~0015873

I was able to get this resolved by re-creating the service file (which is missing) here: /usr/lib/systemd/system/greenbone-security-assistant.service

[Unit]
Description=Greenbone Security Assistant (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 --listen=127.0.0.1 --port=9392
Restart=always
TimeoutStopSec=10

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

arnaudr

2022-03-14 02:19

manager   ~0015880

Indeed, it seems that the service file disappeared in Kali rolling.

<pre>

Kali 2022.1

$ chdist apt kali-last-snapshot show greenbone-security-assistant | grep ^Version
Version: 21.4.3-1

$ chdist apt-file kali-last-snapshot search greenbone-security-assistant
greenbone-security-assistant: /etc/logrotate.d/greenbone-security-assistant
greenbone-security-assistant: /lib/systemd/system/greenbone-security-assistant.service
greenbone-security-assistant: /usr/share/doc/greenbone-security-assistant/README.md
greenbone-security-assistant: /usr/share/doc/greenbone-security-assistant/changelog.Debian.gz
greenbone-security-assistant: /usr/share/doc/greenbone-security-assistant/changelog.gz
greenbone-security-assistant: /usr/share/doc/greenbone-security-assistant/copyright
greenbone-security-assistant-common: /usr/share/doc/greenbone-security-assistant-common/changelog.Debian.gz
greenbone-security-assistant-common: /usr/share/doc/greenbone-security-assistant-common/changelog.gz
greenbone-security-assistant-common: /usr/share/doc/greenbone-security-assistant-common/copyright

Kali Rolling

$ chdist apt kali-rolling show greenbone-security-assistant | grep ^Version
Version: 21.4.4-0kali1

$ chdist apt-file kali-rolling search greenbone-security-assistant
greenbone-security-assistant: /usr/share/doc/greenbone-security-assistant/changelog.Debian.gz
greenbone-security-assistant: /usr/share/doc/greenbone-security-assistant/changelog.gz
greenbone-security-assistant: /usr/share/doc/greenbone-security-assistant/copyright
greenbone-security-assistant-common: /usr/share/doc/greenbone-security-assistant-common/changelog.Debian.gz
greenbone-security-assistant-common: /usr/share/doc/greenbone-security-assistant-common/changelog.gz
greenbone-security-assistant-common: /usr/share/doc/greenbone-security-assistant-common/copyright
</pre>

Let me ping the right person. Thanks for reporting this issue.

altjx

altjx

2022-03-14 03:29

reporter   ~0015883

No problem - thank you as well!

sbrun

sbrun

2022-03-14 09:42

manager   ~0015886

Yes the name of the service has changed from greenbone-security-assistant to gsad.
I thought it will be transparent for users because the alias greenbone-security-assistant is defined in the gsad service.
I wil check how I can fix that.

sbrun

sbrun

2022-03-14 14:47

manager   ~0015887

It's fixed with gsad version 21.4.4-0kali3.
I think you will have to remove the file you created /lib/systemd/system/greenbone-security-assistant.service.

FTR: the alias in the service file creates a symlink only if the service is "enabled". That's why we had the issue.

altjx

altjx

2022-03-14 23:15

reporter   ~0015889

How do I upgrade gsad to version 21.4.4-0kali3?

altjx

altjx

2022-03-14 23:15

reporter   ~0015890

Ah, nevermind. Seems to be updated now, but just simply won't start anymore. Very weird.

sbrun

sbrun

2022-03-15 09:30

manager   ~0015892

It's weird since I didn't change anything else. Let me check if I can reproduce this.

sbrun

sbrun

2022-03-15 13:31

manager   ~0015894

Can check if your system is up to date?
I have issues with greenbone-security-assistant.service only if I have old versions of ospd-openvas and gvmd.
You need to have gvmd >= 21.4.5 and ospd-openvas >= 21.4.4

To avoid the issue with wrong version of gvmd and ospd-openvas, I will re-upload gvmd and gsad with strong requirements on dependencies version.

altjx

altjx

2022-03-15 13:34

reporter   ~0015895

Thanks @sbrun. After using gsad instead of greenbone-security-assistant, I did run into the issue of the gsad service not starting, but I'm not sure if this is tied to the recent changes. I opened up a forum post about this (https://community.greenbone.net/t/gsad-start-http-daemon-redirect-failed/11645) and we were able to get this resolved by appending --no-redirect in the gsad service file. I'm not sure if that alternative workaround is required in the latest version of Kali, but I'll test this today and keep you posted.

Thanks for the quick replies and support on this.

sintro

sintro

2022-03-22 04:12

reporter   ~0015925

Those who are having trouble starting the gsad.service after upgrading to 21.4.4-0kali4.
I suggest doing the following:

Remove the gsad service (removes other dependencies too)

sudo apt-get remove gsad

Remove the old service file if it still exists

rm /lib/systemd/system/greenbone-security-assistant.service

Reinstall Openvas

sudo apt-get install openvas

Setup openvas

sudo gvm-setup

Check the setup

sudo gvm-check-setup

(Optional Reconfiguration) If you need to allow access via external interface
Update the file /lib/systemd/system/gsad.service replace 127.0.01 with 0.0.0.0 or another IP.

systemctl stop gsad
systemctl daemon-reload
system start gsad

Everything should be back to normal now.

sintro

sintro

2022-03-22 04:21

reporter   ~0015926

Missed the first step and made some typos in the above post and I couldn't delete it. Here it is again:
Those who are having trouble starting the gsad.service after upgrading to 21.4.4-0kali4.
I suggest doing the following:

1) Remove old uneeded packages

sudo apt autoremove

2) Remove the gsad service (removes other dependencies too)

sudo apt remove gsad

3) Remove the old service file if it still exists

rm /lib/systemd/system/greenbone-security-assistant.service

4) Reinstall Openvas

sudo apt install openvas

5) Setup openvas

sudo gvm-setup

6) Check the setup

sudo gvm-check-setup

7) (Optional Reconfiguration) If you need to allow access via external interface
Update the file /lib/systemd/system/gsad.service replace 127.0.01 with 0.0.0.0 or another IP.

systemctl stop gsad
systemctl daemon-reload
system start gsad

Everything should be back to normal now.

Issue History

Date Modified Username Field Change
2022-03-11 23:52 altjx New Issue
2022-03-13 00:29 altjx Note Added: 0015873
2022-03-14 02:19 arnaudr Note Added: 0015880
2022-03-14 02:19 arnaudr Assigned To => sbrun
2022-03-14 02:19 arnaudr Status new => assigned
2022-03-14 03:29 altjx Note Added: 0015883
2022-03-14 09:42 sbrun Note Added: 0015886
2022-03-14 14:47 sbrun Note Added: 0015887
2022-03-14 23:15 altjx Note Added: 0015889
2022-03-14 23:15 altjx Note Added: 0015890
2022-03-15 09:30 sbrun Note Added: 0015892
2022-03-15 13:31 sbrun Note Added: 0015894
2022-03-15 13:34 altjx Note Added: 0015895
2022-03-22 04:12 sintro Note Added: 0015925
2022-03-22 04:21 sintro Note Added: 0015926
2022-04-01 14:07 sbrun Status assigned => resolved
2022-04-01 14:07 sbrun Resolution open => fixed