0
votes

I'm trying to mount a bucket to my gcp instance, but it fails both with a newly created bucket and my existing one. I can see the buckets with gsutil ls, and I can copy files to them with gsutil cp.

However, when I try to mount using GCSFuse, the following happens:

xxx@downloader:~$ gcsfuse gs://yyy bdir/
Using mount point: /home/xxx/bdir
Opening GCS connection...
Opening bucket...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: setUpBucket: OpenBucket: Unknown bucket 
"gs://yyy"

Permissions seem to be OK.

xxx@downloader:~$ gcloud iam service-accounts list
NAME                                    EMAIL                                               DISABLED
Compute Engine default service account  [email protected]  False

This service account is listed as a user with Owner access for the bucket. For the project, the account is Editor and Storage Admin.

1

1 Answers

3
votes

Looking at the documentation here:

https://cloud.google.com/storage/docs/gcs-fuse

It seems that one should specify the bucket name and not a bucket URL.

For example:

gcsfuse yyy bdir/

instead of ...

gcsfuse gs://yyy bdir/