What is your rclone version (output from rclone version
)
rclone v1.53.1
- os/arch: linux/amd64
- go version: go1.15
Which OS you are using and how many bits (eg Windows 7, 64 bit)
❯ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
Which cloud storage system are you using? (eg Google Drive)
Google Drive (Team Drive) via crypt remote
Rclone mount command
/usr/bin/rclone mount \
--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36' \
--config=/home/user/.config/rclone/rclone.conf \
--allow-other \
--allow-non-empty \
--rc \
--rc-addr=localhost:5572 \
--rc-no-auth \
--cache-dir=/tmp/rclone \
--vfs-cache-mode full \
--vfs-cache-max-size 100G \
--vfs-cache-max-age 336h \
--poll-interval=15s \
--dir-cache-time 1000h \
--umask=002 \
--log-file /opt/rclone/logs/rclone.log \
-vv \
media: /mnt/remote
What problem are you having with rclone
It would appear ever since the 1.52 or 1.53 (difficult to determine the exact release) - I am getting issues where a mounted Team Drive does not refresh its internal vfs cache in certain situations where a file is deleted from the mount and a new file with the same name is re-uploaded to the Team Drive within a short period of time.
Note that I use a mergerfs
mount with the rclone mount underneath and any new files saved to /mnt/local
. These files are uploaded periodically via an rclone move
to the Team Drive remote.
The below use case happens very randomly, but typically always triggered by Sonarr updating an episode to a new version.
NB If I unmount and re-mount, the files appear fine.
Use case / Timeline:
- 17:23: File
Schitt's Creek - S04E11 - The Rollout (WEBDL-1080p).mkv
exists on remote and in mount - 17:24: New version of file is downloaded by Sonarr
- 17:24: Old file is deleted and replaced with the same name
- 17:36: New file is moved from the local disk in
/mnt/local
to the remote via anrclone move
- 17:36: rclone vfs logs a changeNotify event
- 17:36: File disappears from mount
Ouput of ls "/mnt/media/tvshows/Schitt's Creek (2015)/Season 04/"
(Notice Episode 11 is missing)
'Schitt'\''s Creek - S04E01 - Dead Guy in Room 4 (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E01 - Dead Guy in Room 4 (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E02 - Pregnancy Test (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E02 - Pregnancy Test (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E03 - Asbestos Fest (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E03 - Asbestos Fest (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E04 - Girls'\'' Night (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E05 - R.I.P. Moira Rose (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E06 - Open Mic (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E07 - The Barbecue (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E07 - The Barbecue (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E08 - The Jazzaguy (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E08 - The Jazzaguy (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E09 - The Olive Branch (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E09 - The Olive Branch (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E10 - Baby Sprinkle (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E10 - Baby Sprinkle (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E12 - Singles Week (WEBDL-1080p).en.srt'
'Schitt'\''s Creek - S04E12 - Singles Week (WEBDL-1080p).mkv'
'Schitt'\''s Creek - S04E13 - Merry Christmas, Johnny Rose (WEBRip-1080p).mkv'
Output of actual rclone remote: rclone lsf media:"tvshows/Schitt's Creek (2015)/Season 04"
(Notice Episode 11 is present)
Schitt's Creek - S04E01 - Dead Guy in Room 4 (WEBDL-1080p).en.srt
Schitt's Creek - S04E01 - Dead Guy in Room 4 (WEBDL-1080p).mkv
Schitt's Creek - S04E02 - Pregnancy Test (WEBDL-1080p).en.srt
Schitt's Creek - S04E02 - Pregnancy Test (WEBDL-1080p).mkv
Schitt's Creek - S04E03 - Asbestos Fest (WEBDL-1080p).en.srt
Schitt's Creek - S04E03 - Asbestos Fest (WEBDL-1080p).mkv
Schitt's Creek - S04E04 - Girls' Night (WEBDL-1080p).mkv
Schitt's Creek - S04E05 - R.I.P. Moira Rose (WEBDL-1080p).mkv
Schitt's Creek - S04E06 - Open Mic (WEBDL-1080p).mkv
Schitt's Creek - S04E07 - The Barbecue (WEBDL-1080p).en.srt
Schitt's Creek - S04E07 - The Barbecue (WEBDL-1080p).mkv
Schitt's Creek - S04E08 - The Jazzaguy (WEBDL-1080p).en.srt
Schitt's Creek - S04E08 - The Jazzaguy (WEBDL-1080p).mkv
Schitt's Creek - S04E09 - The Olive Branch (WEBDL-1080p).en.srt
Schitt's Creek - S04E09 - The Olive Branch (WEBDL-1080p).mkv
Schitt's Creek - S04E10 - Baby Sprinkle (WEBDL-1080p).en.srt
Schitt's Creek - S04E10 - Baby Sprinkle (WEBDL-1080p).mkv
Schitt's Creek - S04E11 - The Rollout (WEBDL-1080p).mkv
Schitt's Creek - S04E12 - Singles Week (WEBDL-1080p).en.srt
Schitt's Creek - S04E12 - Singles Week (WEBDL-1080p).mkv
Schitt's Creek - S04E13 - Merry Christmas, Johnny Rose (WEBRip-1080p).mkv
I've included a copy of the debug log that touches this episode: grep 'S04E11 - The Rollout' rclone.log
it's available here: https://pastebin.com/m49rGA8n
Let me know if you need more info from the debug log or any other questions.
Thanks!