[Bug 1078425] Re: /tmp directory cleaning of folders fails if a file can't be removed
Brian Murray
brian at ubuntu.com
Tue Nov 13 19:48:25 UTC 2012
The reason the files weren't deletable was because they have the 'i'
attribute set.
11:48:09 - flash:[/tmp] lsattr cmake-bug/cpack_test_case/tmp/378
----i----------- cmake-bug/cpack_test_case/tmp/378
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/1078425
Title:
/tmp directory cleaning of folders fails if a file can't be removed
Status in “mountall” package in Ubuntu:
New
Bug description:
I was surprised to discover a ton of directories in my /tmp folder.
Digging into the issue I discovered the following in /var/log/upstart
/mounted-tmp.log:
find: cannot delete `./cmake-bug/cpack_test_case/tmp/378': Operation not permitted
find: cannot delete `./cmake-bug/cpack_test_case/tmp/379': Operation not permitted
find: cannot delete `./cmake-bug/cpack_test_case/tmp/380': Operation not permitted
Looking in dmesg I see:
[ 89.732482] init: mounted-tmp main process (1177) terminated with
status 1
In /etc/init/mounted-tmp.conf we see the following:
# Remove all old files, then all empty directories
find . -depth -xdev $TEXPR $EXCEPT ! -type d -delete
find . -depth -xdev $DEXPR $EXCEPT -type d -empty -delete
So I believe that after the attempt to delete files fails the job
exits and the directories are left behind.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1078425/+subscriptions
More information about the foundations-bugs
mailing list