[opensuse-bugs] [Bug 1179292] New: libzypp does not clean temporary files
http://bugzilla.opensuse.org/show_bug.cgi?id=1179292 Bug ID: 1179292 Summary: libzypp does not clean temporary files Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@suse.de Reporter: jdelvare@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Every time libzypp is used, a temporary directory is created under /var/tmp. These temporary directories are never cleaned. As updates are being checked every hour, this grows fast: khali@gelydh:/var/tmp> ls -1d /var/tmp/zypp.* | wc -l 2654 This is wasting precious space on my root partition. Please fix libzypp (or applications calling it, maybe) so that temporary directories are deleted as soon as they are no longer needed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1179292 http://bugzilla.opensuse.org/show_bug.cgi?id=1179292#c1 --- Comment #1 from Michael Andres <ma@suse.com> --- Well, those directories are usually cleanded unless the application crashes. Even aborting zypper by pressign CTRL-C multiple times should not leave a temp directory there. Kown exception is currently PackageKit due to bug#1169739. They kill the backend in a way that backend/libzypp can not cleanup the directories anymore. You can run 'ls -ldtr /var/tmp/zypp.*' to find some of the newest directories, then search for a directory name in the appliacation logfiles: 'grep -l /var/tmp/zypp.<THE_HASH> /var/log/zypper.log /var/log/pk_backend_zypp /var/log/YaST2/y2log'. If we find that PK was not able to reliably fix bug#1169739 we can try to work around this inside libzypp, but actually we would like to avoid to clean files dand tmpdirs blonging to a different process. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1179292 http://bugzilla.opensuse.org/show_bug.cgi?id=1179292#c2 --- Comment #2 from Jean Delvare <jdelvare@suse.com> --- I checked on my laptop. The last stray /var/tmp/zypp.XXXXXX directory is from November 13th, which is the day I upgraded the distribution from SLED 15 SP1 to SP2. I see in the PackageKit-backend-zypp changelog that bug 1169739 is indeed fixed there. So SLE 15 SP2 is good. I checked on my desktop, which is running Leap 15.1. The last stray /var/tmp/zypp.XXXXXX directory is from this morning. There's a reference to it in /var/log/pk_backend_zypp as you suspected. Looking at the PackageKit-backend-zypp changelog, I see no mention of bug 1169739 being fixed. The first changelog entry is from September 2019. Bug 1169739 was originally reported on SLES 15 SP1, so it should get fixed there as well. I'll check the tumbleweed system when I gain read access to the system log files. However, considering that there's a new directory /var/tmp/zypp.XXXXXX created every hour, and the PackageKit-backend-zypp changelog does not mention bug 1169739, that would be my prime suspect too. So apparently the bug fix was not pushed to Tumbleweed either. I think I'll reopen the bug and ask for it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1179292 http://bugzilla.opensuse.org/show_bug.cgi?id=1179292#c3 --- Comment #3 from Jean Delvare <jdelvare@suse.com> --- I confirm this is the same on Tumbleweed. The last 5 /var/tmp/zypp.XXXXXX directories are referenced in /var/log/pk_backend_zypp*. Older ones are not, simply because PackageKit-backend-zypp logs so much that messages are cycled out after only 6 hours. Which is pretty bad too, I don't think it should be that verbose by default, but that's a different issue. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1179292 http://bugzilla.opensuse.org/show_bug.cgi?id=1179292#c4 --- Comment #4 from Michael Andres <ma@suse.com> --- @Jean do we still need this one? Otherwise I'd close it as duplicate of bug 1169739. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1179292 http://bugzilla.opensuse.org/show_bug.cgi?id=1179292#c5 Jean Delvare <jdelvare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #5 from Jean Delvare <jdelvare@suse.com> --- Yes, I agree this can be closed as duplicate, thanks. *** This bug has been marked as a duplicate of bug 1169739 *** -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com