Rclone mount keeps dropping, same error messages in GoodSync and FreeFileSync

What is the problem you are having with rclone?

GoodSync and FreeFileSync repeatedly report "Incorrect function", "The parameter is incorrect", "Cannot rename temp file to destination file: The system cannot find the file specified".

I have a G Suite account's Google Drive mounted that frequently fails, i.e. reverts to "Local Disk" in This PC. Opening the path at this point results in a significant delay before eventually opening properly and the disk being recognised with its correct label. This occurs with both a standard mount and network share mount. I believe it occurs under load, when being continuously utilised both by GoodSync and FreeFileSync. Progress is seemingly made on and off in these programs but very little as they bounce between error to error.

GoodSync allows me to select the mount as a destination as either a local drive or network share. The latter doesn't work at all due to I believe the fake \server. Throwing in the computer's actual name as the server name causes a long delay before failing as well.

GoodSync is able to interact perfectly fine with the same Google Drive when it's selected specifically as that, and rclone is out of the picture. Both unencrypted and encrypted by GoodSync. I could be using GoodSync for this task but much prefer relying on rclone's encryption in the long run.

I've been reading rclone dot org/drive and bytesized-hosting dot com/pages/rclone-gdrive

What is your rclone version (output from rclone version)

rclone v1.52.2

  • os/arch: windows/amd64
  • go version: go1.14.4
    WinFsp 2020.1

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

Windows 10 64-bit, 2600k, 32gb ram

rclone is situated on a primary ssd and files are being transferred from a Windows (parity) Storage Space of several conventional drives.

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

(G Suite) Google Drive.

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

Has occurred with the following variations, run manually and as a service:

rclone mount --allow-other GDFS-crypt: G:
rclone mount --allow-other --use-mmap GDFS-crypt: G:
rclone mount --fuse-flag --VolumePrefix=\GDFS_Encrypted\Pantheon --allow-other GDFS-crypt: G:
rclone mount --fuse-flag --VolumePrefix=\GDFS_Encrypted\Pantheon --allow-other --use-mmap GDFS-crypt: G:

The rclone config contents with secrets removed.

[GDFS]
type = drive
client_id = 
client_secret = 
scope = drive
pacer_min_sleep = 100ms
pacer_burst = 100
token = 
root_folder_id = (root)

[GDFS-cached]
type = cache
remote = GDFS:
chunk_size = 10M
info_age = 1y
chunk_total_size = 10G
chunk_clean_interval = 5m0s
workers = 2
db_wait_time = 3s

[GDFS-crypt]
type = crypt
remote = GDFS-cached:/Encrypted/Pantheon
filename_encryption = obfuscate
directory_name_encryption = true
password = 
password2 = 

A log from the command with the -vv flag

C:\Program Files (other)\rclone>rclone mount --fuse-flag --VolumePrefix=\GDFS_Encrypted\Pantheon --allow-other --use-mmap GDFS-crypt: G: -vv
2020/08/10 16:43:49 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "mount" "--fuse-flag" "--VolumePrefix=\\GDFS_Encrypted\\Pantheon" "--allow-other" "--use-mmap" "GDFS-crypt:" "G:" "-vv"]
2020/08/10 16:43:49 DEBUG : Using config file from "C:\\Users\\USERNAME\\.config\\rclone\\rclone.conf"
2020/08/10 16:43:50 DEBUG : GDFS-cached: wrapped GDFS:Encrypted/Pantheon at root Encrypted/Pantheon
2020/08/10 16:43:50 INFO  : GDFS-cached: Cache DB path: C:\Users\USERNAME\AppData\Local\rclone\cache-backend\GDFS-cached.db
2020/08/10 16:43:50 INFO  : GDFS-cached: Cache chunk path: C:\Users\USERNAME\AppData\Local\rclone\cache-backend\GDFS-cached
2020/08/10 16:43:50 INFO  : GDFS-cached: Chunk Memory: true
2020/08/10 16:43:50 INFO  : GDFS-cached: Chunk Size: 10M
2020/08/10 16:43:50 INFO  : GDFS-cached: Chunk Total Size: 10G
2020/08/10 16:43:50 INFO  : GDFS-cached: Chunk Clean Interval: 5m0s
2020/08/10 16:43:50 INFO  : GDFS-cached: Workers: 2
2020/08/10 16:43:50 INFO  : GDFS-cached: File Age: 1y
2020/08/10 16:43:50 DEBUG : Adding path "cache/expire" to remote control registry
2020/08/10 16:43:50 DEBUG : Adding path "cache/stats" to remote control registry
2020/08/10 16:43:50 DEBUG : Adding path "cache/fetch" to remote control registry
2020/08/10 16:43:51 DEBUG : GDFS-cached: wrapped GDFS:Encrypted/Pantheon at root Encrypted/Pantheon
2020/08/10 16:43:51 INFO  : GDFS-cached: Cache DB path: C:\Users\USERNAME\AppData\Local\rclone\cache-backend\GDFS-cached.db
2020/08/10 16:43:51 INFO  : GDFS-cached: Cache chunk path: C:\Users\USERNAME\AppData\Local\rclone\cache-backend\GDFS-cached
2020/08/10 16:43:51 INFO  : GDFS-cached: Chunk Memory: true
2020/08/10 16:43:51 INFO  : GDFS-cached: Chunk Size: 10M
2020/08/10 16:43:51 INFO  : GDFS-cached: Chunk Total Size: 10G
2020/08/10 16:43:51 INFO  : GDFS-cached: Chunk Clean Interval: 5m0s
2020/08/10 16:43:51 INFO  : GDFS-cached: Workers: 2
2020/08/10 16:43:51 INFO  : GDFS-cached: File Age: 1y
2020/08/10 16:43:51 DEBUG : Adding path "cache/expire" to remote control registry
2020/08/10 16:43:51 DEBUG : Adding path "cache/stats" to remote control registry
2020/08/10 16:43:51 DEBUG : Adding path "cache/fetch" to remote control registry
2020/08/10 16:43:51 DEBUG : Encrypted drive 'GDFS-crypt:': Mounting on "G:"
2020/08/10 16:43:51 DEBUG : Cache remote GDFS-cached:Encrypted/Pantheon: subscribing to ChangeNotify
2020/08/10 16:43:51 DEBUG : Adding path "vfs/forget" to remote control registry
2020/08/10 16:43:51 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/08/10 16:43:51 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/08/10 16:43:51 DEBUG : Encrypted drive 'GDFS-crypt:': Mounting with options: ["-o" "fsname=GDFS-crypt:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=GDFS-crypt" "-o" "allow_other" "--VolumePrefix=\\GDFS_Encrypted\\Pantheon"]
2020/08/10 16:43:51 DEBUG : Encrypted drive 'GDFS-crypt:': Init:
2020/08/10 16:43:51 DEBUG : Encrypted drive 'GDFS-crypt:': >Init:
2020/08/10 16:43:51 DEBUG : /: Statfs:
2020/08/10 16:43:51 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:276695133763 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2020/08/10 16:43:51 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:51 DEBUG : /: >Getattr: errc=0
2020/08/10 16:43:51 DEBUG : /: Readlink:
2020/08/10 16:43:51 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2020/08/10 16:43:51 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:51 DEBUG : /: >Getattr: errc=0
2020/08/10 16:43:51 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:51 DEBUG : /: >Getattr: errc=0
2020/08/10 16:43:51 DEBUG : /: Opendir:
2020/08/10 16:43:51 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/08/10 16:43:51 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/08/10 16:43:51 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/08/10 16:43:51 DEBUG : /: Releasedir: fh=0x0
2020/08/10 16:43:51 DEBUG : /: >Releasedir: errc=0
2020/08/10 16:43:51 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:51 DEBUG : /: >Getattr: errc=0
2020/08/10 16:43:51 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:51 DEBUG : /: >Getattr: errc=0
2020/08/10 16:43:51 DEBUG : /: Opendir:
2020/08/10 16:43:51 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/08/10 16:43:51 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/08/10 16:43:51 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/08/10 16:43:51 DEBUG : /: Releasedir: fh=0x0
2020/08/10 16:43:51 DEBUG : /: >Releasedir: errc=0
2020/08/10 16:43:51 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:51 DEBUG : /: >Getattr: errc=0
2020/08/10 16:43:51 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:51 DEBUG : /: >Getattr: errc=0
2020/08/10 16:43:51 DEBUG : /: Opendir:
2020/08/10 16:43:51 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/08/10 16:43:51 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/08/10 16:43:51 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/08/10 16:43:51 DEBUG : /: Releasedir: fh=0x0
2020/08/10 16:43:51 DEBUG : /: >Releasedir: errc=0
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:52 DEBUG : Cache remote GDFS-cached:Encrypted/Pantheon: list ''
2020/08/10 16:43:52 DEBUG : : list: warm 21 from cache for: Encrypted/Pantheon, expiring on: 2021-08-10 05:02:27.9348415 +1000 AEST
2020/08/10 16:43:52 DEBUG : : list: cached entries: [116.fDpypE 124.YBExsBEEt 135.Trgn 156.Dbeez tfswfs 160.Lnfsy Gtrg xyflnsl 195.hNHItB kDAJBt XCuDGBpIxDC 222.ZiT 224.fxwBt 228.dFxKQ YLJy LODxKFPFKD 234.645355BB qmwg 234.csyxyfi-hp 238.apqx d 962888 vwv kzGxBwuiBwz ABCnn 30.97868890 aZbjhmf to NKC CQHUDR HM SGD 9377J 36.JkkFrugjkx XksoD 37.IhukjhtwKvDusvhkly 50._AMxuNu_ 84.Yrwsvxih 88.Lwksmz 89.QjwmkAjtrwp 97.kFIIvEKJ This is the Pantheon encrypted folder]
2020/08/10 16:43:52 DEBUG : This is the Pantheon encrypted folder: Skipping undecryptable file name: not an encrypted file - no ".bin" suffix
2020/08/10 16:43:52 DEBUG : Cache remote GDFS-cached:Encrypted/Pantheon: list '224.fxwBt'
2020/08/10 16:43:52 DEBUG : 224.fxwBt: list: warm 11 from cache for: Encrypted/Pantheon/224.fxwBt, expiring on: 2021-08-10 05:02:27.9068446 +1000 AEST
2020/08/10 16:43:52 DEBUG : 224.fxwBt: list: cached entries: [224.fxwBt/1.hPNDx 224.fxwBt/107..rngzkipqtg 224.fxwBt/115.WyFsoC 224.fxwBt/118.cyrK FLAp 224.fxwBt/16.LFotzmzzvD 224.fxwBt/20.hwDLH 224.fxwBt/31.Tipxt Mpdbm 224.fxwBt/50.MSHw.zzM_FIwE 224.fxwBt/50._AMxuNu_ 224.fxwBt/65.ZynmkCDC 224.fxwBt/94.ZwroFF]
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: >Getattr: errc=0
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: >Getattr: errc=0
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: Open: flags=0x2
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: OpenFile: flags=O_RDWR, perm=-rwxrwxrwx
2020/08/10 16:43:52 DEBUG : Media/sync.ffs_lock: Open: flags=O_RDWR
2020/08/10 16:43:52 DEBUG : Media/sync.ffs_lock: >Open: fd=Media/sync.ffs_lock (w), err=<nil>
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: >OpenFile: fd=Media/sync.ffs_lock (w), err=<nil>
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: >Open: errc=0, fh=0x0
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: Getattr: fh=0x0
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: >Getattr: errc=0
2020/08/10 16:43:52 DEBUG : /Media/sync.ffs_lock: Write: ofst=84, fh=0x0
2020/08/10 16:43:52 DEBUG : Media/sync.ffs_lock: waiting for in-sequence write to 84 for 1s
2020/08/10 16:43:53 DEBUG : Media/sync.ffs_lock: aborting in-sequence write wait, off=84
2020/08/10 16:43:53 DEBUG : Media/sync.ffs_lock: failed to wait for in-sequence write to 84
2020/08/10 16:43:53 ERROR : Media/sync.ffs_lock: WriteFileHandle.Write: can't seek in file without --vfs-cache-mode >= writes
2020/08/10 16:43:53 DEBUG : /Media/sync.ffs_lock: >Write: n=-29
2020/08/10 16:43:53 DEBUG : /Media/sync.ffs_lock: Flush: fh=0x0
2020/08/10 16:43:53 DEBUG : Media/sync.ffs_lock: WriteFileHandle.Flush unwritten handle, writing 0 bytes to avoid race conditions
2020/08/10 16:43:53 ERROR : Media/sync.ffs_lock: WriteFileHandle: Can't open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes
2020/08/10 16:43:53 DEBUG : /Media/sync.ffs_lock: >Flush: errc=-1
2020/08/10 16:43:53 DEBUG : /Media/sync.ffs_lock: Release: fh=0x0
2020/08/10 16:43:53 DEBUG : Media/sync.ffs_lock: WriteFileHandle.Release closing
2020/08/10 16:43:53 DEBUG : /Media/sync.ffs_lock: >Release: errc=0
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: >Getattr: errc=0
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: >Getattr: errc=0
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: Open: flags=0x2
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: OpenFile: flags=O_RDWR, perm=-rwxrwxrwx
2020/08/10 16:43:58 DEBUG : Media/sync.ffs_lock: Open: flags=O_RDWR
2020/08/10 16:43:58 DEBUG : Media/sync.ffs_lock: >Open: fd=Media/sync.ffs_lock (w), err=<nil>
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: >OpenFile: fd=Media/sync.ffs_lock (w), err=<nil>
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: >Open: errc=0, fh=0x0
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: Getattr: fh=0x0
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: >Getattr: errc=0
2020/08/10 16:43:58 DEBUG : /Media/sync.ffs_lock: Write: ofst=84, fh=0x0
2020/08/10 16:43:58 DEBUG : Media/sync.ffs_lock: waiting for in-sequence write to 84 for 1s
2020/08/10 16:43:59 DEBUG : Media/sync.ffs_lock: aborting in-sequence write wait, off=84
2020/08/10 16:43:59 DEBUG : Media/sync.ffs_lock: failed to wait for in-sequence write to 84
2020/08/10 16:43:59 ERROR : Media/sync.ffs_lock: WriteFileHandle.Write: can't seek in file without --vfs-cache-mode >= writes
2020/08/10 16:43:59 DEBUG : /Media/sync.ffs_lock: >Write: n=-29
2020/08/10 16:43:59 DEBUG : /Media/sync.ffs_lock: Flush: fh=0x0
2020/08/10 16:43:59 DEBUG : Media/sync.ffs_lock: WriteFileHandle.Flush unwritten handle, writing 0 bytes to avoid race conditions
2020/08/10 16:43:59 ERROR : Media/sync.ffs_lock: WriteFileHandle: Can't open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes
2020/08/10 16:43:59 DEBUG : /Media/sync.ffs_lock: >Flush: errc=-1
2020/08/10 16:43:59 DEBUG : /Media/sync.ffs_lock: Release: fh=0x0
2020/08/10 16:43:59 DEBUG : Media/sync.ffs_lock: WriteFileHandle.Release closing
2020/08/10 16:43:59 DEBUG : /Media/sync.ffs_lock: >Release: errc=0
The service rclone has been stopped.
2020/08/10 16:44:00 DEBUG : Encrypted drive 'GDFS-crypt:': Destroy:
2020/08/10 16:44:00 DEBUG : Encrypted drive 'GDFS-crypt:': >Destroy:
2020/08/10 16:44:00 DEBUG : rclone: Version "v1.52.2" finishing with parameters ["rclone" "mount" "--fuse-flag" "--VolumePrefix=\\GDFS_Encrypted\\Pantheon" "--allow-other" "--use-mmap" "GDFS-crypt:" "G:" "-vv"]
2020/08/10 16:44:00 DEBUG : Cache remote GDFS-cached:Encrypted/Pantheon: Services stopped
2020/08/10 16:44:00 DEBUG : Cache remote GDFS-cached:Encrypted/Pantheon: Services stopped
2020/08/10 16:44:00 DEBUG : Calling host.Unmount
2020/08/10 16:44:00 DEBUG : host.Unmount failed
(CTRL-C'd out)

Having just seen that log for the first time, is this simply an issue of the --vfs-cache-mode flag? If so, what would be most appropriate for it here?

If you are writing to the mount, it's tell you need that you need to add this flag to make writes work.

The cache backend is deprecated and going away soon as well:

https://rclone.org/cache/

That looks like you stopped the mount. Do you have a log of the mount dropping?

hello and welcome to the forum,

  • as per the log, add --vfs-cache-mode=writes
  • --allow-other does nothing on windows, you can remove it.
  • try removing --use-mmap, never found a use for it.
  • remove the cache backend, never found a use for it, it is buggy and soon to be depreciated.
    https://rclone.org/cache/#status
1 Like

--vfs-cache-mode seems to have fixed it almost entirely, cheers!

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