Google Cloud Storage Service Account


#1

Hi

I’m trying to use rclone with Google Cloud Storage (not Google Drive) with a Service account.

I have a json service account key and my config looks like

[gcs]
type = google cloud storage
service_account_file = /root/key.json

However when trying to ls my bucket I get

rclone ls gcs:mybucket
2018/09/07 02:13:47 Failed to create file system for "gcs:mybucket": failed to configure Google Cloud Storage: empty token found - please run rclone config again

rclone version
rclone v1.43
- os/arch: linux/amd64
- go version: go1.11

This seems like a but but I could also be missing something in my config.

Has anyone got Google Cloud Storage working with a service account?


#2

v1.43 introduced a bug to the cloud storage backed, wich ist already fixed in the latest beta.
You can find the github issue here with workarounds for v1.43.


#3

Thanks, downgrading to 1.42 works.


#4

Just grab the latest version and it’s fixed in that.