[Bug 487613] New: zypp-refresh.log grows without bounds
https://bugzilla.novell.com/show_bug.cgi?id=487613 Summary: zypp-refresh.log grows without bounds Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: meissner@novell.com QAContact: qa@suse.de Found By: Customer /var/log/zypp-refresh.log grows without bounds and being rotated. ls -la zypp-refresh.log -rw-r----- 1 root root 37105638 21. Mär 23:05 zypp-refresh.log and the first entry is: 2009-01-11 21:32:51 <1> galeere(14753) [zypp] ZYppFactory.cc(zyppLocked):269 no lockfile /var/run/zypp.pid found it should have rotated the logfile, e.g. via logrotate snippet. -- 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=487613 User rodney.baker@iinet.net.au added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c1 --- Comment #1 from Rodney Baker <rodney.baker@iinet.net.au> 2009-03-22 14:43:53 MST --- Created an attachment (id=281087) --> (https://bugzilla.novell.com/attachment.cgi?id=281087) Proposed patch for /etc/logrotate.d/zypper.lr The attached additions to /etc/logrotate.d/zypper.lr should ensure that the logfile gets rotated along with /var/log/zypper.log (credit to David Rankin drankinatty@suddenlinkmail.com for this). -- 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=487613 User infonovell@barrowhillfarm.org.uk added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c2 Robert Williams <infonovell@barrowhillfarm.org.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |infonovell@barrowhillfarm.o | |rg.uk --- Comment #2 from Robert Williams <infonovell@barrowhillfarm.org.uk> 2009-03-24 05:07:24 MST --- This bug also affects openSUSE 11.1 -- 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=487613 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c3 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |NEEDINFO CC| |jkupec@novell.com Info Provider| |infonovell@barrowhillfarm.o | |rg.uk AssignedTo|zypp-maintainers@forge.prov |jkupec@novell.com |o.novell.com | --- Comment #3 from Ján Kupec <jkupec@novell.com> 2009-03-30 03:43:17 MDT --- No wonder it does not work in 11.0 (zypp-refresh.lr was not there yet), but in 11.1 there is /etc/logrotate.d/zypp-refresh.lr with content as suggested by the patch in c#11. Robert, are you sure it does not work in 11.1? -- 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=487613 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c5 --- Comment #5 from Ján Kupec <jkupec@novell.com> 2009-03-30 04:06:28 MDT --- Robert: certainly works for me. Maybe you do not run logrotate from cron or something? $ ll -h /var/log/zypp-refresh.log -rw-r----- 1 root root 12M Mar 30 11:55 /var/log/zypp-refresh.log $ /etc/cron.daily/logrotate $ ll -h /var/log/zypp-refresh.log ls: cannot access /var/log/zypp-refresh.log: No such file or directory $ ll /var/log/zypp-refresh.log-20090330.bz2 -rw-r----- 1 root root 277413 Mar 30 12:03 /var/log/zypp-refresh.log-20090330.bz2 -- 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=487613 User infonovell@barrowhillfarm.org.uk added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c6 --- Comment #6 from Robert Williams <infonovell@barrowhillfarm.org.uk> 2009-03-31 03:40:40 MDT --- We're now entering unknown waters, for me. Is running logrotate something the user should setup, or should it be setup automatically when the system is installed? I can't find anything to suggest it's scheduled in root's entry in KCron. #ll -h /var/log/zypp-refresh.log -rw-r----- 1 root root 2.1M Jan 7 20:14 /var/log/zypp-refresh.log #/etc/cron.daily/logrotate error: zypper.lr:13 duplicate log entry for /var/log/zypp-refresh.log error: found error in /var/log/zypp-refresh.log , skipping Before I read the thread on the opensuse mailing list, my zypp-refresh.log had grown to 9.2GB, leaving /var/log 'out of space'. Since applying David Rankin's fix, it has remained at 2.1MB. However, the lines I've pasted above seem to suggest the file is corrupted in some way. -- 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=487613 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c7 --- Comment #7 from Ján Kupec <jkupec@novell.com> 2009-03-31 04:38:49 MDT --- Thanx for the info, it's beginning to make sense. (In reply to comment #6)
We're now entering unknown waters, for me. Is running logrotate something the user should setup, or should it be setup automatically when the system is installed? I can't find anything to suggest it's scheduled in root's entry in KCron.
No, it should be set up automatically. You seem to have it in place (the script in cron.daily dir).
#ll -h /var/log/zypp-refresh.log -rw-r----- 1 root root 2.1M Jan 7 20:14 /var/log/zypp-refresh.log #/etc/cron.daily/logrotate error: zypper.lr:13 duplicate log entry for /var/log/zypp-refresh.log error: found error in /var/log/zypp-refresh.log , skipping
This indicates that since applying David's fix you have two logrotate entries for zypp-refresh.log, thus _now_ is the log allowed to grow indefinitely.
Before I read the thread on the opensuse mailing list, my zypp-refresh.log had grown to 9.2GB, leaving /var/log 'out of space'.
The size suggests that there was some kind of erroneous massive logging, i suspect bug 469872 (fixed, an update for 11.1 is pending). So the file has grown up in very short time, well before cron could execute logrotate.
Since applying David Rankin's fix, it has remained at 2.1MB. However, the lines I've pasted above seem to suggest the file is corrupted in some way.
This is the only thing thing that still puzzles me :O) I guess you removed the huge file manually and the log did not grow too much since then? -- 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=487613 User infonovell@barrowhillfarm.org.uk added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c8 --- Comment #8 from Robert Williams <infonovell@barrowhillfarm.org.uk> 2009-03-31 04:46:52 MDT --- Yes, I removed the huge file manually. Since then, it seems to stay constant at 2.1M. I shall now remove the Rankin fix, as it's duplicated. Many thanks. -- 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=487613 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=487613#c9 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|infonovell@barrowhillfarm.o | |rg.uk | Resolution| |WONTFIX --- Comment #9 from Ján Kupec <jkupec@novell.com> 2009-03-31 05:19:00 MDT --- OK, thanx. Note that until you apply the fix of bug 469872, which is yet to be released, the log can eventually grow again (it happens on network timeouts). As for this bug report, it is fixed in 11.1, and i suggest to leave it unfixed for 11.0. As this is reported for 11.0, closing as WONTFIX. -- 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.
participants (1)
-
bugzilla_noreply@novell.com