It looks like you have insufficient GCS permissions. Have a look at the documentation for
gcsfuse. If you're using a service account on a GCE VM make sure to set up the VM with the
storage-full access scope.
You can try to fix it in this way:
- create a service account (more information here)
- create a key for the service account, and download the .json file
- grant an appropriate role to the service account
- grant the appropriate permissions to the service account on the bucket
- upload the .json credentials for the service account to the VM
define an environment variable that contains the path to the service account credentials when calling
gcsfuse from the command line:
GOOGLE_APPLICATION_CREDENTIALS = /root/credentials/service_credential_file.json gcsfuse bucket_name /my/mount/point
key_file option to accomplish the same goal in
fstab as it documented here.
In addition, you need to use the environment variable or
key_file option even if you have configured the service account on the VM using:
gcloud auth activate-service-account --key-file /root/credentials/service_credential_file.json
Please update your question with your steps, commands and full outputs if you still have a problem.