Can't uninstall Netdata

Hi all! I have a question about Netdata. I installed Netdata on my server that I manage through Runcloud a while ago by following this guide: https://runcloud.io/blog/how-to-monitor-ram-and-cpu-usage

Now I want to remove Netdata from my server. I have little experience with executing commands via SSH.

I used the command below to uninstall Netdata ( https://learn.netdata.cloud/…/uninstall-netdata-agents). But the strange thing is that I still see new activity through the Netdata dashboard. As if Netdata is still connecting to the server.


Command to remove Netdata:

wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall


When I search for files named Netdata via a command I still get a whole list. When I use the command again to remove Netdata I get the following message.Does anyone know what could be causing this?
— Using /tmp/netdata-kickstart-EoB5sOMQf2 as a temporary directory. —

— Checking for existing installations of Netdata… —

[/tmp/netdata-kickstart-EoB5sOMQf2]# test -x /usr/libexec/netdata/netdata-uninstaller.sh

FAILED

— Downloading netdata-uninstaller … —

[/tmp/netdata-kickstart-EoB5sOMQf2]# /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-EoB5sOMQf2/netdata-uninstaller.sh https://raw.githubusercontent.com/…/netdata-uninstaller.sh

OK

[/tmp/netdata-kickstart-EoB5sOMQf2]# /tmp/netdata-kickstart-EoB5sOMQf2/netdata-uninstaller.sh --yes

/tmp/netdata-kickstart-EoB5sOMQf2/netdata-uninstaller.sh: 720: .: cannot open /etc/netdata/.environment: No such file

Wed Sep 18 10:50:38 AM UTC 2024 : FATAL: netdata-uninstaller.sh: FAILED TO UNINSTALL NETDATA: Failed to completely remove Netdata from this system.

FAILED

WARNING Uninstaller failed. Some parts of Netdata may still be present on the system.

Finished uninstalling the Netdata Agent.The following non-fatal warnings or errors were encountered:

  • Command “test -x /usr/libexec/netdata/netdata-uninstaller.sh” failed with exit code 1.

  • Command “/tmp/netdata-kickstart-EoB5sOMQf2/netdata-uninstaller.sh --yes” failed with exit code 1.

  • Uninstaller failed. Some parts of Netdata may still be present on the system.

I too had faced this very issue when i had tried to uninstall netdata on my host since i had to use it through docker. Seems like there’s some problem with the uninstall script not doing the adequate cleanup