I deployed an instance of Wowza Streaming Engine on Google Cloud thank Made a bucket in Google Cloud Storage and mounted it all with GCFUSE. My bucket connected with success and I can see in it and list but I can't write any file with gsutil nor with any FTP even with RSA Key. I also tried gcsfuse -o allow_other but nothing change. What am I doing wrong please help
Can’t write any file into bucket only read after gcfuse
gcsfusegoogle-cloud-platformgoogle-cloud-storagegoogle-compute-engine
Best Answer
By default GCE VM instance has
Cloud API access scopes
scopeStorage
set toRead Only
. It's not enough to set it toRead Write
. To solve this issue you should set it toFull
by editing VM instance or using a gcloud command when the instance turned off.Please have a look at my steps below:
gsfuse
by following this article:so, we're not able to write with default
Cloud API access scopes
.Cloud API access scopes
with command:or via Console. 7. start the VM instance, mount the bucket and check again:
everything works now.
Alternatively, you can solve this issue by using service account as it is described below :
By default, GCE instances run as "Compute Engine default service account" which only has read access to GCS objects.
To write to GCS from a GCE instance, do one of the following:
To add the role to your GCE service account using the gcloud utility, run
Then find the entry marked "Compute Engine default service account." It will have an email address like
1234567890123-compute@developer.gserviceaccount.com.
To add the role to the GCE service account, run these commands:
Have a look at this Google Group thread, in order to successfully mount the bucket as a file system using Cloud Storage Fuse. For more details about the subject check this document.