Univention Bugzilla – Bug 31863
Clean up /var/tmp/kdecache-${USERNAME}
Last modified: 2014-06-12 09:19:39 CEST
We should clean up /var/tmp/kdecache-${USERNAME} after X days without access. Each directory is around 100-200MB big. With many different users logging into one client the root partition gets filled up. A client boot into guest/kiosk mode also creates a /var/tmp/kdecache-guest-${RANDOM} directory (~100MB) so with the default setup (15GB root partition, ~9GB free) "only" ~92 boots are possible.
Reportet by a customer: <http://forum.univention.de/viewtopic.php?f=64&t=2726> Maybe a special "tmpreaper" configuration could be a solution for this.
In UCC 1.1 it should be checked whether this still occurs with more recent KDE releases
tmpreaper -v 1d /var/tmp/kdecache-* can be used to remove all files which haven't been touched for longer than a day. Maybe there's a possibility to move the KDE cache into the /home (which isn't space constrained).
(In reply to Moritz Muehlenhoff from comment #3) > Maybe there's a possibility to move the KDE cache into the /home (which > isn't space constrained). Should be possible with KDEVARTMP : http://techbase.kde.org/KDE_System_Administration/KDE_Filesystem_Hierarchy
The mechanism to configure environment vars through the UCC desktop policy (Bug 29941) isn't working correctly in UCC 2.0: Configuring "KDEVARTMP" as the variable and "~/.kde-cache" asthe values generates a .ucc-environment file with the content KDEVARTMP DEFAULT="~/.kde-cache
(In reply to Moritz Muehlenhoff from comment #5) > The mechanism to configure environment vars through the UCC desktop policy > (Bug 29941) isn't working correctly in UCC 2.0: > > Configuring "KDEVARTMP" as the variable and "~/.kde-cache" asthe values > generates a .ucc-environment file with the content > > KDEVARTMP DEFAULT="~/.kde-cache The format of the .ucc-environment file is correct, but the file wasn't parsed correctly. The reason was that user_readenv needs to be explicitiy enabled in he PAM release in 14.04. Fixed in univention-ucc-pam_2.0.0-5
(In reply to Janis Meybohm from comment #0) > We should clean up /var/tmp/kdecache-${USERNAME} after X days without access. > Each directory is around 100-200MB big. With many different users logging > into one client the root partition gets filled up. > > A client boot into guest/kiosk mode also creates a > /var/tmp/kdecache-guest-${RANDOM} directory (~100MB) so with the default > setup (15GB root partition, ~9GB free) "only" ~92 boots are possible. The cache is still useful. Also, on a terminalserver users might be logged in for a long time and the tmpreaper might remove files of logged-in users. KDEVARTMP is now set to ~/.kde-cache in the /etc/xrdp/UCC-KDE session script. This way the cache is kept in the user's home.
OK Changelog?
(In reply to Felix Botner from comment #8) > OK > > Changelog? Now commited.
OK
UCC 2.0 has been released: http://docs.univention.de/release-notes-ucc-2.0.html If this error occurs again, please use "Clone This Bug".