[Bug 814265] New: /tmp/systemd-private-* directories are never cleaned
https://bugzilla.novell.com/show_bug.cgi?id=814265 https://bugzilla.novell.com/show_bug.cgi?id=814265#c0 Summary: /tmp/systemd-private-* directories are never cleaned Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: erwin.vandevelde@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 In /tmp directories named systemd-private-* are created, but they are never deleted. In fact, they are specifically excluded in /usr/lib/tmpfiles.d/tmp.conf This results in an extra folder every time the system is switched on and while it does not take any place, it is annoying when you are looking for something else in /tmp. A clean way should be added to remove the unused folders here. Reproducible: Always -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c1
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c
FeiXiang Zhang
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c2
Andrea Turrini
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c3
--- Comment #3 from Frederic Crozat
Anyway, since directories are created whey services using PrivateTmp=yes are activated (in my case, I have two directories in /tmp and two in /var/tmp for each boot) and a shutdown for sure closes services using PrivateTmp=yes, I wonder why such directories (at least those not created today) can not be trashed on boot.
Because tmpfiles.d doesn't have a syntax to express that (remove something only at boot), unfortunately. -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c4
Marc Schütz
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c5
--- Comment #5 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c6
--- Comment #6 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c7
--- Comment #7 from Frederic Crozat
Well, /var/tmp is filling up too, and I doubt upstream has it on tmpfs as well, do they?
They don't, but that's not related to this particular bug (and I don't want to go through the flames around /tmp auto-cleaning, FATE#314974 )... -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c8
--- Comment #8 from Frederic Crozat
(In reply to comment #6)
Well, /var/tmp is filling up too, and I doubt upstream has it on tmpfs as well, do they?
They don't, but that's not related to this particular bug (and I don't want to go through the flames around /tmp auto-cleaning, FATE#314974 )...
my bad, /var/tmp is also affected by PrivateTmp (since version 183) -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c9
Herbert Meier
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c10
--- Comment #10 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c11
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c12
Karl Eichwalder
They could, except that by default files owned by root are left untouched, and I suppose most users (including me) would be reluctant to change that.
I'm not that sure that root's files stored in /tmp are actually important ;) I'm wondering whether it isn't possible to detect those directories that are still needed and delete the rest via cron. Since 2013-04-08 I acquired 56 of such directories, and the number is growing. -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c13
--- Comment #13 from Jean Delvare
(In reply to comment #10)
They could, except that by default files owned by root are left untouched, and I suppose most users (including me) would be reluctant to change that.
I'm not that sure that root's files stored in /tmp are actually important ;)
Apparently "we" think it is, otherwise they would not be excluded from the clean-up by default. That being said I agree it's questionable (i.e. on second thought I agree with you.) -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c14
--- Comment #14 from systemd maintainers
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c15
--- Comment #15 from Karl Eichwalder
On openSUSE 13.1 the temporary systemd directories are gone on both /tmp and /var/tmp
Ok, but it does not seem to remove the old dirs, e.g., from April 2013. -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c16
--- Comment #16 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c17
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c18
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c19
--- Comment #19 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c20
--- Comment #20 from Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c21
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c22
--- Comment #22 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c23
--- Comment #23 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c24
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c25
--- Comment #25 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c26
Gerald Pfeifer
On 13.1 I see 3 systemd-private-* directories in /tmp and another 3 in /var/tmp, but all of them are from today, so AFAICS they are cleaned up properly when systemd exits. Well /tmp is on tmpfs so I can't be sure for these but /var/tmp is on permanent storage, so I am confident it's fixed.
Unfortunately it's not fixed for /tmp. This is from a new installation of 13.1: drwx------ 3 root root 4096 Dez 23 06:44 systemd-private-3AGju5 drwx------ 3 root root 4096 Dez 15 07:35 systemd-private-3S0vhO drwx------ 3 root root 4096 Jän 9 03:07 systemd-private-7KUKaH drwx------ 3 root root 4096 Jän 12 07:00 systemd-private-9LFYiA drwx------ 3 root root 4096 Dez 15 07:35 systemd-private-AYN0LZ drwx------ 3 root root 4096 Jän 9 03:07 systemd-private-JqGXTg drwx------ 3 root root 4096 Jän 12 07:00 systemd-private-L5MAr8 drwx------ 3 root root 4096 Jän 9 03:02 systemd-private-P4wa2H drwx------ 3 root root 4096 Jän 22 14:41 systemd-private-UB26Xz drwx------ 3 root root 4096 Dez 14 10:07 systemd-private-UOG21G drwx------ 3 root root 4096 Dez 23 06:44 systemd-private-cTZP8Z drwx------ 3 root root 4096 Jän 22 14:41 systemd-private-nURuNG drwx------ 3 root root 4096 Dez 14 02:35 systemd-private-skTNRA drwx------ 3 root root 4096 Dez 14 10:07 systemd-private-sxQ3aF (The system lost power a couple of times, i.e., wasn't shut down cleanly, but that still should be taken care of, right?) -- 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=814265
https://bugzilla.novell.com/show_bug.cgi?id=814265#c
Karl Eichwalder
participants (1)
-
bugzilla_noreply@novell.com