Centos 7 yum install netdata but no config files

Environment

Problem/Question

centos 7 yum install netdata but no config files?

What I expected to happen

yum install netdata -y

systemctl start netdata

error message:

journalctl -xe|less

Feb 08 10:48:07 1.hdp.dc.xyz systemd[1]: Starting Real time performance monitoring...
-- Subject: Unit netdata.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netdata.service has begun starting up.
Feb 08 10:48:07 1.hdp.dc.xyz systemd[1]: Started Real time performance monitoring.
-- Subject: Unit netdata.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netdata.service has finished starting up.
-- 
-- The start-up result is done.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: CONFIG: cannot load user config '/etc/netdata/netdata.conf'. Will try the stock version.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : CONFIG: cannot load user config '/etc/netdata/netdata.conf'. Will try the stock version.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : CONFIG: cannot load stock config '/usr/lib64/netdata/conf.d/netdata.conf'. Running with internal defaults.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata FATAL : netdata : Cannot cd to directory '/etc/netdata' # : No such file or directory
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : EXIT: netdata prepares to exit with code 1...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : EXIT: cleaning up the database...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: CONFIG: cannot load stock config '/usr/lib64/netdata/conf.d/netdata.conf'. Running with internal defaults.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : Cleaning up database [0 hosts(s)]...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : EXIT: removing netdata PID file '/var/run/netdata/netdata.pid'...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata ERROR : MAIN : EXIT: cannot unlink pidfile '/var/run/netdata/netdata.pid'. (errno 2, No such file or directory)
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: 2021-02-08 10:48:07: netdata INFO  : MAIN : EXIT: all done - netdata is now exiting - bye bye...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: Cannot cd to directory '/etc/netdata'
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: EXIT: netdata prepares to exit with code 1...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: EXIT: cleaning up the database...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: Cleaning up database [0 hosts(s)]...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: EXIT: removing netdata PID file '/var/run/netdata/netdata.pid'...
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: EXIT: cannot unlink pidfile '/var/run/netdata/netdata.pid'.
Feb 08 10:48:07 1.hdp.dc.xyz netdata[80874]: EXIT: all done - netdata is now exiting - bye bye...
Feb 08 10:48:07 1.hdp.dc.xyz systemd[1]: netdata.service: main process exited, code=exited, status=1/FAILURE
Feb 08 10:48:07 1.hdp.dc.xyz systemd[1]: Unit netdata.service entered failed state.
Feb 08 10:48:07 1.hdp.dc.xyz systemd[1]: netdata.service failed.

Hi @1114

What repository did you use? netdata/netdata repository on packagecloud?

Thank you for your reply.
The latest problem is the following BUG.
OS: CentOS7
When can I get the release 1.29.0 form epel ?
BUG:
https://bugzilla.redhat.com/show_bug.cgi?id=1918443#c7

What repository did you use? Latest netdata rpm packages

I don’t understand exactly why ‘EPEL’ are re-packaging netdata rpm as it exists on packagecloud.io. Moreover with bugs.

1 Like

I think that the netdata Agent in the EPEL repository is actively maintained by @didier, so he might be able to help in understanding the root cause here!

@pdgaaa the way it works is that we publish our packages at packagcloud, but since we are an open-source project, there are a number of great people who actively maintain the Netdata Agent in the package managers of various Linux distributions. Although we have no power over those Netdata Agents, we are extremely humbled by the dedication of the community and we respect every decision that they take (for example some maintainers have opted to restrict Netdata Cloud support for a number of technical reasons).

You can install any package in testing repo if you enabled it in command line
yum install netdata --enablerepo=epel-testing

1 Like

@1114
Did you have any of netdata package (from any repository: epel or packagecloud, or even compiled by yourself) before install ?
In epel repo netdata is splitted in netdata, netdata-conf and netdata-data packages and netdata package (arch dependent) requires the two others noarch packages.
Please before trying to fix it, can you write here the log of yum install (remake the command if you loose it)

@didier
Thanks for your replay.
It is installed netdata v1.29.2 by epel-testing repo.
It is ok now.

You’re welcome :slightly_smiling_face: