GDrive Team / Google Cloud sync

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Is there a simple guide on how to set this up?

The manual basically says "create a cloud credential", assign that to a Cloud Sync Task and you're done...

Effectively this does not work for me - I am trying to access a drive shared with me (or i could coy to my own drive if at least that would be working)
Tried running this via gui and also rclone cli, but failed.

Gui:
I add my credientials, log in via Gui, when i say verify I get an error:

Code:
Error: 2021/04/04 12:15:52 ERROR : : error listing: couldn't list directory: Get "https://www.googleapis.com/drive/v3/files?alt=json&corpora=drive&driveId=MyDrive&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%27MyDrive%27+in+parents%29&supportsAllDrives=true": x509: certificate signed by unknown authority
2021/04/04 12:15:52 Failed to lsjson with 2 errors: last error was: error in ListJSON: couldn't list directory: Get "https://www.googleapis.com/drive/v3/files?alt=json&corpora=drive&driveId=MyDrive&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%27MyDrive%27+in+parents%29&supportsAllDrives=true": x509: certificate signed by unknown authority


If I run the same command in a browser I get
Code:
{"error":{"errors":[{"domain":"usageLimits","reason":"dailyLimitExceededUnreg","message":"Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.","extendedHelp":"https://code.google.com/apis/console"}],"code":403,"message":"Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."}}


O/c in that URL there is no account or credential - or is the (MyDrive /xed out) drive id global/unique?

Any pointers?

Thanks
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Looks like I posted in the wrong section (old FN)

@jgreco (or any other mod); Could you please move to appropriate subforum (I assume General Question wrt TrueNas Core). Thanks
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Darn, If I had known you granted wishes I would have gotten Ice Cream with it;)

Thanks
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
You wouldn't want Grinchy brand soft serve.

#include <poo-emoji.h>

;-)
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Is it cursed or does it just contain potassium benzoate?
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Solved...

I found that the CA error actually was due to my Firewall inspecting the https traffic to https://www.googleapis.com without me having added it as CA to TNC; i.e. fixed.

Next issue - I want to access a "Shared drive" (formerly Team drive). There is an option on the Gui for it, but it did not work (Drive not found).

Cause is that "Names are sound and smoke" as they say; i.e its a Display Name only and no actual id that you can use for anything.

Points out how to get the actual drive id you need to put in (basically open drive, take "drive/xyz" portion from the URI)
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
deleted - user error (was not oauth expiriation but different url (docs.google.com) which cause FW to intervene again). Should have looked in the actual log).
 
Last edited:
Top