Hi rcloners,
Not sure if this is a bug, a config issue or a permissions issue. Any assistance very welcome!
I have been experimenting with rclone mount on a spare Windows 2012 Server:
- Rclone v1.45
- Gdrive -> GdriveCrypt (no backend cache)
- rclone and Sonarr running as the “Local System” user
- Mount command:
rclone mount GdriveDirectCrypt: F: --allow-other --bind 10.0.0.45 --dir-cache-time 72h --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off --vfs-cache-mode writes --buffer-size 0 --rc --drive-chunk-size 32M --volname Media --tpslimit 5 --fast-list --cache-db-purge --log-file C:\rclone\logs\rclone.log -vv --debug-fuse
In Windows Exporer I can copy, write, delete files on the mount without issue. I can also open a text file on the mount in Notepad, edit and then save it.
But when adding a folder within the mount to Sonarr:
- Sonarr successfully creates it’s “sonarr_write_test.txt” file in the mount folder that it was pointed to
- Sonarr should then delete this file from the mount and continue with it’s operations
- Instead, the rclone mount freezes and can no longer be accessed by Sonarr, Explorer or via the command line.
Sonarr produces no logs (even in Debug and Trace modes) and with -vv --debug-fuse
rclone produces the following log extract:
rclone[TID=3124]: FFFFFA800B195690: >>Create [UT---C] "\tv\90210\sonarr_write_test.txt", FILE_OVERWRITE_IF, CreateOptions=400064, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=00000000000005FC[PID=3318], DesiredAccess=120196, GrantedAccess=0, ShareAccess=1
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Getattr: fh=0xFFFFFFFFFFFFFFFF
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Getattr: errc=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Getattr: fh=0xFFFFFFFFFFFFFFFF
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Getattr: errc=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Open: flags=0x1
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: OpenFile: flags=O_WRONLY, perm=-rwxrwxrwx
2018/12/17 04:52:38 DEBUG : tv/90210/sonarr_write_test.txt: Open: flags=O_WRONLY
2018/12/17 04:52:38 DEBUG : tv/90210/sonarr_write_test.txt: >Open: fd=tv/90210/sonarr_write_test.txt (rw), err=<nil>
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >OpenFile: fd=tv/90210/sonarr_write_test.txt (rw), err=<nil>
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Open: errc=0, fh=0x0
rclone[TID=3124]: FFFFFA800B195690: <<Create IoStatus=0[3] UserContext=0000000000000000:00000000003409F0, GrantedAccess=120196, FileInfo={FileAttributes=0, ReparseTag=0, AllocationSize=0:1000, FileSize=0:7f, CreationTime=2018-12-16T20:29:16.295Z, LastAccessTime=2018-12-16T20:29:16.295Z, LastWriteTime=2018-12-16T20:29:16.295Z, ChangeTime=2018-12-16T20:29:16.295Z, IndexNumber=0:4cc0}
rclone[TID=3060]: FFFFFA800B195690: >>Overwrite "\tv\90210\sonarr_write_test.txt", 0000000000000000:00000000003409F0, FileAttributes=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Truncate: size=0, fh=0x0
2018/12/17 04:52:38 DEBUG : tv/90210/sonarr_write_test.txt(0xc000166720): Opening cached copy with flags=O_WRONLY
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Truncate: errc=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Getattr: fh=0x0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Getattr: errc=0
rclone[TID=3060]: FFFFFA800B195690: <<Overwrite IoStatus=0[0] FileInfo={FileAttributes=0, ReparseTag=0, AllocationSize=0:0, FileSize=0:0, CreationTime=2018-05-05T13:42:39.964Z, LastAccessTime=2018-05-05T13:42:39.964Z, LastWriteTime=2018-05-05T13:42:39.964Z, ChangeTime=2018-05-05T13:42:39.964Z, IndexNumber=0:4cc0}
rclone[TID=3060]: FFFFFA800B195690: >>Write 0000000000000000:00000000003409F0, Address=00000000003F0000, Offset=0:0, Length=127, Key=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Getattr: fh=0x0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Getattr: errc=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Write: ofst=0, fh=0x0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Write: n=127
rclone[TID=3060]: FFFFFA800B195690: <<Write IoStatus=0[127] FileInfo={FileAttributes=0, ReparseTag=0, AllocationSize=0:1000, FileSize=0:7f, CreationTime=2018-05-05T13:42:39.964Z, LastAccessTime=2018-05-05T13:42:39.964Z, LastWriteTime=2018-05-05T13:42:39.964Z, ChangeTime=2018-05-05T13:42:39.964Z, IndexNumber=0:4cc0}
rclone[TID=3060]: FFFFFA800B195690: >>Cleanup 0000000000000000:00000000003409F0
rclone[TID=3060]: FFFFFA800B195690: <<Cleanup IoStatus=0[0]
rclone[TID=3060]: FFFFFA800B40E8B0: >>Close 0000000000000000:00000000003409F0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Flush: fh=0x0
2018/12/17 04:52:38 DEBUG : tv/90210/sonarr_write_test.txt(0xc000166720): close:
rclone[TID=3124]: FFFFFA800B195690: >>Create [UT---C] "\tv\90210\sonarr_write_test.txt", FILE_OPEN, CreateOptions=200040, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=00000000000005FC[PID=3318], DesiredAccess=10080, GrantedAccess=0, ShareAccess=7
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Getattr: fh=0xFFFFFFFFFFFFFFFF
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Getattr: errc=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Getattr: fh=0xFFFFFFFFFFFFFFFF
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Getattr: errc=0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Open: flags=0x0
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2018/12/17 04:52:38 DEBUG : tv/90210/sonarr_write_test.txt: Open: flags=O_RDONLY
2018/12/17 04:52:38 DEBUG : tv/90210/sonarr_write_test.txt: >Open: fd=tv/90210/sonarr_write_test.txt (rw), err=<nil>
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >OpenFile: fd=tv/90210/sonarr_write_test.txt (rw), err=<nil>
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Open: errc=0, fh=0x1
rclone[TID=3124]: FFFFFA800B195690: <<Create IoStatus=0[1] UserContext=0000000000000000:0000000000340840, GrantedAccess=10080, FileInfo={FileAttributes=0, ReparseTag=0, AllocationSize=0:1000, FileSize=0:7f, CreationTime=2018-05-05T13:42:39.964Z, LastAccessTime=2018-05-05T13:42:39.964Z, LastWriteTime=2018-05-05T13:42:39.964Z, ChangeTime=2018-05-05T13:42:39.964Z, IndexNumber=0:4cc0}
rclone[TID=3124]: FFFFFA800B195690: >>SetInformation [Disposition] "\tv\90210\sonarr_write_test.txt", 0000000000000000:0000000000340840, Delete
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Getattr: fh=0x1
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: >Getattr: errc=0
rclone[TID=3124]: FFFFFA800B195690: <<SetInformation IoStatus=0[0] FileInfo={FileAttributes=0, ReparseTag=0, AllocationSize=0:1000, FileSize=0:7f, CreationTime=2018-05-05T13:42:39.964Z, LastAccessTime=2018-05-05T13:42:39.964Z, LastWriteTime=2018-05-05T13:42:39.964Z, ChangeTime=2018-05-05T13:42:39.964Z, IndexNumber=0:4cc0}
rclone[TID=3124]: FFFFFA800B195690: >>Cleanup [Delete] "\tv\90210\sonarr_write_test.txt", 0000000000000000:0000000000340840
2018/12/17 04:52:38 DEBUG : /tv/90210/sonarr_write_test.txt: Unlink:
2018/12/17 04:52:38 DEBUG : tv/90210/sonarr_write_test.txt: Modification times differ by -23m21.7583018s: 2018-12-17 04:52:38.0533018 +0800 CST, 2018-12-16 20:29:16.295 +0000 UTC
2018/12/17 04:52:39 INFO : tv/90210/sonarr_write_test.txt: Copied (replaced existing)
rclone[TID=320c]: FFFFFA800D8638D0: >>Create [UT---C] "\", FILE_OPEN, CreateOptions=21, FileAttributes=10, Security=NULL, AllocationSize=0:0, AccessToken=0000000000000688[PID=13b8], DesiredAccess=100000, GrantedAccess=0, ShareAccess=0
rclone[TID=321c]: FFFFFA800AC36E10: >>Create [UT---C] "\", FILE_OPEN, CreateOptions=0, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=0000000000000664[PID=13b8], DesiredAccess=100081, GrantedAccess=0, ShareAccess=7
2018/12/17 04:53:26 DEBUG : Google drive root 'media': Checking for changes on remote
2018/12/17 04:53:26 DEBUG : Cleaning the cache
2018/12/17 04:53:27 DEBUG : tv/90210: invalidating directory cache
2018/12/17 04:54:26 DEBUG : Google drive root 'media': Checking for changes on remote
2018/12/17 04:54:26 DEBUG : Cleaning the cache
2018/12/17 04:55:26 DEBUG : Cleaning the cache
2018/12/17 04:55:26 DEBUG : Google drive root 'media': Checking for changes on remote
2018/12/17 04:56:26 DEBUG : Cleaning the cache
2018/12/17 04:56:26 DEBUG : Google drive root 'media': Checking for changes on remote
2018/12/17 04:57:26 DEBUG : Google drive root 'media': Checking for changes on remote
2018/12/17 04:57:26 DEBUG : Cleaning the cache
I can’t see any real clues here so any thoughts are very welcome.