Google Team Drive mount not updating cache

Hi all,

I recently signed up for an Ultraseedbox streaming server and I've noticed that my Google Team Drive rclone mount (following their documentation) is not updating cache at all: any modification/deletion/addition of any file in my gdrive won't reflect in my local mount.

I already went through similar posts in this forum (symptoms are very similar) but they did not help with my specific case_

  • rclone-vfs-and-mergerfs-setup-on-ultraseedbox-2020-06/16953
  • rclone-vfs-and-mergerfs-setup-on-ultraseedbox/15889

I've noticed that I can manually update restarting the mount: systemctl --user restart chaffey-vfs.service

And I've also noticed that it seems that my mount gets stuck or something like that:

systemctl --user enable --now chaffey-vfs.service:
Job for rclone-vfs.service failed because the control process exited with error code.
See "systemctl --user status chaffey-vfs.service" and "journalctl --user -xe" for details.

samuyeah@lw880:~$ systemctl --user enable --now rclone-vfs.service
Job for rclone-vfs.service failed because the control process exited with error                                         code.
See "systemctl --user status rclone-vfs.service" and "journalctl --user -xe" for                                         details.
samuyeah@lw880:~$ systemctl --user status rclone-vfs.service
โ— rclone-vfs.service - RClone VFS Service
   Loaded: loaded (/home29/samuyeah/.config/systemd/user/rclone-vfs.service; ena
   Active: failed (Result: exit-code) since Wed 2020-11-25 20:52:19 CET; 2min 45
  Process: 7997 ExecStart=/home29/samuyeah/bin/rclone mount chaffey: /home29/sam
 Main PID: 7997 (code=exited, status=1/FAILURE)
   CGroup: /user.slice/user-1062.slice/user@1062.service/rclone-vfs.service
           โ””โ”€50382 /home29/samuyeah/bin/rclone mount chaffey: /home29/samuyeah/m
lines 1-7/7 (END)...skipping...
โ— rclone-vfs.service - RClone VFS Service
   Loaded: loaded (/home29/samuyeah/.config/systemd/user/rclone-vfs.service; enabled; vend
   Active: failed (Result: exit-code) since Wed 2020-11-25 20:52:19 CET; 2min 45s ago
  Process: 7997 ExecStart=/home29/samuyeah/bin/rclone mount chaffey: /home29/samuyeah/moun
 Main PID: 7997 (code=exited, status=1/FAILURE)
   CGroup: /user.slice/user-1062.slice/user@1062.service/rclone-vfs.service
           โ””โ”€50382 /home29/samuyeah/bin/rclone mount chaffey: /home29/samuyeah/mount/chaff

rclone version
rclone v1.53.3

  • os/arch: linux/amd64
  • go version: go1.15.5

rclone mount config:
nano .config/systemd/user/chaffey-vfs.service
(....)

    ExecStart=/home8/samuyeah/bin/rclone mount chaffey: /home8/samuyeah/Mount \
      --config /home8/samuyeah/.config/rclone/rclone.conf \
      --use-mmap \
      --dir-cache-time 1000h \
      --poll-interval=15s \
      --vfs-cache-mode writes \
      --tpslimit 10

StandardOutput=file:/home8/samuyeah/scripts/chaffey_vfs_mount.log
ExecStop=/bin/fusermount -uz /home8/samuyeah/Mount
Restart=on-failure

    (...)

The log file (StandardOutput=file:/home8/samuyeah/scripts/chaffey_vfs_mount.log) is empty, which re-enforces the idea that somehow the mount is stuck for some reason...

Thanks so much in advance for your help!

You'd want to add --log-file and give it a path for the log so you can see what the error is.

I'd guess that the mount location doesn't exist or is not empty.

Thanks for your reply @Animosity022

Sorry I didnยดt understand that:

Of course it exists and it is not empty... I have my remote mounted in there. The problem I'm having is that it is not refreshing and not reflecting any further changes in my gdrive after the remote was mounted for the 1st time (I just have a static picture of my Google Team Drive at the moment that rclone remote was mounted).

I've added a DEBUG level log but, since I'm a rclone newbie, I cannot see any errors there either. vfs cache looks for changes every 15 seconds but it does not find anything (while I'm doing tests in my gdrive creating and deleting folders in the meantime). I'd appreciate if someone points me in the right direction. Thanks again for your kind help.

I can only go by what you post so you shared:

That means it is not mounted so that's why I made my statement based on the information that you have provided.

You'd have to share the log and give some more details on what the problem is. You can see a file in the browser but not in the remote? Can you provide an example of a file? Can you run a rclone ls on the remote and see the file?

Sorry, my fault. I think that the problem with that specific error was that I didn't stop the mount correctly before trying to re-enable the service containing the rclone mount (chaffey-vfs.service). If I stop it first and then I re-enable it, it works fine:

samuyeah@lw889:~$ systemctl --user stop chaffey-vfs.service
samuyeah@lw889:~$ systemctl --user daemon-reload
samuyeah@lw889:~$ systemctl --user enable --now chaffey-vfs.service
samuyeah@lw889:~$ systemctl --user status chaffey-vfs.service
โ— chaffey-vfs.service - RClone VFS Service
   Loaded: loaded (/home8/samuyeah/.config/systemd/user/chaffey-vfs.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-11-27 15:01:17 CET; 22s ago
 Main PID: 31425 (rclone)
   CGroup: /user.slice/user-1023.slice/user@1023.service/chaffey-vfs.service
           โ””โ”€31425 /home8/samuyeah/bin/rclone mount chaffey: /home8/samuyeah/Mount --config /home8/samuyeah/.config/rclone/rclone.conf --use-mmap --dir-cache-time 1000h --poll-interval=15s --vfs-cache-mode writes --tpslimit 10
samuyeah@lw889:~$

Anyway, the problem I'm having is that, after following steps above, any change in my google drive (adding files/folders, deleting files/folders, modifying files/folders) won't show up in my local rclone mount.

Here's the log I was talking about before:

2020/11/27 13:25:48 DEBUG : rclone: Version "v1.53.3" starting with parameters ["/home8/samuyeah/bin/rclone" "mount" "chaffey:" "/home8/samuyeah/Mount" "--config" "/home8/samuyeah/.config/rclone/rclone.conf" "--use-mmap" "--dir-cache-time" "1000h" "--poll-interval=15s" "--vfs-cache-mode" "writes" "--tpslimit" "10" "--log-file" "/home8/samuyeah/scripts/chaffey_rclone_mount_log.txt" "--log-level" "DEBUG"]
2020/11/27 13:25:48 DEBUG : Creating backend with remote "chaffey:"
2020/11/27 13:25:48 DEBUG : Using config file from "/home8/samuyeah/.config/rclone/rclone.conf"
2020/11/27 13:25:48 INFO  : Starting HTTP transaction limiter: max 10 transactions/s with burst 1
2020/11/27 13:25:49 DEBUG : vfs cache: root is "/home8/samuyeah/.cache/rclone/vfs/chaffey"
2020/11/27 13:25:49 DEBUG : vfs cache: metadata root is "/home8/samuyeah/.cache/rclone/vfs/chaffey"
2020/11/27 13:25:49 DEBUG : Creating backend with remote "/home8/samuyeah/.cache/rclone/vfs/chaffey"
2020/11/27 13:25:49 DEBUG : Google drive root '': Mounting on "/home8/samuyeah/Mount"
2020/11/27 13:25:49 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/27 13:25:49 DEBUG : : Root: 
2020/11/27 13:25:49 DEBUG : : >Root: node=/, err=<nil>
2020/11/27 13:25:52 DEBUG : /: Lookup: name="container"
2020/11/27 13:25:52 DEBUG : /: >Lookup: node=container/, err=<nil>
2020/11/27 13:25:52 DEBUG : container/: Attr: 
2020/11/27 13:25:52 DEBUG : container/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:25:52 DEBUG : container/: Lookup: name="test"
2020/11/27 13:25:52 DEBUG : container/: >Lookup: node=container/test/, err=<nil>
2020/11/27 13:25:52 DEBUG : container/test/: Attr: 
2020/11/27 13:25:52 DEBUG : container/test/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:25:52 DEBUG : container/test/: ReadDirAll: 
2020/11/27 13:25:53 DEBUG : container/test/: >ReadDirAll: item=3, err=<nil>
2020/11/27 13:25:53 DEBUG : container/test/: Lookup: name="pelis"
2020/11/27 13:25:53 DEBUG : container/test/: >Lookup: node=container/test/pelis/, err=<nil>
2020/11/27 13:25:53 DEBUG : container/test/pelis/: Attr: 
2020/11/27 13:25:53 DEBUG : container/test/pelis/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:25:53 DEBUG : container/test/: Lookup: name="prueba"
2020/11/27 13:25:53 DEBUG : container/test/: >Lookup: node=container/test/prueba/, err=<nil>
2020/11/27 13:25:53 DEBUG : container/test/prueba/: Attr: 
2020/11/27 13:25:53 DEBUG : container/test/prueba/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:25:53 DEBUG : container/test/: Lookup: name="series"
2020/11/27 13:25:53 DEBUG : container/test/: >Lookup: node=container/test/series/, err=<nil>
2020/11/27 13:25:53 DEBUG : container/test/series/: Attr: 
2020/11/27 13:25:53 DEBUG : container/test/series/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:26:04 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:26:08 DEBUG : /: Attr: 
2020/11/27 13:26:08 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:26:19 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:26:34 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:26:49 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:26:49 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/27 13:27:04 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:27:05 DEBUG : /: Lookup: name="container"
2020/11/27 13:27:05 DEBUG : /: >Lookup: node=container/, err=<nil>
2020/11/27 13:27:05 DEBUG : container/: Attr: 
2020/11/27 13:27:05 DEBUG : container/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:05 DEBUG : container/: Lookup: name="test"
2020/11/27 13:27:05 DEBUG : container/: >Lookup: node=container/test/, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/: Attr: 
2020/11/27 13:27:05 DEBUG : container/test/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/: ReadDirAll: 
2020/11/27 13:27:05 DEBUG : container/test/: >ReadDirAll: item=3, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/: Lookup: name="pelis"
2020/11/27 13:27:05 DEBUG : container/test/: >Lookup: node=container/test/pelis/, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/pelis/: Attr: 
2020/11/27 13:27:05 DEBUG : container/test/pelis/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/: Lookup: name="prueba"
2020/11/27 13:27:05 DEBUG : container/test/: >Lookup: node=container/test/prueba/, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/prueba/: Attr: 
2020/11/27 13:27:05 DEBUG : container/test/prueba/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/: Lookup: name="series"
2020/11/27 13:27:05 DEBUG : container/test/: >Lookup: node=container/test/series/, err=<nil>
2020/11/27 13:27:05 DEBUG : container/test/series/: Attr: 
2020/11/27 13:27:05 DEBUG : container/test/series/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:19 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:27:34 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:27:49 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:27:49 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/27 13:27:51 DEBUG : /: Lookup: name="container"
2020/11/27 13:27:51 DEBUG : /: >Lookup: node=container/, err=<nil>
2020/11/27 13:27:51 DEBUG : container/: Attr: 
2020/11/27 13:27:51 DEBUG : container/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:51 DEBUG : container/: Lookup: name="test"
2020/11/27 13:27:51 DEBUG : container/: >Lookup: node=container/test/, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/: Attr: 
2020/11/27 13:27:51 DEBUG : container/test/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/: ReadDirAll: 
2020/11/27 13:27:51 DEBUG : container/test/: >ReadDirAll: item=3, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/: Lookup: name="pelis"
2020/11/27 13:27:51 DEBUG : container/test/: >Lookup: node=container/test/pelis/, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/pelis/: Attr: 
2020/11/27 13:27:51 DEBUG : container/test/pelis/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/: Lookup: name="prueba"
2020/11/27 13:27:51 DEBUG : container/test/: >Lookup: node=container/test/prueba/, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/prueba/: Attr: 
2020/11/27 13:27:51 DEBUG : container/test/prueba/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/: Lookup: name="series"
2020/11/27 13:27:51 DEBUG : container/test/: >Lookup: node=container/test/series/, err=<nil>
2020/11/27 13:27:51 DEBUG : container/test/series/: Attr: 
2020/11/27 13:27:51 DEBUG : container/test/series/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/27 13:28:04 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:28:19 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:28:34 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:28:49 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:28:49 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/27 13:29:04 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:29:19 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:29:34 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:29:49 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:29:49 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/27 13:30:04 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:30:19 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:30:34 DEBUG : Google drive root '': Checking for changes on remote
2020/11/27 13:30:49 DEBUG : Google drive root '': Checking for changes on remote

This happens with any kind of file:
samuyeah@lw889:~$ ls Mount/container/test/hola
samuyeah@lw889:~$ rclone ls chaffey:container/test/hola
2020/11/27 15:14:02 Failed to ls: directory not found
samuyeah@lw889:~$ systemctl --user restart chaffey-vfs.service
samuyeah@lw889:~$ ls Mount/container/test/hola
ls: cannot access 'Mount/container/test/hola': No such file or directory

You'd need to include your rclone.conf as well as that's needed to help understand your configuration which is why the help template asks for it.

Hi @Animosity022

Sorry I didn't included it before. I hope this helps:

[chaffey]
type = drive
client_id = XXXXX
client_secret = XXXXX
scope = drive
root_folder_id = XXXXX
token = {"access_token":"XXXXX"}

Sorry guys, sorry @Animosity022

I found the error in my rclone.config: diring rclone config process, I selected "Configure as a Team Drive? > No". This worked for me in previous versions of rclone but it seems to be NOT working anymore for google team drives like mine in newer versions of rclone. I selected "yes" this time and now it refreshes automatically as expected.

Sorry for any inconvenience caused and thanks so much for your kind support.

1 Like

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