Hi @ncw
Thanks for doing this. It failed, but in a strange way.
I have included the whole command I run, in case I'm just plain doing it wrong.
There are three things in play:
- root_folder_id= in rclone.conf
- impersonate= in rclone.conf
- Path under 'drivename:/path' (which maybe should be 'drivename:path'
It mounted the path. 'ls' showed the top level folders.
Attempting to access a top level folder caused it to show the message
path: Transport endpoint is not connected
By that time rclone had quit, but the mountpoint still existed.
All this is under ubuntu 20.04, in case that helps.
+ exec /usr/bin/rclone mount -v -v -v -P --rc --user-agent xxxxxxxxxxxx --allow-non-empty --cache-db-purge --write-back-cache --allow-other --uid 1001 --gid 1001 --umask 002 --no-modtime --drive-use-trash --dir-cache-time 100h --timeout 1h --attr-timeout 1m --buffer-size 1G --vfs-read-chunk-size 4M --vfs-read-chunk-size-limit off Rustdrive:/Collections /export/media/Rust/RustDrive
+ sleep 10
2020/07/26 01:56:20 DEBUG : rclone: Version "v1.52.2-249-ga26ef2e3-fix-4419-drive-root-folder-id-beta" starting with parameters ["/usr/bin/rclone" "mount" "-v" "-v" "-v" "-P" "--rc" "--user-agent" "ocelotmedia" "--allow-non-empty" "--cache-db-purge" "--write-back-cache" "--allow-other" "--uid" "1001" "--gid" "1001" "--umask" "002" "--no-modtime" "--drive-use-trash" "--dir-cache-time" "100h" "--timeout" "1h" "--attr-timeout" "1m" "--buffer-size" "1G" "--vfs-read-chunk-size" "4M" "--vfs-read-chunk-size-limit" "off" "Rustdrive:/Collections" "/export/media/Rust/RustDrive"]
2020/07/26 01:56:20 NOTICE: Serving remote control on http://127.0.0.1:5572/
2020/07/26 01:56:20 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/07/26 01:56:22 DEBUG : fs cache: renaming cache item "Rustdrive:/Collections" to be canonical "Rustdrive:Collections"
2020/07/26 01:56:22 DEBUG : Google drive root 'Collections': Mounting on "/export/media/Rust/RustDrive"
2020/07/26 01:56:22 DEBUG : : Root:
2020/07/26 01:56:22 DEBUG : : >Root: node=/, err=<nil>
2020/07/26 01:56:25 DEBUG : /: Attr:
2020/07/26 01:56:25 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:25 DEBUG : : Statfs:
2020/07/26 01:56:25 DEBUG : : >Statfs: stat={Blocks:289983601161 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2020/07/26 01:56:26 DEBUG : /: Attr:
2020/07/26 01:56:26 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:27 DEBUG : /: Lookup: name="tracefs"
2020/07/26 01:56:27 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/07/26 01:56:27 DEBUG : /: Lookup: name="Rust"
2020/07/26 01:56:27 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/07/26 01:56:27 DEBUG : /: Lookup: name="Rust"
2020/07/26 01:56:27 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/07/26 01:56:27 DEBUG : /: Lookup: name="Rustdrive:Collections"
2020/07/26 01:56:27 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/07/26 01:56:27 DEBUG : /: ReadDirAll:
2020/07/26 01:56:27 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/07/26 01:56:27 DEBUG : /: Lookup: name="Packages"
2020/07/26 01:56:27 DEBUG : /: >Lookup: node=Packages/, err=<nil>
2020/07/26 01:56:27 DEBUG : Packages/: Attr:
2020/07/26 01:56:27 DEBUG : Packages/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:27 DEBUG : /: Lookup: name="Archive"
2020/07/26 01:56:27 DEBUG : /: >Lookup: node=Archive/, err=<nil>
2020/07/26 01:56:27 DEBUG : Archive/: Attr:
2020/07/26 01:56:27 DEBUG : Archive/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:29 DEBUG : /: Attr:
2020/07/26 01:56:29 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:29 DEBUG : /: ReadDirAll:
2020/07/26 01:56:29 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/07/26 01:56:29 DEBUG : /: Lookup: name="Packages"
2020/07/26 01:56:29 DEBUG : /: >Lookup: node=Packages/, err=<nil>
2020/07/26 01:56:29 DEBUG : Packages/: Attr:
2020/07/26 01:56:29 DEBUG : Packages/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:29 DEBUG : /: Lookup: name="Archive"
2020/07/26 01:56:29 DEBUG : /: >Lookup: node=Archive/, err=<nil>
2020/07/26 01:56:29 DEBUG : Archive/: Attr:
2020/07/26 01:56:29 DEBUG : Archive/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:30 DEBUG : /: Attr:
2020/07/26 01:56:30 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:30 DEBUG : /: ReadDirAll:
2020/07/26 01:56:30 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/07/26 01:56:30 DEBUG : /: Lookup: name="Packages"
2020/07/26 01:56:30 DEBUG : /: >Lookup: node=Packages/, err=<nil>
2020/07/26 01:56:30 DEBUG : Packages/: Attr:
2020/07/26 01:56:30 DEBUG : Packages/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:30 DEBUG : Packages/: ReadDirAll:
2020/07/26 01:56:30 DEBUG : /: Attr:
2020/07/26 01:56:30 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/07/26 01:56:31 DEBUG : Packages/: >ReadDirAll: item=11, err=<nil>
2020/07/26 01:56:31 DEBUG : rclone: Version "v1.52.2-249-ga26ef2e3-fix-4419-drive-root-folder-id-beta" finishing with parameters ["/usr/bin/rclone" "mount" "-v" "-v" "-v" "-P" "--rc" "--user-agent" "ocelotmedia" "--allow-non-empty" "--cache-db-purge" "--write-back-cache" "--allow-other" "--uid" "1001" "--gid" "1001" "--umask" "002" "--no-modtime" "--drive-use-trash" "--dir-cache-time" "100h" "--timeout" "1h" "--attr-timeout" "1m" "--buffer-size" "1G" "--vfs-read-chunk-size" "4M" "--vfs-read-chunk-size-limit" "off" "Rustdrive:/Collections" "/export/media/Rust/RustDrive"]
[rustdrive]
type = drive
scope = drive
acknowledge_abuse = true
client_id = xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
client_secret = xxxxxxxxxxxxxxxxxxxxxxxx
chunk_size = 4M
use_trash = false
root_folder_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
service_account_file = $HOME/.config/rclone/xxxxxx-xxxxx-xxxxxxxxxxxx.json
impersonate = admin@xxxxxxx.xxx