Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing file system information #16

Closed
NillsF opened this issue Nov 17, 2017 · 2 comments
Closed

Missing file system information #16

NillsF opened this issue Nov 17, 2017 · 2 comments

Comments

@NillsF
Copy link

NillsF commented Nov 17, 2017

Hi,

I've been trying out the blobFUSE adapter on multiple VMs, with multiple installations. One thing I keep running into (not always, but often) is that once I mount the blob container, my FS info dissappear. With that I mean that the mountpoint loses its access permissions (they appear as question marks) and ownership (also changes to question marks). I cannot access the mount point myself, but with sudo I can.

Some output:

Mount point before mounting using FUSE

nilfranadmin@sshjumpabivnet:~$ ls /datamnt/ -la
total 12
drwxr-xr-x  3 root root 4096 Nov 17 16:07 .
drwxr-xr-x 24 root root 4096 Nov 17 16:07 ..
drwxr-xr-x  2 root root 4096 Nov 17 16:07 blobs

Mount point after mounting using FUSE

nilfranadmin@sshjumpabivnet:~$ sudo blobfuse /datamnt/blobs/ --tmp-path=/mnt/blobfusetmp -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120 --config-file=connection.cfg
nilfranadmin@sshjumpabivnet:~$ ll /datamnt/
ls: cannot access '/datamnt/blobs': Permission denied
total 8
drwxr-xr-x  3 root root 4096 Nov 17 16:07 ./
drwxr-xr-x 24 root root 4096 Nov 17 16:07 ../
d?????????  ? ?    ?       ?            ? blobs/
nilfranadmin@sshjumpabivnet:~$ ls /datamnt/blobs
ls: cannot access '/datamnt/blobs': Permission denied
nilfranadmin@sshjumpabivnet:~$ sudo ls /datamnt/blobs
postdeploy.sh  post.sh  txt.txt
nilfranadmin@sshjumpabivnet:~$ sudo ls /datamnt
blobs
nilfranadmin@sshjumpabivnet:~$ sudo ls /datamnt -la
total 8
drwxr-xr-x  3 root root 4096 Nov 17 16:07 .
drwxr-xr-x 24 root root 4096 Nov 17 16:07 ..
drwxrwx---  2 root root 4096 Jan  1  1970 blobs

Also note that the date on the folder changes.

@seguler
Copy link

seguler commented Nov 17, 2017

FUSE mounts the filesystem in user space, and only the user who mounts fuse can access the filesystem. In your case you run it via sudo, and only root can access the mountpoint.

If you intend to mount with root, and give access to all users, then use -o allow_other with blobfuse.

If you intend to mount and access the filesystem with a non sudo user, then make sure that your user is part of the group 'fuse'. sudo addgroup <user> fuse Make sure that you run blobfuse with your user instead of sudo.

@NillsF
Copy link
Author

NillsF commented Nov 20, 2017

Ok, thx @seguler . The -o allow_other solved it for me, also for non sudo users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants