Google Drive: Error 403: This file cannot be downloaded by the user., cannotDownloadFile

What is the problem you are having with rclone?

Some files are failing to download with a 403 error. But most are fine. Looks like the files giving me trouble are only the auto-generated chat files from google meets. So, it seems it has to something with that. Permissions look fine on the web interface. Maybe you could help me debug the issue?

image

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

rclone v1.70.3
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.15.5-gnu-parabola1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: none

Which cloud storage system are you using?

Google Drive

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

rclone sync gdrive-Drive /backups/Drive

Rclone config

[gdrive-Drive]
type = drive
scope = drive.readonly
service_account_file = /opt/XXX/gdrive-service-account-key.json
team_drive = XXX
root_folder_id = 

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

2025/08/18 12:46:04 ERROR : XX/Quick Meeting between YY YY and ZZ ZZ - 2025/07/23 16:59 CEST - Chat: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile

With --dump requests

2025/08/18 14:05:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/08/18 14:05:54 DEBUG : Quick Meeting between YY and ZZ - 2025/07/23 16:59 CEST - Chat: Need to transfer - File not found at Destination
2025/08/18 14:05:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/08/18 14:05:54 DEBUG : HTTP REQUEST (req 0xc0008266c0)
2025/08/18 14:05:54 DEBUG : GET /drive/v3/files/1KqoqZWitM0xJD2p1_7de0Qyp3rZwbArW?alt=media HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/
Authorization: XXXX
Accept-Encoding: gzip

2025/08/18 14:05:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/08/18 14:05:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/08/18 14:05:54 DEBUG : HTTP RESPONSE (req 0xc0008266c0)
2025/08/18 14:05:54 DEBUG : HTTP/1.1 403 Forbidden
Content-Length: 271
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Cache-Control: private, max-age=0
Content-Type: application/json; charset=UTF-8
Date: Mon, 18 Aug 2025 14:05:54 GMT
Expires: Mon, 18 Aug 2025 14:05:54 GMT
Server: ESF
Vary: Origin, X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Guploader-Uploadid: ABgVH881vxec2QBczndnD1HDlYh59slMeQephvydbv4PdmJE727zwbziBzl-JXqChBd_IL_e5GYqjuQ
X-Xss-Protection: 0

2025/08/18 14:05:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/08/18 14:05:54 ERROR : Quick Meeting between YY and ZZ - 2025/07/23 16:59 CEST - Chat: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:05:54 ERROR : Attempt 1/3 failed with 1 errors and: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:05:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/08/18 14:05:54 DEBUG : HTTP REQUEST (req 0xc0008277a0)
2025/08/18 14:05:54 DEBUG : GET /drive/v3/files?alt=json&corpora=drive&driveId=0AB3tt_s0j3PGUZ9PVA&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%2CresourceKey%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%2714OmOUap-uRNsHnhswGr-3eV42PDgMVr%27+in+parents%29+and+%28name%3D%27Quick+Meeting+between+YY+YY+and+ZZ+ZZ+-+2025%2F07%2F23+16%3A59+CEST+-+Chat%27%29&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.22.2 gdcl/20211201
Accept-Encoding: gzip

that is a very old, custom compiled, dev version of rclone from an out of date linux ubuntu repository

  1. uninstall that ancient version
  2. https://rclone.org/install/#script-installation
  3. test again

Done. I still have the same issue though.

2025/08/18 14:32:48 ERROR : Quick Meeting between YY YY and ZZ ZZ - 2025/07/23 16:59 CEST - Chat: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:32:48 ERROR : Attempt 1/3 failed with 1 errors and: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:32:49 ERROR : Quick Meeting between YY YY and ZZ ZZ - 2025/07/23 16:59 CEST - Chat: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:32:49 ERROR : Attempt 2/3 failed with 1 errors and: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:32:51 ERROR : Quick Meeting between YY YY and ZZ ZZ - 2025/07/23 16:59 CEST - Chat: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:32:51 ERROR : Attempt 3/3 failed with 1 errors and: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile
2025/08/18 14:32:51 NOTICE: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file cannot be downloaded by the user., cannotDownloadFile

afiak, rclone cannot download meet files, map files and a bunch of other such formats.

  • is there a gdrive api call to download chat fiels from google meets?
  • are you able to download via the web interface?

can you pick just one file that has the error and post the output of something like
rclone lsf gdrive-Drive:path/to/file --format=pMm --retries=1

based on that output, might be able to use a filter to exclude the files.

Sorry for the late response. I’ve been working of other stuff.

I was able to avoid errors entirely by using the following command:

rclone sync gdrive-Drive: /backups/Drive \
    --exclude='* - Chat' \
    --exclude='* - Recording'

For completion, here the result of the requested command:

Quick Meeting between XX XX and YY YY - 2025/07/23 16:59 CEST - Chat;{"btime":"2025-07-23T15:37:37.483Z","content-type":"text/plain","copy-requires-writer-permission":"false","mtime":"2025-07-28T17:43:38.009Z","starred":"false","viewed-by-me":"false","writers-can-share":"false"};text/plain

I can download files via the web interface, but not with the same user, I'm using a service account JSON file for downloading stuff programmatically. Permissions seem file though.

It's strange that I can't back up the files automatically generated by Google Chat, especially since I can download them through the web interface. Perhaps it's a permissions issue specific for Google Chat generated files. I don't know.

The 403 error supports that theory. Not sure why rclone can't download it, but examining the permissions online might give you a clue.

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