After installation, netdata service fails to start. Reproducible: Always Steps to Reproduce: 1. emerge net-analyzer/netdata 2. /etc/init.d/netdata start 3. "/etc/init.d/netdata status" says "status: crashed" Actual Results: the daemon does not start Expected Results: the daemon should start /var/log/netdata/error.log: 2020-03-24 18:33:42: netdata FATAL : MAIN :Cannot create unique machine id file '/var/lib/netdata/registry/netdata.public.unique.id'. Please fix this. # : Permission denied gentoo ~ # ls -ld /var/lib/netdata/ drwxr-xr-x 3 netdata netdata 58 Mar 24 18:25 /var/lib/netdata/ gentoo ~ # ls -ld /var/lib/netdata/registry/ drwxr-xr-x 2 root root 42 Mar 24 18:25 /var/lib/netdata/registry/ Simple "chown netdata:netdata /var/lib/netdata/registry" fixes this issue.
I believe the change I'm about to push as -1.20.0-r1 will fix this issue - please let me know if it doesn't.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdd225e161a823e68267fed01bec95710578f57e commit bdd225e161a823e68267fed01bec95710578f57e Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2020-03-25 01:09:48 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2020-03-25 01:10:26 +0000 net-analyzer/netdata: keepdir then chown Ensures that file permissions are correct on the registry directory Closes: https://bugs.gentoo.org/714344 Package-Manager: Portage-2.3.95, Repoman-2.3.21 Signed-off-by: Craig Andrews <candrews@gentoo.org> net-analyzer/netdata/netdata-1.20.0-r1.ebuild | 139 ++++++++++++++++++++++++++ net-analyzer/netdata/netdata-9999.ebuild | 2 +- 2 files changed, 140 insertions(+), 1 deletion(-)