View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007617 | Kali Linux | [All Projects] Kali Package Bug | public | 2022-03-11 23:52 | 2022-04-01 14:07 |
Reporter | altjx | Assigned To | sbrun | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2022.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0007617: 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: - https://github.com/greenbone/gsa/issues/3368 - https://community.greenbone.net/t/greenbone-security-assistant-service-missing/11623 | ||||
|
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 ``` |
|
Indeed, it seems that the service file disappeared in Kali rolling.### 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 Let me ping the right person. Thanks for reporting this issue. |
|
No problem - thank you as well! |
|
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. |
|
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. |
|
How do I upgrade gsad to version 21.4.4-0kali3? |
|
Ah, nevermind. Seems to be updated now, but just simply won't start anymore. Very weird. |
|
It's weird since I didn't change anything else. Let me check if I can reproduce this. |
|
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. |
|
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. |
|
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. |
|
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. |
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 |