Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597382 - net-analyzer/netdata-1.4.0 - FATAL: netdata: Cannot create unique machine id file '/var/lib/netdata/registry/netdata.public.unique.id'. Please fix this. # : Permission denied
Summary: net-analyzer/netdata-1.4.0 - FATAL: netdata: Cannot create unique machine id ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-17 18:29 UTC by Kalin KOZHUHAROV
Modified: 2016-11-05 14:27 UTC (History)
2 users (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 Kalin KOZHUHAROV 2016-10-17 18:29:53 UTC
I recently started using net-analyzer/netdata-1.4.0, but it took me some time to figure how to start it.

On a fresh install this is what gets in the error.log:

16-10-18 03:00:13: INFO: netdata: NetData started on pid 10204
16-10-18 03:00:13: FATAL: netdata: Cannot create unique machine id file '/var/lib/netdata/registry/netdata.public.unique.id'. Please fix this. # : Permission denied

16-10-18 03:00:13: INFO: netdata: Called: netdata_cleanup_and_exit()

Apparently, wrong permissions:

# ls -lasd /var/lib/netdata/registry/
4 drwxr-xr-x 2 root root 4096 Oct 18 02:59 /var/lib/netdata/registry/

A quick dab at the ebuild couldn't find a good solution :-|


BTW, when I manually ran `sudo chown netdata:netdata /var/lib/netdata -R` all was fine. 

Additionally the following QA notice appears:
* QA Notice: Unrecognized configure options:
 * 
 * 	--enable-sse
 * 	--enable-sse
 * QA Notice: This ebuild installs into paths that should be created at runtime.
 *  To fix, simply do not install into these directories.  Instead, your package
 *  should create dirs on the fly at runtime as needed via init scripts/etc...
 * 
 *   var/cache
 *   var/cache/netdata
 *   var/cache/netdata/.keep
Comment 1 Craig Andrews gentoo-dev 2016-11-03 21:26:59 UTC
Thanks for the information!

I've submitted a PR at https://github.com/gentoo/gentoo/pull/2733 which I believe addresses all your issues except for the /var/cache QA noticed because that one requires work by upstream, see https://github.com/firehol/netdata/issues/1204