[Bug 849436] New: logrotate syslog breaks /var/log/messages
https://bugzilla.novell.com/show_bug.cgi?id=849436 https://bugzilla.novell.com/show_bug.cgi?id=849436#c0 Summary: logrotate syslog breaks /var/log/messages Classification: openSUSE Product: openSUSE 13.1 Version: RC 2 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sweet_f_a@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 Hi As you see logrotate runs every day 17:00: $ xzcat /var/log/messages-201311*.xz | grep logrotate 2013-10-30T17:00:01.315236+01:00 tenfore run-crons[12489]: logrotate: OK 2013-10-31T17:00:01.971270+01:00 tenfore run-crons[10404]: logrotate: OK 2013-11-01T17:00:02.656443+01:00 tenfore run-crons[21323]: logrotate: OK 2013-11-02T17:00:01.317445+01:00 tenfore run-crons[7495]: logrotate: OK 2013-11-03T17:00:01.810987+01:00 tenfore run-crons[23194]: logrotate: OK 2013-11-04T17:00:02.052003+01:00 tenfore run-crons[1316]: logrotate: OK 2013-11-05T17:00:01.174979+01:00 tenfore run-crons[10312]: logrotate: OK 2013-11-06T17:00:01.746856+01:00 tenfore run-crons[15202]: logrotate: OK Today (20131107) /var/log/messages was rotated, but the new one is still empty: $ date Thu Nov 7 18:53:04 CET 2013 $ ls -l /var/log/messages-20131*.xz /var/log/messages -rw-r----- 1 root root 0 2013-11-07 17:00 /var/log/messages -rw-r----- 1 root root 424624 2013-10-06 16:59 /var/log/messages-20131006.xz -rw-r----- 1 root root 636752 2013-10-25 17:00 /var/log/messages-20131025.xz -rw-r----- 1 root root 625724 2013-11-07 17:00 /var/log/messages-20131107.xz The removed file is still open: $ lsof | grep messages rsyslogd 820 root 5w REG 253,1 7419796 131381 /var/log/messages-20131107 (deleted) rsyslogd 820 root 9w REG 253,1 2821964 153141 /var/log/localmessages rsyslogd 820 root 13w REG 253,1 2821964 153141 /var/log/localmessages in:immark 820 975 root 5w REG 253,1 7419796 131381 /var/log/messages-20131107 (deleted) in:immark 820 975 root 9w REG 253,1 2821964 153141 /var/log/localmessages in:immark 820 975 root 13w REG 253,1 2821964 153141 /var/log/localmessages in:imuxso 820 976 root 5w REG 253,1 7419796 131381 /var/log/messages-20131107 (deleted) in:imuxso 820 976 root 9w REG 253,1 2821964 153141 /var/log/localmessages in:imuxso 820 976 root 13w REG 253,1 2821964 153141 /var/log/localmessages in:imklog 820 977 root 5w REG 253,1 7419796 131381 /var/log/messages-20131107 (deleted) in:imklog 820 977 root 9w REG 253,1 2821964 153141 /var/log/localmessages in:imklog 820 977 root 13w REG 253,1 2821964 153141 /var/log/localmessages rs:main 820 978 root 5w REG 253,1 7419796 131381 /var/log/messages-20131107 (deleted) rs:main 820 978 root 9w REG 253,1 2821964 153141 /var/log/localmessages rs:main 820 978 root 13w REG 253,1 2821964 153141 /var/log/localmessages journalctl shows that syslog was not reloaded as it should. It works again after manually running $ /usr/bin/systemctl reload syslog.service > /dev/null This is what should have happened automatically accourding to /etc/logrotate.d/syslog: /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages [...] { compress dateext maxage 365 rotate 99 missingok notifempty size +4096k create 640 root root sharedscripts postrotate /usr/bin/systemctl reload syslog.service > /dev/null endscript } Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c1
--- Comment #1 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c2
--- Comment #2 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c3
--- Comment #3 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c4
--- Comment #4 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c5
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c6
--- Comment #6 from Vitezslav Cizek
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c7
--- Comment #7 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c8
--- Comment #8 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c9
--- Comment #9 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com