I have a google cloud project.
In that project. I have a VM instance.
I mounted uploads folder with Google Cloud Storage bucket using fuse.
While mounting I get an error like this,
Using mount point: /var/www/html/porject/app/webroot/uploads
Opening GCS connection...
Opening bucket...
Mounting file system...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: running fusermount: exit status 1
stderr:
fusermount: mount failed: Operation not permitted
so i use sudo command
now i get reponse like this
Using mount point: /var/www/html/4thambit_v7/app/webroot/uploads
Opening GCS connection...
Opening bucket...
Mounting file system...
File system has been successfully mounted.
But i can't access the uploads folder, its showing 403 error (see image.)
ls -l command response like this
drwxrwxrwx. 1 root root 0 May 8 13:26 uploads
Anyone knows the correct steps to mount a folder in centos machine with Cloud Storage bucket.? if the gcs mount is successful. it will works similar to the local directory.
Best Answer
This sounds like a permission error. I would suggest running gcsfuse including the
--foreground
and--debug_fuse
options to see the full error.Since you seems to have mounted the file system as root, the user accessing the file/folder doesn't have the permission to do so, as explained in this documentation.
You can use
glcoud auth login
(link) to login with your Google account and mount the file system after.