Bug 404715

Summary: zypper.log is huge (9.5 GB)
Product: [openSUSE] openSUSE 11.0 Reporter: Thomas Margraf <tommy.m>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: dmacvicar, ma, Markus.Elfring, tommy.m
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: solver test case
result from the command "zypper list-updates --type package"

Description Thomas Margraf 2008-06-27 20:55:10 UTC
-rw-r----- 1 root root 4.9G 2008-06-27 20:34 zypper.log
-rw-r----- 1 root root 265K 2008-05-16 22:01 zypper.log-20080516.bz2
-rw-r----- 1 root root 2.8M 2008-06-08 19:50 zypper.log-20080608.bz2
-rw-r----- 1 root root  12M 2008-06-15 10:10 zypper.log-20080612.bz2
-rw-r----- 1 root root 602K 2008-06-17 19:54 zypper.log-20080617.bz2
-rw-r----- 1 root root 377K 2008-06-23 19:50 zypper.log-20080623.bz2
-rw-r----- 1 root root 9.5G 2008-06-24 22:47 zypper.log-20080624
-rw-r----- 1 root root  13M 2008-06-27 21:59 zypper.log-20080624.bz2
-rw-r----- 1 root root  28M 2008-06-27 18:17 zypp-refresh.log

(from /var/log)

Several gigabytes of logfiles seems a bit excessive. The logs actually filled up the partition and caused an update to fail.

If you tell me what to look for, i'll post the relevant bits. Posting the whole file is obviously a bit difficult.
I had a look at the first few k of the file, and it seems to be overly verbose, but I didn't notice anything obviously broken (like repeated lines for example).

My recommended solution would be to disable logging alltogether in final releases, or at least severely reduce the verbosity of zypper.
Comment 1 Jan Kupec 2008-06-29 08:23:05 UTC
Wow, can you please take a look at the big log, to check if there are some repetitive patterns (like hundreds of pages of the same line or so). You're really the first to report such problem, i wonder what's the cause.
Comment 2 Duncan Mac-Vicar 2008-07-20 16:39:43 UTC
*** Bug 410627 has been marked as a duplicate of this bug. ***
Comment 3 Jan Kupec 2008-07-21 13:12:36 UTC
ping
Comment 4 Markus Elfring 2008-07-21 18:19:19 UTC
Created attachment 229155 [details]
solver test case
Comment 5 Markus Elfring 2008-07-21 18:33:13 UTC
Created attachment 229156 [details]
result from the command "zypper list-updates --type package"

This text table indicates update candidates that are problematic in various degrees on my openSUSE 11.0 system.
- Bug #403308: Perl software components will not be installed in parallel so far.
- Bug #404770: Conflict and dependency resolution might take too long.
Comment 6 Jan Kupec 2008-07-22 10:57:33 UTC
Markus, are you sure you wanted to attach this stuff to this particular bug? I don't see how it is related.
Comment 7 Markus Elfring 2008-07-22 11:23:06 UTC
I see the possibility to reproduce log file "explosion" from update candidates in my example.

I do not know if Thomas Margraf's installation is similarly affected.
Comment 8 Michael Andres 2008-07-22 16:28:47 UTC
I suppose most of the log lines are sent by the satsolver in case of dependency problems. They usually look like:

    [satsolver] PoolImpl.cc(logSat):72 decisions done reduced from 66 to 1
    [satsolver] PoolImpl.cc(logSat):72 decisions so far: 40
    [satsolver] PoolImpl.cc(logSat):72 decisions done reduced from 40 to 1
    [satsolver] PoolImpl.cc(logSat):72 decisions so far: 41
    [satsolver] PoolImpl.cc(logSat):72 initial decisions: 41
    ...

This is already fixed for libzypp-5.2 (factory/11-1).
Comment 9 Markus Elfring 2008-07-22 19:24:10 UTC
How was this kind of repetition found?
Was it detected during the analysis for a different bug report?
Comment 10 Michael Andres 2008-08-07 10:34:04 UTC
No report. Updating my private installation I experienced a 1GB log within 
20 minutes. So we fixed it in SVN (factory/11-1).


Now also fixed in libzypp-4.27.1 and submitted to autobuild for 11.0.

Comment 11 Anja Stock 2008-08-12 12:27:18 UTC
released