Mounted union doesn't refresh when new files are added

What is the problem you are having with rclone?

Mounted union doesn't refresh when new files/folders are added. I can see the new changes in rclone browser instantly but I have to stop and start the mount command for the change to appear in File Explorer. I think this is an issue with polling interval but from what I've seen Google Drive supports it.

What is your rclone version (output from rclone version)

rclone v1.55.1
- os/type: windows
- os/arch: amd64
- go/version: go1.16.3
- go/linking: dynamic
- go/tags: cmount

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

Windows 10, 64 bits

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

Google Drive (Shared Team Drive if it matters)

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

rclone mount gunion: X: --vfs-cache-mode full --dir-cache-time 48h --timeout=1h --poll-interval=10s --volname Plex --config "<PATH>\rclone\rclone.conf" --log-level DEBUG --log-file="<PATH>\rclone-v1.55.1-windows-amd64\rclone.log"

The rclone config contents with secrets removed.

[gcrypt]
type = crypt
remote = gdrive:
filename_encryption = standard
directory_name_encryption = true
password = *redacted*
password2 = *redacted*

[gdrive]
type = drive
client_id = *redacted*
client_secret = *redacted*
scope = drive
token = *redacted*
team_drive = *redacted*
root_folder_id = 

[gunion]
type = union
upstreams = D:\storage\data\media\ gcrypt:

A log from the command with the -vv flag

2021/06/17 00:35:13 DEBUG : Using config file from "<PATH>\rclone\\rclone.conf"
2021/06/17 00:35:13 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "gunion:" "X:" "--vfs-cache-mode" "full" "--dir-cache-time" "48h" "--timeout=1h" "--poll-interval=10s" "--volname" "Plex" "--config" "<PATH>\rclone\\rclone.conf" "--log-level" "DEBUG" "--log-file=<PATH>\rclone-v1.55.1-windows-amd64\\rclone.log"]
2021/06/17 00:35:13 DEBUG : Creating backend with remote "gunion:"
2021/06/17 00:35:13 DEBUG : Creating backend with remote "D:/storage/data/media/"
2021/06/17 00:35:13 DEBUG : Creating backend with remote "gcrypt:"
2021/06/17 00:35:13 DEBUG : fs cache: renaming cache item "D:/storage/data/media/" to be canonical "//?/D:/storage/data/media/"
2021/06/17 00:35:13 DEBUG : Creating backend with remote "D:/storage/data/media"
2021/06/17 00:35:13 DEBUG : fs cache: renaming cache item "D:/storage/data/media" to be canonical "//?/D:/storage/data/media"
2021/06/17 00:35:13 DEBUG : Creating backend with remote "gdrive:"
2021/06/17 00:35:13 DEBUG : union root '': actionPolicy = *policy.EpAll, createPolicy = *policy.EpMfs, searchPolicy = *policy.FF
2021/06/17 00:35:13 INFO  : union root '': poll-interval is not supported by this remote
2021/06/17 00:35:13 DEBUG : vfs cache: root is "\\\\?\\C:\\Users\\hersh\\AppData\\Local\\rclone\\vfs\\gunion"
2021/06/17 00:35:13 DEBUG : vfs cache: metadata root is "\\\\?\\C:\\Users\\hersh\\AppData\\Local\\rclone\\vfs\\gunion"
2021/06/17 00:35:13 DEBUG : Creating backend with remote "\\\\?\\C:\\Users\\hersh\\AppData\\Local\\rclone\\vfs\\gunion"
2021/06/17 00:35:13 DEBUG : fs cache: renaming cache item "\\\\?\\C:\\Users\\hersh\\AppData\\Local\\rclone\\vfs\\gunion" to be canonical "//?/C:/Users/hersh/AppData/Local/rclone/vfs/gunion"
2021/06/17 00:35:13 DEBUG : fs cache: switching user supplied name "\\\\?\\C:\\Users\\hersh\\AppData\\Local\\rclone\\vfs\\gunion" for canonical name "//?/C:/Users/hersh/AppData/Local/rclone/vfs/gunion"
2021/06/17 00:35:13 DEBUG : Network mode mounting is disabled
2021/06/17 00:35:13 DEBUG : Mounting on "X:" ("Plex")
2021/06/17 00:35:13 DEBUG : union root '': Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=Plex"]
2021/06/17 00:35:13 DEBUG : union root '': Init: 
2021/06/17 00:35:13 DEBUG : union root '': >Init: 
2021/06/17 00:35:13 DEBUG : /: Statfs: 
2021/06/17 00:35:13 DEBUG : Google drive root '': read info from Shared Drive "Google Drive"
2021/06/17 00:35:13 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/06/17 00:35:13 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/06/17 00:35:13 DEBUG : /: >Getattr: errc=0
2021/06/17 00:35:13 DEBUG : /: Readlink: 
2021/06/17 00:35:13 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.

hello and welcome to the forum,

how are you adding the files?

  • via the mount
  • to gcrypt
  • or what?

not an expert with unions but as per the debug log
union root '': poll-interval is not supported by this remote

I'm adding files by either:
a. downloading the file and placing it in the local storage.
b. rclone move the files from local storage to gcrypt

both of these don't update the mount in File Explorer.
Yeah I saw that line in the log but I'm not sure what it means as here Support poll-interval on union remotes · Issue #2837 · rclone/rclone · GitHub it says that it is supported.

i did a test on windows and inside wsl2 and both times, the log file gave the same text
union root '': poll-interval is not supported by this remote

That's weird, I was sure that unions supported polling. Do you think going for gcrypt on the union instead of the gdrive would work?

i already tried using a gdrive remote instead of a crypt, and still same message

It kinda late so I'll testing only using a normal gdrive mount and seeing if that works. If it doesn't work then something is probably wrong with my config right?

i do not know, but we have union experts and i am sure one will stop by soon...

I tested mounting gcrypt and my local storage separately. Polling work as expected with gcrypt, however when mounting my local storage, it didn't and behaved in the same way as described in the original post. Is there any way to enable polling for local storage?

You are waiting for this:

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