Rclone and google docs files

What is the problem you are having with rclone?

I'm using rclone with Google Drive. When I'm trying to open locally native Google Docs files, it fails. When checking what's wrong - "rclone ls gdrive:" these files has size "-1", which is obviously wrong. E.g. note here - Addendum...xlsx is uploaded file, while nodes.xlsx or INT-WIP.pptx are those created in Google Docs:

       -1 klearn.pptx
       -1 nodes.xlsx
    56634 boardingPass.pdf
       -1 INT-WIP.pptx
       -1 mod_links.xlsx
       -1 sizing.xlsx
       -1 LX-WIP.pptx
    66137 Addendum 5 aux..xlsx

Also worth to note, that "-1" size (and, thus, inability to open the file) reported only for documents (number of occurrences by extension):

$ rclone ls gdrive: | grep -w -- "-1" | awk -F"[.]" '{print $NF}' | sort | uniq -c
     25 docx
     20 pptx
     12 xlsx

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

rclone v1.64.2
- os/version: ubuntu 23.10 (64 bit)
- os/kernel: 6.5.0-10-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.3
- go/linking: static
- go/tags: none

Are you on the latest version of rclone? - Yes

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

Google Drive

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

rclone --log-file rcls.log -vv ls gdrive:

Mounting done using

rclone mount --daemon --vfs-cache-mode full gdrive:/ ~/GDrive/

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

type = drive
scope = drive
token = XXX
team_drive = 

A log from the command that you were trying to run with the -vv flag

2023/10/31 15:06:47 DEBUG : rclone: Version "v1.64.2" starting with parameters ["rclone" "--log-file" "rcls.log" "-vv" "ls" "gdrive:"]
2023/10/31 15:06:47 DEBUG : Creating backend with remote "gdrive:"
2023/10/31 15:06:47 DEBUG : Using config file from "/home/doka/.config/rclone/rclone.conf"
2023/10/31 15:06:49 DEBUG : Google drive root '': 'root_folder_id = xxxxxxxxxxx' - save this in the config to speed up startup
2023/10/31 15:06:55 DEBUG : 20 go routines active

Other environment

OS: Ubuntu 23.10
Kernel: Linux 6.5.0-10-generic
rclone installed using rclone's installation script

Thank you.

It's documented on the Google Drive page:

Google drive (rclone.org)

Have a read as it explains how Google Docs works.

1 Like

Thank you very much for the prompt answer, appreciate it. Thanks again.

1 Like

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