Ubuntuone-process makes hunders of files like /tmp/tmpXXXX, fills hard dirve
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
My machine ran out of hard drive space and I noticed that I had 1343 files (22 GB in total size) in /tmp. All of the files were named like tmpXXXXXX, e.g. tmpzwFV1p. Running lsof reviled that the the files were created (and kept open) by the process "ubuntuone".
Background:
I'm running Lucid with all updates and I have a paid 4x20GB U1 account with 20GB+ of stuff and I recently added a folder (~/Kuvat) with 40 GB of files that has uploaded only partially. Account registered to otto at sange.fi.
Analysis:
I restarted my machine (and Linux automatically cleans up the /tmp directory) and documented what happens:
1. When the computer starts, the contents of /tmp is normal.
2. When the computer is on, u1sdtool -s starts with State: LOCAL_RESCAN
3. Then u1sdtool -s shows State: SERVER_RESCAN
4. Then u1sdtool -s shows State: QUEUE_MANAGER
5. At this point just one file is created /tmp/tmpCb3SoN. When the state is QUEUE_MANAGER, uploading should happen and u1sdtool --waiting-content lists 6000+ files, but there is no outgoing network traffic.
6. After a few hours the uploading finally starts. Outgoing network traffic is at level 120-150 KB/s.
7. At the same time more and more files start to appear in /tmp directory. See how it grows by looking at http://
8. lsof | grep tmp/tmp proves the files are opened by process ubuntuone. See how it grows in http://
9. Finally the filesystem gets full. Listing http://
10. Now u1sdtool --waiting-content shows only one file at the time:
otto@shuttle:/tmp$ u1sdtool --waiting-content
operation='Upload' node_id=
otto@shuttle:/tmp$ u1sdtool --waiting-content
operation='Upload' node_id=
otto@shuttle:/tmp$ u1sdtool --waiting-content
operation='Upload' node_id=
11. However when I open at one.ubuntu.com > My Storage / ~/Kuvat / Sekalaista / Joulu 2008, there is no file 00115.jpg
12. Network traffic shows that uploading is happening.
13. Some other programs start to bug when the filesystem is full. Computer becomes unusable.
I can reproduce this on my machine every time I restart it and wait a few hours.
apport information