If I'm using a VFS mount, can I delete from the web interface?


#1

If I have a VFS mount setup (the sweetspot one), can I delete something from the web interface, or will that bork the mount?


#2

You can delete from anywhere and changes show up based on the polling interval, which is 1 minute by default.


#3

poll-interval seems to pick up additions. But I do not see it pick up deletions on mounts or serves. @ncw is it supposed to pick up deletions?

EDIT: I do see it running. It just doesn’t invalidate/refresh:
2019/03/04 11:28:07 DEBUG : Google drive root ‘cloudp/xxxxxxxx’: Checking for changes on remote


#4

Definitely does. Just tested it.

I copied a file and removed it from the web interface.

felix@gemini:/GD$ ls -al
total 1
-rw-rw-r-- 1 felix felix 116 Mar  4 11:46 hosts
-rw-rw-r-- 1 felix felix   0 Jan 24 23:49 mounted
drwxrwxr-x 1 felix felix   0 Jun 17  2018 Movies
drwxrwxr-x 1 felix felix   0 Jun 17  2018 Radarr_Movies
drwxrwxr-x 1 felix felix   0 Apr 18  2017 TV
drwxrwxr-x 1 felix felix   0 Jun 30  2018 TV_Ended
felix@gemini:/GD$ date
Mon Mar  4 11:47:27 EST 2019
felix@gemini:/GD$ date
Mon Mar  4 11:48:08 EST 2019
felix@gemini:/GD$ ls -al
total 0
-rw-rw-r-- 1 felix felix 0 Jan 24 23:49 mounted
drwxrwxr-x 1 felix felix 0 Jun 17  2018 Movies
drwxrwxr-x 1 felix felix 0 Jun 17  2018 Radarr_Movies
drwxrwxr-x 1 felix felix 0 Apr 18  2017 TV
drwxrwxr-x 1 felix felix 0 Jun 30  2018 TV_Ended
felix@gemini:/GD$

I used a hosts file as an example.


#5

Here’s the log in DEBUG when I just redid it:

019/03/04 11:49:18 DEBUG : Google drive root '': Mounting on "/Test"
2019/03/04 11:49:18 DEBUG : Adding path "vfs/forget" to remote control registry
2019/03/04 11:49:18 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/03/04 11:49:18 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/03/04 11:49:18 DEBUG : : Root:
2019/03/04 11:49:18 DEBUG : : >Root: node=/, err=<nil>
2019/03/04 11:49:25 DEBUG : /: Attr:
2019/03/04 11:49:25 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2019/03/04 11:49:25 DEBUG : /: Lookup: name="hosts"
2019/03/04 11:49:25 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/03/04 11:49:25 DEBUG : /: Lookup: name="hosts"
2019/03/04 11:49:25 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2019/03/04 11:49:25 DEBUG : /: Create: name="hosts"
2019/03/04 11:49:25 DEBUG : hosts: Open: flags=O_WRONLY|O_CREATE|O_EXCL
2019/03/04 11:49:25 DEBUG : hosts: >Open: fd=hosts (w), err=<nil>
2019/03/04 11:49:25 DEBUG : /: >Create: node=hosts, handle=&{hosts (w)}, err=<nil>
2019/03/04 11:49:25 DEBUG : hosts: Attr:
2019/03/04 11:49:25 DEBUG : hosts: >Attr: a=valid=1s ino=0 size=0 mode=-rw-r--r--, err=<nil>
2019/03/04 11:49:25 DEBUG : &{hosts (w)}: Write: len=116, offset=0
2019/03/04 11:49:25 DEBUG : &{hosts (w)}: >Write: written=116, err=<nil>
2019/03/04 11:49:25 DEBUG : &{hosts (w)}: Flush:
2019/03/04 11:49:25 DEBUG : Google drive root '': File to upload is small (116 bytes), uploading instead of streaming
2019/03/04 11:49:26 INFO  : hosts: Copied (new)
2019/03/04 11:49:26 DEBUG : &{hosts (w)}: >Flush: err=<nil>
2019/03/04 11:49:26 DEBUG : &{hosts (w)}: Release:
2019/03/04 11:49:26 DEBUG : hosts: WriteFileHandle.Release nothing to do
2019/03/04 11:49:26 DEBUG : &{hosts (w)}: >Release: err=<nil>

2019/03/04 11:50:18 DEBUG : Google drive root '': Checking for changes on remote

2019/03/04 11:50:18 DEBUG : Google drive root '': Checking for changes on remote
2019/03/04 11:50:43 DEBUG : /: Attr:
2019/03/04 11:50:43 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2019/03/04 11:50:43 DEBUG : /: ReadDirAll:
2019/03/04 11:50:43 DEBUG : /: >ReadDirAll: item=4, err=<nil>
2019/03/04 11:50:43 DEBUG : /: Lookup: name="Arq Backup Data"
2019/03/04 11:50:43 DEBUG : /: >Lookup: node=Arq Backup Data/, err=<nil>
2019/03/04 11:50:43 DEBUG : Arq Backup Data/: Attr:
2019/03/04 11:50:43 DEBUG : Arq Backup Data/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2019/03/04 11:50:43 DEBUG : /: Lookup: name="backup"
2019/03/04 11:50:43 DEBUG : /: >Lookup: node=backup/, err=<nil>
2019/03/04 11:50:43 DEBUG : backup/: Attr:
2019/03/04 11:50:43 DEBUG : backup/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2019/03/04 11:50:43 DEBUG : /: Lookup: name="hosts"
2019/03/04 11:50:43 DEBUG : /: >Lookup: node=hosts, err=<nil>
2019/03/04 11:50:43 DEBUG : hosts: Attr:
2019/03/04 11:50:43 DEBUG : hosts: >Attr: a=valid=1s ino=0 size=116 mode=-rw-r--r--, err=<nil>
2019/03/04 11:50:43 DEBUG : /: Lookup: name="hosts"
2019/03/04 11:50:43 DEBUG : /: >Lookup: node=hosts, err=<nil>
2019/03/04 11:50:43 DEBUG : hosts: Attr:
2019/03/04 11:50:43 DEBUG : hosts: >Attr: a=valid=1s ino=0 size=116 mode=-rw-r--r--, err=<nil>
2019/03/04 11:50:43 DEBUG : /: Lookup: name="media"
2019/03/04 11:50:43 DEBUG : /: >Lookup: node=media/, err=<nil>
2019/03/04 11:50:43 DEBUG : media/: Attr:
2019/03/04 11:50:43 DEBUG : media/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>

It just doesn’t list the changes at all.


#6

What does your mount look like?


#7

rclone just uses it as a hint to re-read the directory so it should pick up deletions too.


#8

Two as I did one with defaults:

felix@gemini:~$ rclone mount GD: /Test -vv
2019/03/04 11:49:18 DEBUG : rclone: Version "v1.46" starting with parameters ["rclone" "mount" "GD:" "/Test" "-vv"]

and my normal streaming mount.

felix@gemini:~$ ps -ef | grep rclone
felix      604     1  1 Mar03 ?        00:10:56 /usr/bin/rclone mount gcrypt: /GD --allow-other --dir-cache-time 96h --drive-chunk-size 32M --log-level INFO --log-file /var/log/rclone.log --timeout 1h --umask 002 --rc

#9

Hmm. Doesn’t seem to work for me. :thinking: The host file was uploaded outside the vfs cache as well so it wasn’t in vfs cache but that still shouldn’t cause this.

root@REMOVED:/data/log# ls -l /data/Media/
2019/03/04 12:52:50 DEBUG : /: Attr: 
2019/03/04 12:52:50 DEBUG : /: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:52:50 DEBUG : /: ReadDirAll: 
2019/03/04 12:52:51 DEBUG : /: >ReadDirAll: item=8, err=<nil>
2019/03/04 12:52:51 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 12:52:51 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 12:52:51 DEBUG : AudioBooks/: Attr: 
2019/03/04 12:52:51 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:52:51 DEBUG : /: Lookup: name="Pictures"
2019/03/04 12:52:51 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 12:52:51 DEBUG : Pictures/: Attr: 
2019/03/04 12:52:51 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:52:51 DEBUG : /: Lookup: name="Software"
2019/03/04 12:52:51 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 12:52:51 DEBUG : Software/: Attr: 
2019/03/04 12:52:51 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:52:51 DEBUG : /: Lookup: name="Videos"
2019/03/04 12:52:51 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 12:52:51 DEBUG : Videos/: Attr: 
2019/03/04 12:52:51 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:52:51 DEBUG : /: Lookup: name="apk"
2019/03/04 12:52:51 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 12:52:51 DEBUG : apk/: Attr: 
2019/03/04 12:52:51 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:52:51 DEBUG : /: Lookup: name="eBooks"
2019/03/04 12:52:51 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 12:52:51 DEBUG : eBooks/: Attr: 
2019/03/04 12:52:51 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:52:51 DEBUG : /: Lookup: name="hosts"
2019/03/04 12:52:51 DEBUG : /: >Lookup: node=hosts, err=<nil>
2019/03/04 12:52:51 DEBUG : hosts: Attr: 
2019/03/04 12:52:51 DEBUG : hosts: >Attr: a=valid=5s ino=0 size=137 mode=-rw-rw-r--, err=<nil>
total 1
drwxrwxr-x 1 vpnuser root   0 May 18  2017 apk
drwxrwxr-x 1 vpnuser root   0 May 18  2017 AudioBooks
drwxrwxr-x 1 vpnuser root   0 May 18  2017 eBooks
-rw-rw-r-- 1 vpnuser root 137 Dec 16 13:24 hosts
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Pictures
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Software
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Videos
root@REMOVED:/data/log# rclone delete robgs-cryptp:Media/hosts
2019/03/04 12:53:13 DEBUG : Google drive root 'cloudp/lp08934q11u6a5gslo2ddds5b4': Checking for changes on remote
2019/03/04 12:53:14 INFO  : Cleaned the cache: objects 10890 (was 10890), total size 585.687M (was 585.687M)
2019/03/04 12:54:13 DEBUG : Google drive root 'cloudp/lp08934q11u6a5gslo2ddds5b4': Checking for changes on remote
2019/03/04 12:54:14 INFO  : Cleaned the cache: objects 10890 (was 10890), total size 585.687M (was 585.687M)

root@REMOVED:/data/log# ls -l /data/Media/
2019/03/04 12:54:17 DEBUG : /: Attr: 
2019/03/04 12:54:17 DEBUG : /: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: ReadDirAll: 
2019/03/04 12:54:17 DEBUG : /: >ReadDirAll: item=8, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 12:54:17 DEBUG : AudioBooks/: Attr: 
2019/03/04 12:54:17 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 12:54:17 DEBUG : AudioBooks/: Attr: 
2019/03/04 12:54:17 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="Pictures"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 12:54:17 DEBUG : Pictures/: Attr: 
2019/03/04 12:54:17 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="Pictures"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 12:54:17 DEBUG : Pictures/: Attr: 
2019/03/04 12:54:17 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="Software"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 12:54:17 DEBUG : Software/: Attr: 
2019/03/04 12:54:17 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="Software"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 12:54:17 DEBUG : Software/: Attr: 
2019/03/04 12:54:17 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="Videos"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 12:54:17 DEBUG : Videos/: Attr: 
2019/03/04 12:54:17 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="Videos"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 12:54:17 DEBUG : Videos/: Attr: 
2019/03/04 12:54:17 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="apk"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 12:54:17 DEBUG : apk/: Attr: 
2019/03/04 12:54:17 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="apk"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 12:54:17 DEBUG : apk/: Attr: 
2019/03/04 12:54:17 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="eBooks"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 12:54:17 DEBUG : eBooks/: Attr: 
2019/03/04 12:54:17 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="eBooks"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 12:54:17 DEBUG : eBooks/: Attr: 
2019/03/04 12:54:17 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="hosts"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=hosts, err=<nil>
2019/03/04 12:54:17 DEBUG : hosts: Attr: 
2019/03/04 12:54:17 DEBUG : hosts: >Attr: a=valid=5s ino=0 size=137 mode=-rw-rw-r--, err=<nil>
2019/03/04 12:54:17 DEBUG : /: Lookup: name="hosts"
2019/03/04 12:54:17 DEBUG : /: >Lookup: node=hosts, err=<nil>
2019/03/04 12:54:17 DEBUG : hosts: Attr: 
2019/03/04 12:54:17 DEBUG : hosts: >Attr: a=valid=5s ino=0 size=137 mode=-rw-rw-r--, err=<nil>
total 1
drwxrwxr-x 1 vpnuser root   0 May 18  2017 apk
drwxrwxr-x 1 vpnuser root   0 May 18  2017 AudioBooks
drwxrwxr-x 1 vpnuser root   0 May 18  2017 eBooks
-rw-rw-r-- 1 vpnuser root 137 Dec 16 13:24 hosts
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Pictures
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Software
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Videos
root@REMOVED:/data/log# 

Command:

rclone mount robgs-cryptp:Media /data/Media \
 --log-level DEBUG \
 --attr-timeout 5s \
 --umask $UMASK \
 --gid $gid --uid $uid \
 --allow-other \
 --read-only \
 --max-read-ahead 1024k \
 --default-permissions \
 --buffer-size 150M \
 --dir-cache-time 485h \
 --vfs-cache-mode writes  \
 --vfs-read-chunk-size 50M \
 --vfs-read-chunk-size-limit 150M \
 --vfs-cache-max-age 48000h \
 --vfs-cache-max-size 20G \
 --rc \
 --rc-addr $IP:6442 \
 --rc-user XXXX \
 --rc-pass XXXXXXX
exit

config:

[robgs]
type = drive
client_id = 
client_secret = 
token = 
use_trash = false

[robgs-cryptp]
type = crypt
remote = robgs:/cloudp
filename_encryption = 
password = 
password2 =

version

rclone v1.46.0-053-gd233efbf-beta
- os/arch: linux/amd64
- go version: go1.12

#10

Once I uploaded a file though it invalidated and everything looked good.

root@REMOVED:# rclone copy /etc/resolv.conf robgs-cryptp:Media/
root@REMOVED:# ls -al /data/Media
2019/03/04 13:10:30 DEBUG : /: Attr: 
2019/03/04 13:10:30 DEBUG : /: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: ReadDirAll: 
2019/03/04 13:10:30 DEBUG : /: >ReadDirAll: item=8, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name=".imhere"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=.imhere, err=<nil>
2019/03/04 13:10:30 DEBUG : .imhere: Attr: 
2019/03/04 13:10:30 DEBUG : .imhere: >Attr: a=valid=5s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 13:10:30 DEBUG : AudioBooks/: Attr: 
2019/03/04 13:10:30 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 13:10:30 DEBUG : AudioBooks/: Attr: 
2019/03/04 13:10:30 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="Pictures"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 13:10:30 DEBUG : Pictures/: Attr: 
2019/03/04 13:10:30 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="Pictures"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 13:10:30 DEBUG : Pictures/: Attr: 
2019/03/04 13:10:30 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="Software"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 13:10:30 DEBUG : Software/: Attr: 
2019/03/04 13:10:30 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="Software"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 13:10:30 DEBUG : Software/: Attr: 
2019/03/04 13:10:30 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="Videos"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 13:10:30 DEBUG : Videos/: Attr: 
2019/03/04 13:10:30 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="Videos"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 13:10:30 DEBUG : Videos/: Attr: 
2019/03/04 13:10:30 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="apk"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 13:10:30 DEBUG : apk/: Attr: 
2019/03/04 13:10:30 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="apk"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 13:10:30 DEBUG : apk/: Attr: 
2019/03/04 13:10:30 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="eBooks"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 13:10:30 DEBUG : eBooks/: Attr: 
2019/03/04 13:10:30 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="eBooks"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 13:10:30 DEBUG : eBooks/: Attr: 
2019/03/04 13:10:30 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="hosts"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=hosts, err=<nil>
2019/03/04 13:10:30 DEBUG : hosts: Attr: 
2019/03/04 13:10:30 DEBUG : hosts: >Attr: a=valid=5s ino=0 size=137 mode=-rw-rw-r--, err=<nil>
2019/03/04 13:10:30 DEBUG : /: Lookup: name="hosts"
2019/03/04 13:10:30 DEBUG : /: >Lookup: node=hosts, err=<nil>
2019/03/04 13:10:30 DEBUG : hosts: Attr: 
2019/03/04 13:10:30 DEBUG : hosts: >Attr: a=valid=5s ino=0 size=137 mode=-rw-rw-r--, err=<nil>
total 1
drwxrwxr-x 1 vpnuser root   0 May 18  2017 apk
drwxrwxr-x 1 vpnuser root   0 May 18  2017 AudioBooks
drwxrwxr-x 1 vpnuser root   0 May 18  2017 eBooks
-rw-rw-r-- 1 vpnuser root 137 Dec 16 13:24 hosts
-rw-rw-r-- 1 vpnuser root   0 Mar  6  2017 .imhere
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Pictures
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Software
drwxrwxr-x 1 vpnuser root   0 May 18  2017 Videos
root@REMOVED:# 2019/03/04 13:11:13 DEBUG : Google drive root 'cloudp/lp08934q11u6a5gslo2ddds5b4': Checking for changes on remote
2019/03/04 13:11:14 DEBUG : : invalidating directory cache
2019/03/04 13:11:14 INFO  : Cleaned the cache: objects 10890 (was 10890), total size 585.687M (was 585.687M)

root@REMOVED:# ls -al /data/Media
2019/03/04 13:11:22 DEBUG : /: Attr: 
2019/03/04 13:11:22 DEBUG : /: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: ReadDirAll: 
2019/03/04 13:11:22 DEBUG : /: >ReadDirAll: item=8, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name=".imhere"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=.imhere, err=<nil>
2019/03/04 13:11:22 DEBUG : .imhere: Attr: 
2019/03/04 13:11:22 DEBUG : .imhere: >Attr: a=valid=5s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name=".imhere"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=.imhere, err=<nil>
2019/03/04 13:11:22 DEBUG : .imhere: Attr: 
2019/03/04 13:11:22 DEBUG : .imhere: >Attr: a=valid=5s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 13:11:22 DEBUG : AudioBooks/: Attr: 
2019/03/04 13:11:22 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 13:11:22 DEBUG : AudioBooks/: Attr: 
2019/03/04 13:11:22 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="Pictures"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 13:11:22 DEBUG : Pictures/: Attr: 
2019/03/04 13:11:22 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="Pictures"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 13:11:22 DEBUG : Pictures/: Attr: 
2019/03/04 13:11:22 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="Software"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 13:11:22 DEBUG : Software/: Attr: 
2019/03/04 13:11:22 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="Software"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 13:11:22 DEBUG : Software/: Attr: 
2019/03/04 13:11:22 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="Videos"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 13:11:22 DEBUG : Videos/: Attr: 
2019/03/04 13:11:22 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="Videos"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 13:11:22 DEBUG : Videos/: Attr: 
2019/03/04 13:11:22 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="apk"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 13:11:22 DEBUG : apk/: Attr: 
2019/03/04 13:11:22 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="apk"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 13:11:22 DEBUG : apk/: Attr: 
2019/03/04 13:11:22 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="eBooks"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 13:11:22 DEBUG : eBooks/: Attr: 
2019/03/04 13:11:22 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="eBooks"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 13:11:22 DEBUG : eBooks/: Attr: 
2019/03/04 13:11:22 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:22 DEBUG : /: Lookup: name="resolv.conf"
2019/03/04 13:11:22 DEBUG : /: >Lookup: node=resolv.conf, err=<nil>
2019/03/04 13:11:22 DEBUG : resolv.conf: Attr: 
2019/03/04 13:11:22 DEBUG : resolv.conf: >Attr: a=valid=5s ino=0 size=60 mode=-rw-rw-r--, err=<nil>
total 1
drwxrwxr-x 1 vpnuser root  0 May 18  2017 apk
drwxrwxr-x 1 vpnuser root  0 May 18  2017 AudioBooks
drwxrwxr-x 1 vpnuser root  0 May 18  2017 eBooks
-rw-rw-r-- 1 vpnuser root  0 Mar  6  2017 .imhere
drwxrwxr-x 1 vpnuser root  0 May 18  2017 Pictures
-rw-rw-r-- 1 vpnuser root 60 Dec 16 13:24 resolv.conf
drwxrwxr-x 1 vpnuser root  0 May 18  2017 Software
drwxrwxr-x 1 vpnuser root  0 May 18  2017 Videos
root@REMOVED# ls -al /data/Media
2019/03/04 13:11:40 DEBUG : /: Attr: 
2019/03/04 13:11:40 DEBUG : /: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: ReadDirAll: 
2019/03/04 13:11:40 DEBUG : /: >ReadDirAll: item=8, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name=".imhere"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=.imhere, err=<nil>
2019/03/04 13:11:40 DEBUG : .imhere: Attr: 
2019/03/04 13:11:40 DEBUG : .imhere: >Attr: a=valid=5s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name=".imhere"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=.imhere, err=<nil>
2019/03/04 13:11:40 DEBUG : .imhere: Attr: 
2019/03/04 13:11:40 DEBUG : .imhere: >Attr: a=valid=5s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 13:11:40 DEBUG : AudioBooks/: Attr: 
2019/03/04 13:11:40 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="AudioBooks"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=AudioBooks/, err=<nil>
2019/03/04 13:11:40 DEBUG : AudioBooks/: Attr: 
2019/03/04 13:11:40 DEBUG : AudioBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="Pictures"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 13:11:40 DEBUG : Pictures/: Attr: 
2019/03/04 13:11:40 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="Pictures"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=Pictures/, err=<nil>
2019/03/04 13:11:40 DEBUG : Pictures/: Attr: 
2019/03/04 13:11:40 DEBUG : Pictures/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="Software"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 13:11:40 DEBUG : Software/: Attr: 
2019/03/04 13:11:40 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="Software"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=Software/, err=<nil>
2019/03/04 13:11:40 DEBUG : Software/: Attr: 
2019/03/04 13:11:40 DEBUG : Software/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="Videos"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 13:11:40 DEBUG : Videos/: Attr: 
2019/03/04 13:11:40 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="Videos"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=Videos/, err=<nil>
2019/03/04 13:11:40 DEBUG : Videos/: Attr: 
2019/03/04 13:11:40 DEBUG : Videos/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="apk"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 13:11:40 DEBUG : apk/: Attr: 
2019/03/04 13:11:40 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="apk"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=apk/, err=<nil>
2019/03/04 13:11:40 DEBUG : apk/: Attr: 
2019/03/04 13:11:40 DEBUG : apk/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="eBooks"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 13:11:40 DEBUG : eBooks/: Attr: 
2019/03/04 13:11:40 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="eBooks"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=eBooks/, err=<nil>
2019/03/04 13:11:40 DEBUG : eBooks/: Attr: 
2019/03/04 13:11:40 DEBUG : eBooks/: >Attr: attr=valid=5s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="resolv.conf"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=resolv.conf, err=<nil>
2019/03/04 13:11:40 DEBUG : resolv.conf: Attr: 
2019/03/04 13:11:40 DEBUG : resolv.conf: >Attr: a=valid=5s ino=0 size=60 mode=-rw-rw-r--, err=<nil>
2019/03/04 13:11:40 DEBUG : /: Lookup: name="resolv.conf"
2019/03/04 13:11:40 DEBUG : /: >Lookup: node=resolv.conf, err=<nil>
2019/03/04 13:11:40 DEBUG : resolv.conf: Attr: 
2019/03/04 13:11:40 DEBUG : resolv.conf: >Attr: a=valid=5s ino=0 size=60 mode=-rw-rw-r--, err=<nil>
total 1
drwxrwxr-x 1 vpnuser root  0 May 18  2017 apk
drwxrwxr-x 1 vpnuser root  0 May 18  2017 AudioBooks
drwxrwxr-x 1 vpnuser root  0 May 18  2017 eBooks
-rw-rw-r-- 1 vpnuser root  0 Mar  6  2017 .imhere
drwxrwxr-x 1 vpnuser root  0 May 18  2017 Pictures
-rw-rw-r-- 1 vpnuser root 60 Dec 16 13:24 resolv.conf
drwxrwxr-x 1 vpnuser root  0 May 18  2017 Software
drwxrwxr-x 1 vpnuser root  0 May 18  2017 Videos

#11

I run through a rclone upload and rclone delete and worked as expected:

felix@gemini:~$ rclone copy /etc/hosts gcrypt:
felix@gemini:~$ date
Mon Mar  4 13:28:01 EST 2019
felix@gemini:~$ rclone delete gcrypt:hosts
felix@gemini:~$ date
Mon Mar  4 13:28:21 EST 2019

the mount:

felix@gemini:/GD$ date
Mon Mar  4 13:27:56 EST 2019
felix@gemini:/GD$ ls
mounted  Movies  Radarr_Movies  TV  TV_Ended
felix@gemini:/GD$ ls -al
total 1
-rw-rw-r-- 1 felix felix 116 Feb 15 10:14 hosts
-rw-rw-r-- 1 felix felix   0 Jan 24 23:49 mounted
drwxrwxr-x 1 felix felix   0 Jun 17  2018 Movies
drwxrwxr-x 1 felix felix   0 Jun 17  2018 Radarr_Movies
drwxrwxr-x 1 felix felix   0 Apr 18  2017 TV
drwxrwxr-x 1 felix felix   0 Jun 30  2018 TV_Ended
felix@gemini:/GD$ date
Mon Mar  4 13:29:12 EST 2019
felix@gemini:/GD$ ls -al
total 0
-rw-rw-r-- 1 felix felix 0 Jan 24 23:49 mounted
drwxrwxr-x 1 felix felix 0 Jun 17  2018 Movies
drwxrwxr-x 1 felix felix 0 Jun 17  2018 Radarr_Movies
drwxrwxr-x 1 felix felix 0 Apr 18  2017 TV
drwxrwxr-x 1 felix felix 0 Jun 30  2018 TV_Ended

#12

One thing. You’re doing both a copy and a delete in the same span of 1 minute. The copy is invalidating the cache fine which masks the issue. Can you retry your test. Upload a file. wait a minute. list the directory. Delete that file. Wait a minute. List directory.

EDIT: Also are you using VFS cache? Can you try a mount with my command line? And what version are you using?


#13

I just tried the same thing on a completely different google drive with the same results.


#14

Looking at the API,

“Entries in the changes collection are ordered in chronological order. That is, the oldest changes show up first. The includeRemoved and restrictToMyDrive query parameters of the changes collection decide whether the response should include removed or shared items, respectively.”

There is a flag for removed files. I looked at the code and I didn’t see that flag set but I may not be looking in the right spot.


#15

Nah, I didn’t do it in the span of a minute. I copied, waited for it to show up, validated it was there and once it was there, I deleted and waited another minute. I didn’t start with a date command though so that’s hard to tell.

I’m on stable 1.46.


#16

Hmm. The default for that flag is true so that explains why I do not see the option set in the code.

includeRemoved boolean Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. (Default: true )

In my use-case though it is consistent across different drives on the latest beta.

I opened an issue to try to get to the bottom of it. Something is off.


#17

Just for an fyi, this was the problem. The issue continues this discussion rather than hijacking this thread. Sorry @filthyrich

[zonegd]
type = drive
client_id =
client_secret =
token =
use_trash = false