Netdata does not work

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.

Hi,

pls can you post following

journalctl -u netdata.service

Hi,

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


Thanks

hmm ok.

pls can you restart netdata service as follow

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.

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#

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

/usr/sbin/netdata -D

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

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

dietpi-software reinstall 65

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

ah ok you are still on debian stretch. Looks like uninstall - reinstall caused some inconsistency on your system. pls can you do the following

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

nano /etc/netdata/netdata.conf
nano /etc/netdata/edit-config

netdata.zip (1.45 KB)
once done restart netdata and check status

systemctl restart netdata.service
systemctl status netdata.service

42/5000
Thanks, it almost works!
I have this error:

Apr 06 13:18:10 DietPi netdata[1168]: 2020-04-06 13:18:10: netdata ERROR : MAIN
: child pid 1181 exited with code 7.

\

root@DietPi:~# systemctl status netdata.service
● netdata.service - netdata - Real-time performance monitoring
Loaded: loaded (/lib/systemd/system/netdata.service; disabled; vendor preset:
enabled)
Active: active (running) since Mon 2020-04-06 13:18:10 CEST; 1min
34s ago
Docs: man:netdata
file:///usr/share/doc/netdata/html/index.html
https://github.com/netdata/netdata
Main PID: 1168 (netdata)
Tasks: 17 (limit: 4915)
CGroup: /system.slice/netdata.service
├─1168 /usr/sbin/netdata -D
├─1226 bash /usr/lib/netdata/plugins.d/tc-qos-helper.sh 1
└─1231 /usr/lib/netdata/plugins.d/apps.plugin 1

Apr 06 13:18:10 DietPi systemd[1]: Started netdata - Real-time performance monit
oring.
Apr 06 13:18:10 DietPi netdata[1168]: /usr/lib/netdata/plugins.d/anonymous-stati
stics.sh ‘START’ ‘-’ ‘-’
Apr 06 13:18:10 DietPi netdata[1168]: 2020-04-06 13:18:10: netdata INFO : MAIN
: /usr/lib/netdata/plugins.d/anonymous-statistics.sh ‘START’ ‘-’ ‘-’
Apr 06 13:18:10 DietPi netdata[1168]: child pid 1181 exited with code 7.

Apr 06 13:18:10 DietPi netdata[1168]: 2020-04-06 13:18:10: netdata ERROR : MAIN
: child pid 1181 exited with code 7.
root@DietPi:~#

yes I have seen it as well on my test system but did not find a way around yet. Did it impact your system? are you able to access Netdata?

Great, it works !!! :smiley:
Thanks!

I had to edit the file /etc/netdata/netdata.conf and change the line bind socket to IP = 127.0.0.1 to match the local network IP

1 Like

hm strange, because the netdata.conf file was the original one that was created right after first installation. But anyway it’s working now.

I also had some issues this evening.
Seems the executable wasn’t installed until i re-installed as per posts on page 1 and then I did not get working net data until I followed tec13 and changed the bind address to local server ip.

I guess you are on Debian Stretch as well. On Buster this should not happen. At least that how it was on my tests

I’m on DietPi

:sunglasses: weil DietPi is not an own OS. It is a set of script on top of a Debian base image. For example on Raspberry Pi the base image is Raspbian Lite. For other boards it’s Armbian. Stretch and Baster are the Debian versions. Where Buster is the current version and Stretch the one before.

ok, I kinda knew that DietPi was a version of Debian. Anyway, mine was downloaded a week ago - the version for Odroid HC1

Can you let me know the image you downloaded exactly? The current official one is based on Debian Stretch but there was already a new Debian Buster image created. It still has the testing flag but should work already. On Buster the issue should be gone.

https://github.com/MichaIng/DietPi/issues/2979

https://dietpi.com/downloads/testing/DietPi_OdroidXU4-ARMv7-Buster.7z