clr-bundles icon indicating copy to clipboard operation
clr-bundles copied to clipboard

Netdata doesn't start after install

Open rnd42 opened this issue 3 years ago • 1 comments

I installed the netdata bundle and found that I had to do a lot of work to get it to actually work.

  • I had to create the netdata (system) group and user

    • note for later that the user UID and GID is 999
      uid=999(netdata) gid=999(netdata) groups=999(netdata)
      
  • I had to create the following directories owned by netdata:netdata

    • /etc/netdata
    • /var/cache/netdata
    • /var/lib/netdata (I set this to the home directory of the netdata user.
    • /var/log/netdata
  • I had to change ownership of everything in /usr/share/netdata to netdata:netdata

    • On this one I realize that's not great security for a webserver to serve files it can write to, but I was seeing the following log entry:
      /var/log/netdata/error.log:2021-11-14 14:00:03: netdata ERROR : WEB_SERVER[static2] : 2: File '/usr/share/netdata/web/index.html' is owned by user 0 (expected user 999). Access Denied. (errno 11, Resource temporarily unavailable)
      

rnd42 avatar Nov 14 '21 21:11 rnd42

Update complete - System already up-to-date at version 35860

Same issue..

Still couldn't get it to work after editing netdata.conf

After two hours of fighting..

systemctl stop netdata; swupd bundle-remove netdata; rm -rf /etc/netdata /var/cache/netdata /var/lib/netdata /var/log/netdata

curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh

  • now working..

bcookatpcsd avatar Feb 14 '22 05:02 bcookatpcsd