Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netdata fails to start after update #6754

Closed
nrauso opened this issue Jun 26, 2023 · 4 comments
Closed

Netdata fails to start after update #6754

nrauso opened this issue Jun 26, 2023 · 4 comments
Labels
bug A defect of the software verified All test cases were verified successfully

Comments

@nrauso
Copy link

nrauso commented Jun 26, 2023

After the last updates netdata doesn't start correctly generating this error:

Jun 26 12:50:43 test.nethe.eu systemd[1]: Starting Real time performance monitoring...
Jun 26 12:50:43 test.nethe.eu systemd[1]: Started Real time performance monitoring.
Jun 26 12:50:43 test.nethe.eu netdata[13786]: CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
Jun 26 12:50:43 test.nethe.eu netdata[13786]: 2023-06-26 12:50:43: netdata INFO  : MAIN : CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running wit
Jun 26 12:50:43 test.nethe.eu netdata[13786]: Cannot change directory to '/etc/netdata/conf.d'
Jun 26 12:50:43 test.nethe.eu netdata[13786]: 2023-06-26 12:50:43: netdata FATAL : netdata : Cannot change directory to '/etc/netdata/conf.d' # : No such file or directory
Jun 26 12:50:43 test.nethe.eu netdata[13786]: /usr/sbin/netdata(+0x9f2dc)[0x55f722ebc2dc]
Jun 26 12:50:43 test.nethe.eu netdata[13786]: /usr/sbin/netdata(+0x63d5c)[0x55f722e80d5c]
Jun 26 12:50:43 test.nethe.eu netdata[13786]: /usr/sbin/netdata(+0x66566)[0x55f722e83566]
Jun 26 12:50:43 test.nethe.eu netdata[13786]: /usr/sbin/netdata(+0x5108b)[0x55f722e6e08b]
Jun 26 12:50:43 test.nethe.eu netdata[13786]: /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc3ea9b8555]
Jun 26 12:50:43 test.nethe.eu netdata[13786]: /usr/sbin/netdata(+0x551d7)[0x55f722e721d7]
Jun 26 12:50:43 test.nethe.eu netdata[13786]: 2023-06-26 12:50:43: netdata INFO  : MAIN : NETDATA SHUTDOWN: initializing shutdown with code 1...

This happens probably because of changes in the plugins paths - from /etc/netdata/conf.d to /usr/lib/netdata/conf.d - introduced by last updates.
We override the content of /etc/netdata/netdata.conf file with a template, forcing the path /etc/netdata/conf.d, we should update it.

Steps to reproduce

  • On a fresh installed NethServer, update netdata packages:
    yum -y update \*netdata\*
  • Signal the netdata update event:
    signal-event nethserver-netdata-update

Expected behavior

The module should start correctly.

Actual behavior

Module restart keeps failing because of the path /etc/netdata/conf.d does not exist anymore.

Components

netdata-1.39.1-1.el7.x86_64
netdata-conf-1.39.1-1.el7.noarch
netdata-data-1.39.1-1.el7.noarch
nethserver-netdata-2.0.2-1.ns7.noarch
@filippocarletti
Copy link
Member

Temporary fix:

sed -i -e '/stock config directory/ s;/etc/netdata/conf.d;/usr/lib/netdata/conf.d;' /etc/netdata/netdata.conf ||:
sed -i -e '/stock health configuration directory/ s;/etc/netdata/conf.d/health.d;/usr/lib/netdata/conf.d/health.d;' /etc/netdata/netdata.conf ||:

DavidePrincipi pushed a commit to NethServer/nethserver-netdata that referenced this issue Jun 26, 2023
@nethbot
Copy link
Member

nethbot commented Jun 26, 2023

in 7.9.2009/testing:

@DavidePrincipi DavidePrincipi added the testing Packages are available from testing repositories label Jun 26, 2023
@nrauso
Copy link
Author

nrauso commented Jun 26, 2023

Tested: verified

@nrauso nrauso added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Jun 26, 2023
@nrauso nrauso removed their assignment Jun 26, 2023
@nethbot
Copy link
Member

nethbot commented Jun 26, 2023

in 7.9.2009/updates:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect of the software verified All test cases were verified successfully
Projects
None yet
Development

No branches or pull requests

4 participants