When copying file from local to gdrive using rclone sometimes it creates an empty duplicate

What is the problem you are having with rclone?

Hi everyone, sometimes (i wasn't able to find a pattern) after copied some files from my hard disk to a Google Drive storage mounted with rclone, it creates an empty duplicate of one of the files i just copied (usually the first one it copied).

For example I want to copy

  • a.mkv (2GB)
  • b.mkv (3GB)

from Windows to gdrive and when the copy finish i see on gdrive

  • a.mkv(32bytes)
  • a.mkv(2GB)
  • b.mkv(3GB)

Since Windows explorer can't have two files with the same name on the same folder it always shows me the smaller one which of course it's unusable.

I can easly bypass this running a dedupe with --dedupe-mode largest but I would like to know why this happen and how i can prevent it.

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10 64bit

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

No command, I'm copying the files using windows explorer

The rclone config contents with secrets removed.

[gdrive]
type = drive
token = ***
server_side_across_configs = true
team_drive = ***
client_id = ***
client_secret = ***

[gcache]
type = cache
remote = gdrive:/gdrive
plex_url = http://127.0.0.1:32400/
plex_username = ***
plex_password = ***
chunk_size = 10M
info_age = 1d
chunk_total_size = 10G
plex_token = ***

[Media]
type = crypt
remote = gcache:/crypt
filename_encryption = obfuscate
directory_name_encryption = true
password = ***

rclone version:

rclone v1.53.3
- os/arch: windows/amd64
- go version: go1.15.5

hi,
the cache remote has been depreciated, has known bugs that will never be fixed.
perhaps remove that and test.

Okay I'll remove that and see if it happen again. Since we're here i have another question related to the VFS cache.
Every time i upload a file it shows me this error
2021/01/25 19:58:43 ERROR : a.mkv: WriteFileHandle: Truncate: Can't change size without --vfs-cache-mode >= writes

What does it mean? Is there a way to solve it withouth enabling VFS cache mode minimal or higher?

i would remove that cache remote first....

Yep I already did that, now my config file looks like this

[gdrive]
type = drive
token = ***
server_side_across_configs = true
team_drive = ***
client_id = ***
client_secret = ***

[Media]
type = crypt
remote = gdrive:/crypt
filename_encryption = obfuscate
directory_name_encryption = true
password = ***

then i mount the remote simply with

rclone mount Media: U:

for Media, should it be gdrive:gdrive/crypt?

It works both ways. I can delete that folder and move crypt to the root.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.