Bug 986841 - systemd does not remove private tmp directories
systemd does not remove private tmp directories
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
17
Unspecified Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: systemd-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-22 04:29 EDT by customercare
Modified: 2013-07-22 04:51 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-07-22 04:51:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description customercare 2013-07-22 04:29:25 EDT
Description of problem:

systemd does not remove empty private tmp directories.

tmpwatch has to do that for systemd, but as it has a 30 day default on Fedora,
the system ends up with 200.000 empty directories in /tmp/ and /var/tmp/ ( not symlinked ) 

a time sorted directory list reveals, that this only applies to direcotries in a specific timeframe :

drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-3Z3q7z
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-5gpl1v
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-7hYGtJ
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-7InyIf
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-AaFhh3
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-ADNdc5
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-aKPUS9
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-e1uonc
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-f0qzEk
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-GGlcPv
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-H8xphM
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-hTScC7
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-Kx6tWw
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-L5sf31
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-m8VeAC
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-q0vhdn
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-RDaeSC
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-ROI8yC
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-sJ1Ue4
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-SyVq9w
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-u8ojxt
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-uz7ypX
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-va9iDs
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-WZJPnJ
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-X9JiDo
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-XNBQaU
drwxrwxrwt     2 root root      4096 22. Jul 00:20 systemd-private-zPWcwU
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-0Dpbrk
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-0WiQ14
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-1W7j4v
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-3uXRpG
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-5ljbme
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-6sFU7W
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-8P25d1
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-9yfzPV
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-aw20y8
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-bEEwo9
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-Bx8JN4
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-ctXHd7
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-Cx8nAr
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-dNjwP7
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-IIvjmM
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-kalneo
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-KVePcA
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-kzWDzn
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-LM5Mn0
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-mZNfP8
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-NGvnrC
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-oCGiVz
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-PMTUxr
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-qmcD8c
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-QnQcgu
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-ulx9Vi                  
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-veyRma
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-ZprM4g
drwxrwxrwt     2 root root      4096 22. Jul 00:21 systemd-private-ZsyIYl
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-681ayB
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-ChB9U9
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-DElZ4e
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-dpaZQl
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-EZg3kI
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-jronfY
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-jxf19P
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-mJHIJh
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-OOttND
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-qLPcNk
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-sHpS1v
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-TQGOBr
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-VjNsUc
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-vPoI2v
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-wWZYNY
drwxrwxrwt     2 root root      4096 22. Jul 00:22 systemd-private-yZXIVg
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-8wb4dc
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-Auk5l9
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-BAiE09
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-bUKH39
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-byQZd6
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-FFEOSf
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-iuZAYH
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-izkzYo
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-k15CBu
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-l2M8Ux
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-LuHzib
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-nIbmw2
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-ourlab
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-qBnLfv
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-qSLKkL
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-Re0BGh
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-rRmTvn
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-s9jhSo
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-xPP0p0
drwxrwxrwt     2 root root      4096 22. Jul 00:23 systemd-private-zQD5kT
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-2vScE7
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-3IUzgb
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-BzeSfI
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-chrVxG
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-CteqF7
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-cUgsbQ
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-EJt5de
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-gi3XXN
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-gOGQVh
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-JzQSeS
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-kdyZnU
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-kw8Nrc
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-LMeOzr
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-LtCv1E
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-OD5xdE
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-pKOYJE
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-QugqtS
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-sIzvla
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-TsQ4n0
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-TWJdnz
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-vktM9G
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-vrd8Db
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-YcZh36
drwxrwxrwt     2 root root      4096 22. Jul 00:24 systemd-private-ZiN32B
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-1B7qzx
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-3nAk8g
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-40eaqJ
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-4OTtqo
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-6m0izb
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-8kZbqQ
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-9jhHii
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-9JSwlL
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-dFbunI
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-DLcqZ3
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-fxM2Lz
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-gdnXI0
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-IQBjwg
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-jbCwf4
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-KvbBI9
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-M2cdca
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-nHBExj
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-tuOvqR
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-vARy1Q
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-WWHVMd
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-z6lUxG
drwxrwxrwt     2 root root      4096 22. Jul 00:25 systemd-private-zZXKrc
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-3ddjxt
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-40PsFE
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-716Hn7
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-8vFiBJ
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-cgWDp3
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-fcz4VD
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-flWYMl
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-GSn16F
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-ibUNx1
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-jikZMh
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-Jo4s6S
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-jxnai3
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-KfK7Xm
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-Km8j1Z
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-MoIqlg
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-PXDSDa
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-Rf46FC
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-RuNUGR
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-SInRzW
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-Ti0PUd
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-tNphrL
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-u9AMQa
drwxrwxrwt     2 root root      4096 22. Jul 00:26 systemd-private-Us5Kwx
...
tons of lines later 
...
drwxrwxrwt     2 root root      4096 22. Jul 01:14 systemd-private-y1tHBm
drwxrwxrwt     2 root root      4096 22. Jul 01:14 systemd-private-ZaqCEQ
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-8R0dRH
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-9CaHDH
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-AEWLKP
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-azj4xF
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-e17Ye2
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-FSiZiL
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-gRCcGu
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-JijuwZ
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-JXXEeH
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-K1cwXw
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-KlgwMN
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-l4lAhN
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-lb0TJw
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-lp0Mc9
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-mANjDF
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-MPc5Wo
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-oBPfss
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-P6jTLi
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-qAlV7N
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-rdW2aR
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-Su7qO7
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-UOn6GX
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-utZj9b
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-VgXtP4
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-WeMR0S
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-wMYyqM
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-xFO4Qd
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-XOKCaE
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-xRWwrU
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-xTLqvt
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-Yikpwx
drwxrwxrwt     2 root root      4096 22. Jul 01:15 systemd-private-YU5kpW 

Version-Release number of selected component (if applicable):

systemd-44-24.fc17.i686

Actual results:

uptime = 3 days

# ls -la /tmp/ | grep -c systemd
6693
# ls -la /var/tmp/ | grep -c systemd
6690          

Expected results:

at best only the active directories.

Additional info:

I wasn't able to determine which cronjobs/task did create these directories.
None of my cronjobs does produce 35 systemd starts per minute.

On one server, it takes ages to get them removed with tmpwatch, on others it's done in seconds.
Comment 1 Michal Schmidt 2013-07-22 04:51:52 EDT
In Fedora 18 and later, systemd cleans up services' private tmp directories after stopping them. This should fix the problem you're having.

Since the end-of-life for Fedora 17 is only a week away, I do not expect the fix to be backported in time.

Note You need to log in before you can comment on or make changes to this bug.