Struggling with Shared Drives (Team Drives) on Google Drive

What is the problem you are having with rclone?

Been trying to copy from the local folder to a Shared Drive in Google Drive and I can not even ls the remote with

nazareno@fedora:~$ rclone ls AllDrives:
2024/02/13 20:50:38 Failed to create file system for "AllDrives:": failed to create upstream "A.V. - Cine I:": didn't find section in config file
nazareno@fedora:~$ rclone ls AllDrives:
2024/02/13 20:55:28 Failed to create file system for "AllDrives:": failed to create upstream "A.V. - Cine V:": didn't find section in config file
nazareno@fedora:~$ rclone ls AllDrives:
2024/02/13 20:56:31 Failed to create file system for "AllDrives:": failed to create upstream "A.V. - Cine III:": didn't find section in config file

Obviously, when I copy it's the same:

rclone copy 'dev/sdb1/:/run/media/nazareno/D290345090343D73/torrents/Pink Floyd - P.U.L.S.E' 'AllDrives:/z6:'
2024/02/13 21:08:01 Failed to create file system for "AllDrives:/z6:": failed to create upstream "A.V. - Cine XII _Kiewslowski_:": didn't find section in config file

I think that maybe it's a problem with the config file. Here it goes:
rclone config redacted

[AllDrives]
type = combine
upstreams = "0 - Coleccion=0 - Coleccion:" "A.V. - Cine I=A.V. - Cine I:" "A.V. - Cine II=A.V. - Cine II:" "A.V. - Cine III=A.V. - Cine III:" "A.V. - Cine IV=A.V. - Cine IV:" "A.V. - Cine IX _Buñuel III_=A.V. - Cine IX _Buñuel III_:" "A.V. - Cine V=A.V. - Cine V:" "A.V. - Cine VI _Buñuel II_=A.V. - Cine VI _Buñuel II_:" "A.V. - Cine VII _Tarkovsky II_=A.V. - Cine VII _Tarkovsky II_:" "A.V. - Cine VIII _Buñuel III_=A.V. - Cine VIII _Buñuel III_:" "A.V. - Cine X _Kieslowski_=A.V. - Cine X _Kieslowski_:" "A.V. - Cine XI _Buñuel-Kieslowski_=A.V. - Cine XI _Buñuel-Kieslowski_:" "A.V. - Cine XII _Kiewslowski_=A.V. - Cine XII _Kiewslowski_:" "A.V. - Cine XIII - Kiewlowski=A.V. - Cine XIII - Kiewlowski:" "A.V. - Cine XIII _Kieslowski_=A.V. - Cine XIII _Kieslowski_:" "A.V. - Cine XVI _Kieslowski_=A.V. - Cine XVI _Kieslowski_:" "A.V. - Opera-Ballet=A.V. - Opera-Ballet:" "L - Libros I _Español_=L - Libros I _Español_:" "L - Libros I _Ingles_=L - Libros I _Ingles_:" "L - Libros II _Ingles_=L - Libros II _Ingles_:" "L - Neuro=L - Neuro:" "M.C - Renacimiento I=M.C - Renacimiento I:" "M.C. - Barroco I=M.C. - Barroco I:" "M.C. - Barroco II - Bach 333 Collection=M.C. - Barroco II - Bach 333 Collection:" "M.C. - Barroco III=M.C. - Barroco III:" "M.C. - Barroco IV=M.C. - Barroco IV:" "M.C. - Barroco V=M.C. - Barroco V:" "M.C. - Barroco VI=M.C. - Barroco VI:" "M.C. - Barroco VII=M.C. - Barroco VII:" "M.C. - Clasicismo I=M.C. - Clasicismo I:" "M.C. - Clasicismo II=M.C. - Clasicismo II:" "M.C. - Clasicismo III=M.C. - Clasicismo III:" "M.C. - Romanticismo I=M.C. - Romanticismo I:" "M.C. - Romanticismo II=M.C. - Romanticismo II:" "M.C. - Romanticismo III=M.C. - Romanticismo III:" "M.C. - Siglo XX  II=M.C. - Siglo XX  II:" "M.C. - Siglo XX I=M.C. - Siglo XX I:" "M.P - Bossa Nova_Samba=M.P - Bossa Nova_Samba:" "M.P. - Gipsy=M.P. - Gipsy:" "M.P. - Jazz I=M.P. - Jazz I:" "M.P. - Jazz II=M.P. - Jazz II:" "M.P. - Jazz III=M.P. - Jazz III:" "M.P. - Jazz IV=M.P. - Jazz IV:" "M.P. - Jazz V=M.P. - Jazz V:" "M.P. - Rock=M.P. - Rock:" "Partituras=Partituras:" "Software=Software:" "Soundtracks=Soundtracks:" "T - OPS I=T - OPS I:" "z1=z1:" "z2=z2:" "z3=z3:" "z4=z4:" "z5=z5:" "z6=z6:" "z9=z9:"

[GDrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

My version is:

rclone version
rclone v1.65.2
- os/version: fedora 39 (64 bit)
- os/kernel: 6.7.3-200.fc39.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none

Thank you all!!!

Your combine remote is not configured correctly, e.g. first upstream:

upstreams = "0 - Coleccion=0 - Coleccion:"

What does it refer to? Not to anything defined in your config. You do not have remote named 0 - Coleccion

Upstreams should be defined as follows:

upstreams = name=remote:path

where name is your "virtual" directory name which will contain content defined by remote:path. And remote must refer to configured remote.

Have a read of combine docs:

I've done this because of the README

Rclone has a convenience feature for making a combine backend for all
the shared drives you have access to.

Assuming your main (non shared drive) Google drive remote is called
`drive:` you would run

    rclone backend -o config drives drive:

This would produce something like this:

    [My Drive]
    type = alias
    remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:

    [Test Drive]
    type = alias
    remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:

    [AllDrives]
    type = combine
    upstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"

If you then add that config to your config file (find it with `rclone
config file`) then you can access all the shared drives in one place
with the `AllDrives:` remote.

But I get what you're saying. I need to configure everyone of my Shared Drives as remotes I think. Is there a way for creating all the remotes of the Drives at once? They're 55 drives so doing this one by one will be a pain... Thanks!

However you decide to do it test first with two drives. No point to setup all 55 when doing something wrong.

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