I tried installing the agent on my client’s Linux Ubuntu 20.04 LTS server using wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh. The process never completed and I need to terminate the process using control + c.
I have since tried re-installing the agent using wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --reinstall-clean. The process starts, but it jams up during the reinstallation process. I have to force quit it using control + c.
I have also tried uninstalling Netdata using the uninstall script, but the following errors are displayed:
FATAL: netdata-uninstaller.sh: FAILED TO UNINSTALL NETDATA: Failed to completely remove Netdata from this system. FAILED
Command “sudo /tmp/netdata-kickstart-Mh6ltrS8oT/netdata-uninstaller.sh --yes” failed with exit code 1
When I navigate to the /etc/netdata directory, only the netdata-updater.conf netdata.conf files are in the directory.
There is no .environment file in the /etc/netdata directory.
I completed the purge and removed all of the those directories plus /opt/netdata manually.
After that, I ran wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --claim-token UVjjkf10xi0DLoI74_8PqRvHoyi27rKS0ERdfgVf0NRhf-9S0cvi1aDF34hcyxwaPxyZWr2iz-dZkZR40zZg_P9_inVO0_0BjcvCXY1GtwKypcrGVIjqmcgj3qVrb0Xu_1t2g2Q --claim-rooms b8955d1b-94f6-4ddd-b042-b576dcd609d8 --claim-url https://app.netdata.cloud.
The installation process completed, but with errors. I have included them below.
dpkg: unrecoverable fatal error, aborting: unknown system user 'netdata' in statoverride file; the system user got removed before the override, which is most probably a packaging bug, to recover you can remove the override manually with dpkg-statoverride E: Sub-process /usr/bin/dpkg returned an error code (2)
Failed to install repository configuration package.
Could not install native binary packages, falling back to alternative installation method.
Failed to start netdata.service: Unit netdata.service is masked.
Netdata service still not started, attempting another forced restart by running '/opt/netdata/bin/netdata '
sudo systemctl status netdata netdata.service Loaded: masked (Reason: Unit netdata.service is masked.) Active: inactive (dead)
I have removed the netdata related stuff from that file and tried a fresh installation. Again it has failed, and the installer seems to hang during the process. This sometimes happens when I am updating packages on the server. I usually use control + c to cancel the updates and try again. A second attempt usually works without issues.
Does this mean something is buggered up on the server? I know this is outside of the scope of Netdata, but any suggestions are greatly appreciated.
When I run the command sudo apt update on the server, the process begins and the percentage meter starts to rise, but then stops. Most times I have to force quit the process by using Control + C. Other times, it eventually continues and finds the updates.
I have done some reading and I am wondering if the repositories used on the server are not functioning correctly. All of my other servers that are similarly setup do not experience these issues.
I know this is out of scope for Netdata support, but any tips are greatly appreciated.