gcsfuse: mounting bucket doesn't show contents
Hi there,
I’m working with the google genomics team, and we are accessing both public/open data and NIH controlled data.
With the public/open bucket, gcsfuse is working great. All the directories get listed.
# daemon -- gcsfuse isb-cgc-open /media/open/root@1b71307eaa03:/
# ls /media/open
aliquot_uniq.txt ccle cohorts cwl-examples genomic-reference gsk platforms tcga-runs
But, when trying to access the controlled data, I can see it using gsutil, but not gcsfuse, even though it shows the mount as being successful.
# gsutil ls gs://62f2-xxx-xxx-77/tcga
gs://62f2-xxx-xxx-77/tcga/acc/
gs://62f2-xxx-xxx-f77/tcga/blca/
gs://62f2-xxx-xxx-f77/tcga/brca/
gs://62f2c-xxx-xxx-f77/tcga/cesc/
....
# gcsfuse 62f2-xxx-xxx-4f77 /media/cntl
Opening GCS connection...
WARNING: gcsfuse invoked as root. This will cause all files to be owned by
root. If this is not what you intended, invoke gcsfuse as the user that will
be interacting with the file system.
Opening bucket...
Mounting file system...
File system has been successfully mounted.
^C2015/12/16 19:36:16.480340 Received SIGINT, attempting to unmount...
2015/12/16 19:36:16.511429 Successfully exiting.
...
...
# daemon -- gcsfuse 62f2-xxx-xxx-4f77 /media/cntl
# ls /media/cntl ### nothing returned here ###
# ls /media/cntl/tcga
ls: cannot access /media/cntl/tcga: No such file or directory
Thanks for any help!! Let me know if you need more information.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18
try using the
--implicit-dirs
option as documented in https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/semantics.mdfor
/etc/fstab
fansfor instance, mounting bucket
my-bucket
on/opt/cloud
@Tulsishah that was exactly the issue! Thanks a lot! Now it works. However, I would like to make mounting automatic upon boot. I tried to add the following line
my-project /home/roberto/remote gcsfuse rw,x-systemd.requires=network-online.target,user
to my/etc/fstab
file, but it is not mounting automatically. I wondered if I shouldn’t substitute the worduser
in the command for my username. I tried to do so, but it is still not working. What should I do?