-
Notifications
You must be signed in to change notification settings - Fork 1k
fuse: device not found, try 'modprobe fuse' first #647
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
Comments
hmm, I am pretty sure now it's because of this line in
But I have no idea why it's not configured. |
OK, it was due to docker run permission issue, need a |
@yellowmamba Can you explain in more detail how this is solved? I don't know where to use that --privileged flag. |
Hi @audiofeature , it's a flag you can attach to docker, i.e. |
@yellowmamba not every hero wears a cape... |
There has to be some way to fix this with a pure Dockerfile |
FUSE functionality needs in fact only the following permissions:
SYS_ADMIN is needed for mount/umount functionality, and |
I'm still facing this issue, running docker-compose with 'privileged: true' in yml file. |
So 'docker --privileged run ...'? |
This does not work in the context of AWS and Fargate, where you are not allowed to run with --privileged or --device (see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) Is there any way to get around this? |
I have the same issue as @Dr-Steve. I tried following this answer and ran into the device not found here discussed here. If I set privileged mode in development, it works, but that is not supported by AWS Fargate. Is there a recommended way to use s3fs with AWS Fargate that is also compatible with ecs-cli? |
Try to run docker container with these options: |
In case people come back here and think the last solution applies to Fargate: it does not. Fargate does not support SYS_ADMIN capability. You probably need to run your container in ECS. No big deal. |
Following up on this, I abandoned using s3fs in ECS with Fargate, it's much cleaner and easier using EFS which can be mounted via the task definition. If you really need to use S3, I suggest using it at the app level via an SDK (such as boto3 in python). S3 just isn't great for block-level storage in my opinion and I've had multiple issues trying to implement it that way. |
This comment has been minimized.
This comment has been minimized.
Did anyone solve such an issue when working with google cloud build to build the docker? I think it doesn't have the |
to add this permission to docker-compose managed container add the following to the config file: cap_add:
- SYS_ADMIN
devices:
- /dev/fuse |
How do you apply these fixes on a docker container running under kubectl? |
At first tried installing libfuse as the AppImage error message presents s3fs-fuse/s3fs-fuse#647 (comment) But eventually found out about AppImage/AppImageKit#912 (comment) which is not an optimized solution, but it is preffered instead of providing sys admin privileges to a docker container.
I've tried fuse: mount failed: Permission denied
Cannot mount AppImage, please check your FUSE setup. |
@KMint1819 it works for me.
|
that issue solve by use one property in kubernetes deployment inside container |
|
Additional Information
The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all.
Version of fuse being used (pkg-config --modversion fuse)
2.9.4
System information (uname -a)
Linux fae8d21da480 4.9.43-17.38.amzn1.x86_64 #1 SMP Thu Aug 17 00:20:39 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Distro (cat /etc/issue)
Ubuntu 16.04 LTS \n \l
s3fs command line used (if applicable)
N/A
/etc/fstab entry (if applicable):
if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages
Details about issue
I am not sure why, it used to work for my other projects. When I am prompt with this error message, I tried
modprobe fuse
and gotbash: modprobe: command not found
. Really out of ideas of what went wrong. Can anyone assist?Thanks
The text was updated successfully, but these errors were encountered: