Hi guys,
I always have issues with updating NetData on one of my instances and while I manage to update this time, but the version didn’t update in the cloud dashboard. Then I did a system reboot and now it’s offline.
When I did a service status it says
● netdata.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
But it also said this both before the update and the reboot. While the at the cloud dashboard everything was looking fine both times. The instance was monitored well.
So I thought I should just do a complete reinstall, with first cleaning everything NetData related. But it failed.
root@build:~# wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall
–2023-10-25 11:26:31-- https://my-netdata.io/kickstart.sh
Resolving my-netdata.io (my-netdata.io)… 104.21.13.159, 172.67.156.192, 2606:4700:3031::6815:d9f, …
Connecting to my-netdata.io (my-netdata.io)|104.21.13.159|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/tmp/netdata-kickstart.sh’/tmp/netdata-kickstart.sh [ <=> ] 82.99K --.-KB/s in 0.002s
2023-10-25 11:26:31 (42.9 MB/s) - ‘/tmp/netdata-kickstart.sh’ saved [84980]
— Using /tmp/netdata-kickstart-EJL3CjGIVp as a temporary directory. —
— Checking for existing installations of Netdata… —
[/tmp/netdata-kickstart-EJL3CjGIVp]# test -x /usr/local/usr/libexec/netdata/netdata-uninstaller.sh
FAILED— Downloading netdata-uninstaller … —
[/tmp/netdata-kickstart-EJL3CjGIVp]# /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-EJL3CjGIVp/netdata-uninstaller.sh https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/netdata-uninstaller.sh
OK[/tmp/netdata-kickstart-EJL3CjGIVp]# /tmp/netdata-kickstart-EJL3CjGIVp/netdata-uninstaller.sh --yes
/tmp/netdata-kickstart-EJL3CjGIVp/netdata-uninstaller.sh: 711: .: Can’t open /etc/netdata/.environmentWed Oct 25 11:26:31 CEST 2023 : FATAL: netdata-uninstaller.sh: FAILED TO UNINSTALL NETDATA: Failed to completely remove Netdata from this system.
FAILEDFinished uninstalling the Netdata Agent.The following non-fatal warnings or errors were encountered:
- Command “test -x /usr/local/usr/libexec/netdata/netdata-uninstaller.sh” failed with exit code 1.
- Command “/tmp/netdata-kickstart-EJL3CjGIVp/netdata-uninstaller.sh --yes” failed with exit code 1.
[/root]# rm -rf /tmp/netdata-kickstart-EJL3CjGIVp
OK
The installation type is:
root@build:~# netdata -W buildinfo | grep -E ‘Installation Type|Install type:’
Installation Type __________________________________________ : kickstart-static
Here are (possibly) all netdata related folders on the drive:
root@build:~# find / -d -name netdata
/usr/lib/netdata
/usr/local/bin/netdata
/etc/logrotate.d/netdata
/etc/init.d/netdata
/etc/default/netdata
/etc/netdata
/opt/netdata/usr/libexec/netdata
/opt/netdata/usr/lib/netdata/system/freebsd/rc.d/netdata
/opt/netdata/usr/lib/netdata/system/initd/init.d/netdata
/opt/netdata/usr/lib/netdata/system/lsb/init.d/netdata
/opt/netdata/usr/lib/netdata/system/openrc/init.d/netdata
/opt/netdata/usr/lib/netdata/system/openrc/conf.d/netdata
/opt/netdata/usr/lib/netdata/system/logrotate/netdata
/opt/netdata/usr/lib/netdata
/opt/netdata/usr/share/netdata
/opt/netdata/bin/srv/netdata
/opt/netdata/bin/netdata
/opt/netdata/etc/netdata
/opt/netdata/var/lib/netdata
/opt/netdata/var/cache/netdata
/opt/netdata/var/log/netdata
/opt/netdata
/var/lib/netdata
/var/cache/netdata
/var/log/netdata
Could you help me out what’s happening? Maybe there are two netdatas conflicting each other? Thanks in advance!