-
Notifications
You must be signed in to change notification settings - Fork 5
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
Syncronization of large files fails on Linux systems with too-small /tmp #204
Comments
Also, I've noticed that these temporary files are not removed even after the file is completely downloaded. This causes a waste of RAM/disk space, till the next reboot (if /tmp is emptied at reboot or in a RAM tmpfs). |
Hi, |
I noticed the same problem on Fedora and OpenSUSE. Not only does the sync stop working when /tmp is full, it also creates duplicates of files (conflicted copies). A crude workaround when this happens is to pause the sync, run |
Hi, I have raised the priority of this issue in our roadmap for it to be fixed in the next release (Unfortunately not in 3.6.6 as it is already in its release process). @alerighi, regarding the possibility of setting a location other than /tmp, we will discuss this and update this issue soon. |
Hi, I initially had a separate /tmp partition, but then removed it to solve the issue (it was then caching on the / filesystem. I have a separate /home partition though if that's what is meant here. |
Hi, @alerighi, after discussion, we will investigate the possibility of using /cache instead of /tmp. However, for now, we won’t implement the option to manually choose a custom temp folder. |
Hi @herve-er, thanks! In my option on Linux the best would be to use the XDG Base Directory Specification, thus use the value of the environment variable |
Hi @alerighi, Hi @beankylla, |
Hi, |
Hi @SohKa There are currently two issues related to the For context, when the app downloads your files, they are first downloaded to The first issue is that, in some cases, the app does not delete the temporary file after the copy, causing The second issue affects large files. If you have files on your drive that are larger than the space available in your For the first issue, a PR is under review to fix it (#389). For the second issue, we are currently considering a better location for storing temporary files, but we cannot provide a release version or date for this change yet (#204 (comment)). |
On some Linux distributions (e.g. ArchLinux) the /tmp directory is mounted as a tmpfs in RAM by default. Since it's mounted in RAM, it has a limited capacity (on my system, that has 8Gb of RAM, the tmpfs is 4Gb in capacity).
I've noticed that kDrive was unable to sync some large (5+Gb) files that are on my drive. I've seen from the logfile that the download did indeed fail because the space on /tmp was finished. I've then modified the configuration of my system to mount /tmp on a real disk partition (the same that is done on Debian and other distributions) and the synchronization errors did indeed disappear.
/tmp shouldn't be used to store large files, not only because it has a limited capacity but also because storing data here wastes RAM on systems where the /tmp is a RAM filesystem.
In my opinion it would be better if kDrive would store temporary files inside the user home directory (e.g. in ~/.cache/kDrive). Alternatively you would need to document this behavior, and provide an option for the user to set the path of the temporary directory (or document it if there is already such a parameter).
Thanks!
The text was updated successfully, but these errors were encountered: