Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root drive slowly filling up #137

Open
mainmeister opened this issue Jul 13, 2015 · 11 comments
Open

Root drive slowly filling up #137

mainmeister opened this issue Jul 13, 2015 · 11 comments

Comments

@mainmeister
Copy link

When I am rsyncing my large music folder to the google drive, my root drive system slowly fills up. Is there a location where there are temp files (I've looked in /tmp but nothing there) that are not getting deleted?

image
When I reboot the system it goes back to it's original size.

@mainmeister
Copy link
Author

So, I've found that the tmp folder has a folder, owned by root, named /tmp/tmpS0SSax. I've written a simple script to run under sudo to delete all the files in this folder every hour. This seems to have solved the problem.

while true
do
sleep 3600
rm /tmp/tmpS0SSax/*
done

@dsoprea dsoprea reopened this Jul 20, 2015
@dsoprea
Copy link
Owner

dsoprea commented Jul 20, 2015

I'm reopening so that we can have it in the queue to find a better solution.

@mainmeister
Copy link
Author

The folder under /tmp changes when ever you reboot.

@dsoprea
Copy link
Owner

dsoprea commented Jul 28, 2015

That's why I use it. By default, tmpfs automatically has a size-limit
(and should truncate old contents) and will usually reset after reboot.

I'll see if I can start a cleanup thread.

Thank you for your donation.

On Tue, Jul 28, 2015 at 12:02 PM, William R Main [email protected]
wrote:

The folder under /tmp changes when ever you reboot.


Reply to this email directly or view it on GitHub
#137 (comment).

@mainmeister
Copy link
Author

I am starting to wonder if it is the gdrivefs that is leaving the tempfiles behind or the rsync command that I am issuing. I've looked through all of the code and as far as I can see there is a cleanup in the del function anywhere that a temp file is used.

@mainmeister
Copy link
Author

Could it be a garbage collection problem leaving the temp files behind because the deleted objects have not yet been cleaned up?

@hosler
Copy link

hosler commented Jan 18, 2016

anyone have a good fix for this? im constantly using the gdrive, so i dont want to just delete files in the tmp folder for fear of corrupting current downloads.

@PythonNut
Copy link

My /tmp is a tmpfs on a Raspberry Pi, so it's quite easy to bring the device to its knees without cleaning.

@dsoprea
Copy link
Owner

dsoprea commented May 1, 2016

I just created PR #156 with the fix. Since many people have created PRs of their own, I wanted to foster the continued spirit of collaboration for this project before I just went ahead and merged it. Please test.

Thanks for the feedback. I'm sorry for such delays. I didn't see this issue for what it was (a basic design flaw).

@PythonNut
Copy link

Please test.

Seems to be working as far as I can tell! Thanks a ton!

@dsoprea
Copy link
Owner

dsoprea commented May 2, 2016

It's the least I could do for your continued use of this project, which I appreciate very much. Thanks to all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants