0

I am trying to mount this public bucket into my Google cloud shell:

gs://mssng-share/released/genomes/ILMN/VCF/*Using mount point: 

/home/serdarrowanalytics/mount

I tried:

gcsfuse mssng-share ./mount

however, i get flagged with this error message.

Opening GCS connection...
Opening bucket...
Mounting file system...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: running fusermount: exec: "fusermount": executable file not found in $PATH

stderr:
alexander.polomodov
  • 1,068
  • 3
  • 10
  • 14
  • What was your question? – womble Jun 15 '18 at 04:27
  • When I run this GCSFuse on Google Shell it does not complete the task of mounting a bucket and replies "fusermount": executable file not found in $PATH – James Kozubek Jun 15 '18 at 12:40
  • second problem: I also tried running it on my local server, and it says "successfully mounted!" but then the directory I mounted the bucket to is empty. – James Kozubek Jun 15 '18 at 12:41
  • my question is what I should do differently, or if there are other trouble shooting ideas. I use a very simple command which is:gcsfuse bucket mountdirectory – James Kozubek Jun 15 '18 at 12:43
  • If you see this after building and trying to run `gcsfuse` in a Docker container (or in general), one possibility is you just forgot to install `fuse`, which is a dependency. – jon_wu Jul 02 '19 at 23:22

1 Answers1

1

Following the tutorial provided by Google, I was able to mount a bucket successfully in my cloud shell. I followed the install instructions linked from the Google article.

Commands were as follows (starting in my home directory ~/):

export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`

echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

sudo apt-get update

sudo apt-get install gcsfuse

mkdir -p ./path/to/mount

Then ran command:

gcsfuse [bucket name (no prefix or suffix)] ./path/to/mount

And it worked.

I had to “sudo su” to enter the directory, but the contents were mounted.

Without steps to reproduce this error, I cannot provide a guaranteed answer. It would all be speculation based on existing articles found through a Google search.

This is not a bug in the cloud shell.

xavierc
  • 153
  • 5
  • Thank you for your attention. I did the same thing. It says "successfully mounted" – James Kozubek Jun 19 '18 at 14:06
  • However, the mount directory is empty. – James Kozubek Jun 19 '18 at 14:06
  • rowus@bashful:/home/jim$ gcsfuse mssng-share ./mnt Using mount point: /home/jim/mnt Opening GCS connection... Opening bucket... Mounting file system... File system has been successfully mounted. rowus@bashful:/home/jim$ ls rowus@bashful:/home/jim/mnt$ ls ls: reading directory '.': Input/output error – James Kozubek Jun 19 '18 at 14:06
  • I tried mounting a few buckets. The mount folder is always empty. – James Kozubek Jun 19 '18 at 14:10
  • io errors are usually caused by hardware issues. Can you confirm this is happening on your cloud shell? – xavierc Jun 25 '18 at 22:50
  • I have not been able to mount on the shell or my local server. – James Kozubek Jun 25 '18 at 23:30
  • You said " It says "successfully mounted"", then you mentioned the directory was empty, then you showed you were getting an IO error. Then you said you are not able to mount on cloud shell or local server? I am confused. So, are you able to mount on the cloud shell? What errors are you receiving on the cloud shell? Do you have files in your bucket? I cannot help with an IO error on a local machine. – xavierc Jun 28 '18 at 22:36
  • I've done some research, but everything related to your error is related to Docker. No other programs, other than Docker, are getting this error, & it seems like the Docker issues are resolved based on syntax. I've also failed to reproduce this error. Are you running as root? Also, how large is the file in your bucket? How many files do you have of what type? Following the tutorial, can you mount on a fresh GCE instance? How about using a different bucket? My suggestion is to uninstall & reinstall GCS fuse on your cloud shell. If you can provide reproduction steps I can look further into it. – xavierc Jul 11 '18 at 21:31