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 orphaned log files #10539
Comments
Hi @fayak Thank you for the report. While we investigate this could you please check that you
in the netdata's error.log file. |
There's one in every error.log file I have: grep -rni "Received SIGHUP. Reopening all log files"
error.log.9:1369:2021-01-17 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.8:1244:2021-01-18 06:25:04: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.7:4931:2021-01-19 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.6:1015:2021-01-20 06:25:04: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.5:1041:2021-01-21 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.4:756:2021-01-22 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.3:8153:2021-01-23 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.2:785:2021-01-24 06:25:02: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.14:978:2021-01-12 06:25:02: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.13:1334:2021-01-13 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.12:1261:2021-01-14 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.11:1277:2021-01-15 06:25:01: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.10:1815:2021-01-16 06:25:02: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files...
error.log.1:1117:2021-01-25 06:25:02: netdata INFO : MAIN : SIGNAL: Received SIGHUP. Reopening all log files... |
Hi! I'm trying to replicate the issue (albeit not through logrotate, but manually). By manually I mean trying to move or delete e.g. the error log, and then send a HUP kill to see if it leaves anything behind. I will try a clean install, on a Debian system with logrotate scripts and see what happens. Will let you know! |
@MrZammler Can you recheck? |
this is still an issue with netdata 1.31.0 on Debian
After sending HUP to netdata:
signal handled, but
|
@MrZammler ☝️ |
Hi @illes ! Thanks for your report... Last time didn't get far with this... Can you please share the output of Thanks! |
It has been restarted there, here's a snapshot from another 1.31.0 instance:
|
I could also reproduce this in vanilla docker as follows:
This workflow could help someone close in on the revision/commit that is causing the issue. |
Hi @illes thanks for your detailed report! Ok, so the plugins and the special-spawn-server are those that keep the files... We'll have a look how we can proceed to fix this. Thanks again! |
Fixed in the latest releases |
Bug report summary
Netdata keeps the log files opened even after log rotation, leading to lost space.
OS / Environment
Netdata version
Steps To Reproduce
I don't know for sure. Netdata has been installed with
apt
and has been running for a while. The issue has been reported on multiple servers, but not on all of them.Expected behavior
Having the log files rotated properly and deleted
Please let me know if I can be more helpful !
The text was updated successfully, but these errors were encountered: