Closed IanTrudel closed 1 year ago
Since I was fixing #16119 I did install/uninstall several times - only partially confirm the OP issue.
the service is not stopped and disabled
Can't reproduce. There is stop_all_netdata() in the script.
/usr/lib/systemd/system-preset/50-netdata.preset
Confirm.
some kickstarter temp files
Confirm. There is netdata-kickstart-XXX
dir with install-type
file
This is my uninstaller logs (removed rm -rf /opt/netdata
verbose output):
After --uninstall
$ systemctl status netdata
Warning: The unit file, source configuration file or drop-ins of netdata.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● netdata.service - Real time performance monitoring
Loaded: loaded (/lib/systemd/system/netdata.service; bad; vendor preset: enabled)
Active: inactive (dead) since Fri 2023-10-06 19:09:13 EEST; 2min 55s ago
Process: 31111 ExecStartPre=/bin/mkdir -p /opt/netdata/var/cache/netdata (code=exited, status=0/SUCCESS)
Process: 31112 ExecStartPre=/bin/chown -R netdata /opt/netdata/var/cache/netdata (code=exited, status=0/SUCCESS)
Process: 31113 ExecStartPre=/bin/mkdir -p /run/netdata (code=exited, status=0/SUCCESS)
Process: 31114 ExecStartPre=/bin/chown -R netdata /run/netdata (code=exited, status=0/SUCCESS)
Process: 31115 ExecStart=/opt/netdata/usr/sbin/netdata -P /run/netdata/netdata.pid -D (code=exited, status=0/SUCCESS)
Main PID: 31115 (code=exited, status=0/SUCCESS)
$ sudo systemctl daemon-reload
$ systemctl status netdata
Unit netdata.service could not be found.
@ilyam8 How do you access the uninstaller log?
Just copied the script output (terminal)
Thanks for reporting, @IanTrudel 👍
Bug description
The uninstaller now works (see #16119) but the service is not stopped and disabled before removing the files causing the service still being active. Furthermore,
/usr/lib/systemd/system-preset/50-netdata.preset
and some kickstarter temp files are not deleted.Expected behavior
A shiny kitchen sink.
Steps to reproduce
curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall
systemctl status netdata
find /usr/lib/systemd -iname "*netdata*"
find /tmp -iname "*kickstart*"
Installation method
kickstart.sh
System info
Netdata build info
Additional info
No response