mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #1046] Debian 9 fuse: device not found #576
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#576
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @echyam on GitHub (Jun 20, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1046
Additional Information
Followed https://github.com/s3fs-fuse/s3fs-fuse/wiki/Installation-Notes#debian--ubuntu for Ubuntu 14.04 LTS version. The local build compiled fine, but when I try to mount with
s3fs -o iam_role="s3-access-iam-role" -o url="https://s3-us-west-1.amazonaws.com" bucket-name /mntI get
Version of s3fs being used (s3fs --version)
latest? I cloned directly from git & built locally
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
2.9.7
Kernel information (uname -r)
4.15.0-1035-aws
GNU/Linux Distribution, if applicable (cat /etc/os-release)
Debian GNU/Linux 9 (stretch)
s3fs command line used, if applicable
/etc/fstab entry, if applicable
contents is
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
no logs
Details about issue
Everything works until the last step of actually mounting
@juliogonzalez commented on GitHub (Jun 20, 2019):
Most probably dumb questions but:
lsmod|grep fuse)ls -l /dev/fuse)@echyam commented on GitHub (Jun 20, 2019):
lsmodls: cannot access '/dev/fuse': No such file or directoryHow do I make sure it can access the fuse device? (I'm running this in a Dockerfile)
@juliogonzalez commented on GitHub (Jun 23, 2019):
@echyam then that explains it. Maybe we should ask about that information at the issue template.
So first a:
WARNING
Keep in mind that with the procedure I am going to show, you are breaking the isolation provided by the docker containers: https://lwn.net/Articles/486306/
In my case I use it because it's part of my CI for s3fs-fuse RPMs on an isolated machine that doesn't have anything of interest. But I don't recommend doing this on production servers (maybe your sysadmin won't even allow it).
On paper you could request less capabilities (https://opensource.com/business/14/9/security-for-docker), but I never tried to figure out which one is needed).
Procedure
First, you need
fuseloaded at the docker host (modprobe fuse, install the packages first if needed) so/dev/fusecan be accesible from the container.Then, if things didn't change, start the container as I do at: https://github.com/juliogonzalez/s3fs-fuse-rpm/blob/master/ci#L117 (the key parts are
--cap-add SYS_ADMIN --device /dev/fuse).With this, you should be able to mount buckets as long as you root inside the container (again: if things didn't change with newer docker versions).