Mounted Google shared folder doesn’t show all files

What is the problem you are having with rclone?

Hi,

I am a first time rclone user and using it on CentOS 8 stream.
I have mounted a shared google drive and was able to copy files to the mountpoint.

While the files are available on the shared Google Drive, they are not listed anymore by using the "ls -l" command.
When using the rclone ls -l %%remote_name%%: command, all files are listed.

When creating a new file, and next listing the directory using the "ls -l" command, only the created/copied file is listed while the other files are not.
Please note that I have redacted some of the information provided here and in the log files by putting it between double %-characters.

Am I missing some config options to get this functioning properly?

Thanks in advance,

Run the command 'rclone version' and share the full output of the command.

- os/version: centos 8 (64 bit)
- os/kernel: 4.18.0-408.el8.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.12
- go/linking: dynamic
- go/tags: none

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

Google Shared Drive

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

rclone mount -vv  --drive-shared-with-me %%remote_name%%:  %%mount_point%%

The rclone config contents with secrets removed.

[%%remote_name%%]
type = drive
client_id = [REDACTED]
client_secret = [REDACTED]
scope = drive
root_folder_id =
token = [REDACTED]
team_drive = [REDACTED]

A log from the command with the -vv flag

2022/11/22 22:06:22 DEBUG : rclone: Version "v1.57.0-DEV" starting with parameters ["rclone" "mount" "-vv" "--drive-shared-with-me" "%%remote_name%%:" "%%mount_point%%"]
2022/11/22 22:06:22 DEBUG : Creating backend with remote "%%remote_name%%:"
2022/11/22 22:06:22 DEBUG : Using config file from "/home/%%user%%/.config/rclone/rclone.conf"
2022/11/22 22:06:22 DEBUG : %%remote_name%%: detected overridden config - adding "{ysOIc}" suffix to name
2022/11/22 22:06:22 DEBUG : fs cache: renaming cache item "%%remote_name%%:" to be canonical "%%remote_name%%{ysOIc}:"
2022/11/22 22:06:23 DEBUG : Google drive root '': Mounting on "%%mount_point%%"
2022/11/22 22:06:23 DEBUG : : Root:
2022/11/22 22:06:23 DEBUG : : >Root: node=/, err=<nil>
2022/11/22 22:07:23 DEBUG : Google drive root '': Checking for changes on remote
2022/11/22 22:08:23 DEBUG : Google drive root '': Checking for changes on remote
2022/11/22 22:08:58 DEBUG : /: Attr:
2022/11/22 22:08:58 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/11/22 22:09:01 DEBUG : /: Attr:
2022/11/22 22:09:01 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/11/22 22:09:01 DEBUG : /: ReadDirAll:
2022/11/22 22:09:01 DEBUG : Google drive root '': read info from Shared Drive "%%SHARED-DRIVE%%"
2022/11/22 22:09:01 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2022/11/22 22:09:11 DEBUG : /: Lookup: name="test4.txt"
2022/11/22 22:09:11 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2022/11/22 22:09:11 DEBUG : /: Create: name="test4.txt"
2022/11/22 22:09:11 DEBUG : test4.txt: Open: flags=O_WRONLY|O_CREATE|0x800
2022/11/22 22:09:11 DEBUG : : Added virtual directory entry vAddFile: "test4.txt"
2022/11/22 22:09:11 DEBUG : test4.txt: >Open: fd=test4.txt (w), err=<nil>
2022/11/22 22:09:11 DEBUG : /: >Create: node=test4.txt, handle=&{test4.txt (w)}, err=<nil>
2022/11/22 22:09:11 DEBUG : test4.txt: Attr:
2022/11/22 22:09:11 DEBUG : test4.txt: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2022/11/22 22:09:11 DEBUG : &{test4.txt (w)}: Flush:
2022/11/22 22:09:11 DEBUG : test4.txt: WriteFileHandle.Flush unwritten handle, writing 0 bytes to avoid race conditions
2022/11/22 22:09:11 DEBUG : : Added virtual directory entry vAddFile: "test4.txt"
2022/11/22 22:09:11 DEBUG : &{test4.txt (w)}: >Flush: err=<nil>
2022/11/22 22:09:11 DEBUG : test4.txt: Setattr: a=Setattr [ID=0x18 Node=0x2 Uid=1001 Gid=1001 Pid=1476961] atime=2022-11-22 22:09:11.079050611 +0100 CET atime=now mtime=2022-11-22 22:09:11.079050611 +0100 CET mtime=now handle=INVALID-0x0
2022/11/22 22:09:11 DEBUG : test4.txt: >Setattr: err=<nil>
2022/11/22 22:09:11 DEBUG : test4.txt: Attr:
2022/11/22 22:09:11 DEBUG : test4.txt: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2022/11/22 22:09:11 DEBUG : &{test4.txt (w)}: Flush:
2022/11/22 22:09:11 DEBUG : Google drive root '': File to upload is small (0 bytes), uploading instead of streaming
2022/11/22 22:09:12 DEBUG : test4.txt: md5 = d41d8cd98f00b204e9800998ecf8427e OK
2022/11/22 22:09:12 INFO  : test4.txt: Copied (new)
2022/11/22 22:09:12 DEBUG : test4.txt: Not setting pending mod time 2022-11-22 22:09:11.079050611 +0100 CET as it is already set
2022/11/22 22:09:12 DEBUG : : Added virtual directory entry vAddFile: "test4.txt"
2022/11/22 22:09:12 DEBUG : &{test4.txt (w)}: >Flush: err=<nil>
2022/11/22 22:09:12 DEBUG : &{test4.txt (w)}: Release:
2022/11/22 22:09:12 DEBUG : test4.txt: WriteFileHandle.Release nothing to do
2022/11/22 22:09:12 DEBUG : &{test4.txt (w)}: >Release: err=<nil>
2022/11/22 22:09:14 DEBUG : /: Attr:
2022/11/22 22:09:14 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/11/22 22:09:14 DEBUG : /: ReadDirAll:
2022/11/22 22:09:14 DEBUG : /: >ReadDirAll: item=3, err=<nil>
2022/11/22 22:09:14 DEBUG : test4.txt: Attr:
2022/11/22 22:09:14 DEBUG : test4.txt: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-r--, err=<nil>
2022/11/22 22:09:23 DEBUG : Google drive root '': Checking for changes on remote
2022/11/22 22:09:23 DEBUG : : changeNotify: relativePath="test4.txt", type=1
2022/11/22 22:09:23 DEBUG : : invalidating directory cache
2022/11/22 22:09:23 DEBUG : : >changeNotify:
2022/11/22 22:09:57 DEBUG : /: Attr:
2022/11/22 22:09:57 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2022/11/22 22:09:57 DEBUG : /: ReadDirAll:
2022/11/22 22:09:58 DEBUG : Google drive root '': read info from Shared Drive "%%SHARED-DRIVE%%"
2022/11/22 22:09:58 DEBUG : : Removed virtual directory entry vAddFile: "test4.txt"
2022/11/22 22:09:58 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2022/11/22 22:10:23 DEBUG : Google drive root '': Checking for changes on remote
2022/11/22 22:10:31 DEBUG : /: Attr:
2022/11/22 22:10:31 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
^C2022/11/22 22:10:37 INFO  : Signal received: interrupt
2022/11/22 22:10:37 ERROR : %%mount_point%%: Unmounted rclone mount
2022/11/22 22:10:37 INFO  : Exiting...

Output from both the ls -l and the rclone ls -l %%remote_name%%: command

[user@host %%mount_point%%]$ ls -l
total 0
[user@host %%mount_point%%]$ touch test4.txt
[user@host %%mount_point%%]$ ls -l
total 0
-rw-rw-r--. 1 user group 0 Nov 22 22:09 test4.txt
[user@host %%mount_point%%]$ rclone ls -l %%remote_name%%:
        0 test4.txt
        0 test3.txt
        0 file2.txt
        0 testfile_file.txt
        0 anotherfile.txt
146919089 VUL.pdf
903314114 VIR.pdf
 53456453 UMI.pdf
524395276 UMA.pdf
103642508 TRI.pdf
 76543490 TAU.pdf
768731034 SGR.pdf
...

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