Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714344 - net-analyzer/netdata-1.20.0 fails to start after installation - wrong owner of /var/lib/netdata/registry/
Summary: net-analyzer/netdata-1.20.0 fails to start after installation - wrong owner o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-24 17:41 UTC by Adam Purkrt
Modified: 2020-03-25 01:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Purkrt 2020-03-24 17:41:48 UTC
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.
Comment 1 Craig Andrews gentoo-dev 2020-03-25 01:10:06 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2020-03-25 01:10:33 UTC
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(-)