Netdata does not work Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Netdata does not work

Post 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.
User avatar
Joulinar
Posts: 2285
Joined: Sat Nov 16, 2019 12:49 am

Re: Netdata does not work

Post by Joulinar »

Hi,

pls can you post following

Code: Select all

journalctl -u netdata.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: Netdata does not work

Post by tec13 »

Hi,

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


Thanks
User avatar
Joulinar
Posts: 2285
Joined: Sat Nov 16, 2019 12:49 am

Re: Netdata does not work

Post 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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: Netdata does not work

Post 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#
User avatar
Joulinar
Posts: 2285
Joined: Sat Nov 16, 2019 12:49 am

Re: Netdata does not work

Post 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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: Netdata does not work

Post 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
User avatar
Joulinar
Posts: 2285
Joined: Sat Nov 16, 2019 12:49 am

Re: Netdata does not work

Post by Joulinar »

you are missing the netdata executable. Pls can you try to reinstall

Code: Select all

dietpi-software reinstall 65
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
tec13
Posts: 13
Joined: Thu Apr 02, 2020 1:54 pm

Re: Netdata does not work

Post 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
...
Last edited by tec13 on Sun Apr 05, 2020 11:09 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 2285
Joined: Sat Nov 16, 2019 12:49 am

Re: Netdata does not work

Post 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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply