Page 1 of 3

Netdata does not work

Posted: Sun Apr 05, 2020 3:05 am
by tec13
I have installed netdata today but it doesn't work.
My Dietpi version is 6.28
The netdata service is inactive and I cannot start it

root@DietPi:~# dietpi-services status netdata
DietPi-Services
─────────────────────────────────────────────────────
Mode: status netdata
[ INFO ] DietPi-Services | netdata inactive (dead)

root@DietPi:~# dietpi-services start netdata
DietPi-Services
─────────────────────────────────────────────────────
Mode: start netdata
[ OK ] DietPi-Services | start : netdata

root@DietPi:~# dietpi-services status netdata
DietPi-Services
─────────────────────────────────────────────────────
Mode: status netdata
[ INFO ] DietPi-Services | netdata inactive (dead


I have checked that the /etc/netdata/netdata.conf directory does not exist

Is there any incompatibility with other software that prevents netdata from working?
I also have "rpimonitor" installed and it works
Thanks in advance.

Re: Netdata does not work

Posted: Sun Apr 05, 2020 1:40 pm
by Joulinar
Hi,

pls can you post following

Code: Select all

journalctl -u netdata.service

Re: Netdata does not work

Posted: Sun Apr 05, 2020 7:24 pm
by tec13
Hi,

root@DietPi:~# journalctl -u netdata.service
-- No entries --
root@DietPi:~#


Thanks

Re: Netdata does not work

Posted: Sun Apr 05, 2020 8:10 pm
by Joulinar
hmm ok.

pls can you restart netdata service as follow

Code: Select all

systemctl restart netdata.service
and have a look to the netdata logs afterwards. They are located on /var/log/netdata. Maybe the error.log contains some useful information.

Re: Netdata does not work

Posted: Sun Apr 05, 2020 8:40 pm
by tec13
Thanks!

root@DietPi:~# systemctl restart netdata.service
root@DietPi:~# dietpi-services status netdata

DietPi-Services
─────────────────────────────────────────────────────
Mode: status netdata

[ INFO ] DietPi-Services | netdata inactive (dead)
root@DietPi:~# journalctl -u netdata.service
-- No entries --
root@DietPi:~#

root@DietPi:~# cd /var/log
root@DietPi:/var/log# cd netdata
-bash: cd: netdata: No such file or directory
root@DietPi:/var/log# cat netdata
cat: netdata: No such file or directory
root@DietPi:/var/log#

Re: Netdata does not work

Posted: Sun Apr 05, 2020 9:25 pm
by Joulinar
strange, something seams to be wrong with your installation. At least the netdata log folder should exist because without, netdata is not able to start. pla can you try to start netdata manually

Code: Select all

/usr/sbin/netdata -D

Re: Netdata does not work

Posted: Sun Apr 05, 2020 9:56 pm
by tec13
Thanks

root@DietPi:/usr/sbin# netdata -D
-bash: netdata: command not found
root@DietPi:/usr/sbin# ls n*
netfilter-persistent newusers nfnl_osf nologin
root@DietPi:/usr/sbin#


I tried yesterday to install, uninstall, install

Re: Netdata does not work

Posted: Sun Apr 05, 2020 10:17 pm
by Joulinar
you are missing the netdata executable. Pls can you try to reinstall

Code: Select all

dietpi-software reinstall 65

Re: Netdata does not work

Posted: Sun Apr 05, 2020 11:04 pm
by tec13
Thanks!

Mode: Installing Netdata: real-time performance monitoring

...

[ OK ] DietPi-Software | wget https://dietpi.com/downloads/binaries/stretch/ne tdata_armv7l.7z -O 65.7z
[ OK ] DietPi-Software | 7zr x -y 65.7z
[ OK ] DietPi-Software | rm 65.7z
dpkg: unrecoverable fatal error, aborting:

unknown user 'netdata' in statoverride file
...

Re: Netdata does not work

Posted: Mon Apr 06, 2020 12:31 am
by Joulinar
ah ok you are still on debian stretch. Looks like uninstall - reinstall caused some inconsistency on your system. pls can you do the following

Code: Select all

sed -i '/netdata/d' /var/lib/dpkg/statoverride
dietpi-software reinstall 65
once done pls create the following 2 files and copy the content from attached zip file

Code: Select all

nano /etc/netdata/netdata.conf
nano /etc/netdata/edit-config
netdata.zip
(1.45 KiB) Downloaded 30 times

once done restart netdata and check status

Code: Select all

systemctl restart netdata.service
systemctl status netdata.service