[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 <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fcrozat@suse.com --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2013-04-19 11:24:16 UTC --- ATM, this behaviour is "wanted" (see the discussion at http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/6874/focus=689 and https://bugzilla.redhat.com/show_bug.cgi?id=866693 ) because there was no easy way to exclude such directories from auto-cleaning. This should be fixed properly with next major release of systemd (ie for openSUSE 13.1) which will cleanup those directories when service using PrivateTmp=yes are closed. Of course, if we were using /tmp over tmpfs, proliferation would be contained but that's another story ;) -- 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 FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | -- 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#c2 Andrea Turrini <andrea.turrini@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrea.turrini@gmail.com --- Comment #2 from Andrea Turrini <andrea.turrini@gmail.com> 2013-05-07 14:02:55 UTC --- So does this mean that /tmp (and /var/tmp as well) will be flooded by useless directories until one decides to install oS 13.1? 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. -- 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#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2013-05-21 16:32:39 UTC --- (In reply to comment #2)
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 <schuetzm@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schuetzm@gmx.net --- Comment #4 from Marc Schütz <schuetzm@gmx.net> 2013-06-21 02:14:37 UTC --- The solution chosen by upstream is unfortunately incomplete, as it will keep already existing directories around indefinitely. Additionally, the directories will stay there if the system doesn't shutdown cleanly (power loss, crash, ...). Would it be feasible to keep those directories that are still needed alive by touching them in regular intervals (e.g. once a day) while the service is still running? This seems cleaner to me than exempting them from cleanup completely... -- 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#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2013-06-21 07:54:04 UTC --- Unfortunately, upstream is using /tmp as tmpfs by default, so reboot is "cleaning" /tmp, which fixes most of the "shutdown" issues.. -- 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#c6 --- Comment #6 from Jean Delvare <jdelvare@suse.com> 2013-06-21 08:05:48 UTC --- Well, /var/tmp is filling up too, and I doubt upstream has it on tmpfs as well, do they? -- 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#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2013-06-21 08:20:35 UTC --- (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 )... -- 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 <fcrozat@suse.com> 2013-06-24 02:21:39 UTC --- (In reply to comment #7)
(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 <herbert@women-at-work.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |herbert@women-at-work.org --- Comment #9 from Herbert Meier <herbert@women-at-work.org> 2013-07-04 18:53:40 UTC --- Maybe the TMP cleanup settings in /etc/sysconfig/cron can be used to clean up these old directories. -- 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#c10 --- Comment #10 from Jean Delvare <jdelvare@suse.com> 2013-07-05 07:20:21 UTC --- 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. -- 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#c11 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@suse.com --- Comment #11 from Frederic Crozat <fcrozat@suse.com> 2013-07-22 08:19:45 UTC --- *** Bug 830396 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=830396 -- 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#c12 Karl Eichwalder <ke@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ke@suse.com --- Comment #12 from Karl Eichwalder <ke@suse.com> 2013-08-12 09:04:03 CEST --- (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 ;) 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 <jdelvare@suse.com> 2013-08-21 08:53:02 UTC --- (In reply to comment #12)
(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 <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|fcrozat@suse.com |systemd-maintainers@suse.de -- 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#c14 --- Comment #14 from systemd maintainers <systemd-maintainers@suse.de> 2013-12-06 14:03:43 UTC --- On openSUSE 13.1 the temporary systemd directories are gone on both /tmp and /var/tmp -- 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#c15 --- Comment #15 from Karl Eichwalder <ke@suse.com> 2013-12-09 10:10:56 CET --- (In reply to comment #14)
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 <aj@suse.com> 2013-12-09 09:33:34 UTC --- Karl, just remove those manually. -- 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#c17 Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rmilasan@suse.com --- Comment #17 from Robert Milasan <rmilasan@suse.com> 2013-12-09 09:46:52 UTC --- Andreas, they are created constantly and also in /var/tmp: robert@viper:~> ls -l /var/tmp/|grep 'systemd' drwx------ 3 root root 4096 Dec 9 09:50 systemd-private-6kVZEK drwx------ 3 root root 4096 Dec 9 09:50 systemd-private-gagGH3 robert@viper:~> ls -l /tmp/|grep 'systemd' drwx------ 3 root root 60 Dec 9 09:50 systemd-private-CxGLAi drwx------ 3 root root 60 Dec 9 09:50 systemd-private-Rg2kbU /tmp is not binded to /var/tmp, nor vice-versa. Also /tmp is a tmpfs file system, so it does get clean-up on my system, but usually it doesn't. -- 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#c18 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |werner@suse.com InfoProvider| |rmilasan@suse.com --- Comment #18 from Dr. Werner Fink <werner@suse.com> 2013-12-09 09:51:38 UTC --- (In reply to comment #17) I can not see those directories on a fresh openSUSE 13.1 ... are those directories also leftovers? -- 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#c19 --- Comment #19 from Andreas Jaeger <aj@suse.com> 2013-12-09 09:55:14 UTC --- Robert, I was speaking about the old ones from April 2013 that are not removed. /tmp is not a tmpfs on my system - and neither on many that updated their system... Werner, I still have these on my 13.1 install (updated). -- 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#c20 --- Comment #20 from Karl Eichwalder <ke@suse.com> 2013-12-09 10:56:42 CET --- On the updated 13.1, they get cleaned for me. -- 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#c21 Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|rmilasan@suse.com | --- Comment #21 from Robert Milasan <rmilasan@suse.com> 2013-12-09 09:57:59 UTC --- Can't be leftovers when /tmp is a tmpfs file system, don't think is possible: robert@viper:~> df /tmp Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 2444032 2072 2441960 1% /tmp robert@viper:~> ls -l /tmp/|grep systemd drwx------ 3 root root 60 Dec 9 09:50 systemd-private-CxGLAi drwx------ 3 root root 60 Dec 9 09:50 systemd-private-Rg2kbU -- 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#c22 --- Comment #22 from Robert Milasan <rmilasan@suse.com> 2013-12-09 09:59:35 UTC --- BTW, I got a fresh openSUSE 13.1 installation and still get them, so don't know what it depends on. Also this happened with 12.3, same exact thing. -- 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#c23 --- Comment #23 from Jean Delvare <jdelvare@suse.com> 2013-12-09 13:50:32 UTC --- 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. -- 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#c24 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |UPSTREAM --- Comment #24 from Dr. Werner Fink <werner@suse.com> 2013-12-09 13:53:28 UTC --- Thanks ... I'll set this to UPSTREAM -- 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#c25 --- Comment #25 from Frederic Crozat <fcrozat@suse.com> 2013-12-13 16:59:48 UTC --- upstream has just further improved this by attaching boot_id to those directories, so cleanup would only occurs on previous boot tmp directories : http://cgit.freedesktop.org/systemd/systemd/commit/?id=6b46ea73e3b1d8a1e65f5... -- 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#c26 Gerald Pfeifer <gp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gp@suse.com --- Comment #26 from Gerald Pfeifer <gp@suse.com> 2014-01-22 21:51:39 CET --- (In reply to comment #23)
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 <ke@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |871196 -- 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