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

ipfs mount fails when installed via snap #6

Open
come-maiz opened this issue Mar 15, 2017 · 6 comments
Open

ipfs mount fails when installed via snap #6

come-maiz opened this issue Mar 15, 2017 · 6 comments

Comments

@come-maiz
Copy link
Owner

come-maiz commented Mar 15, 2017

Originally reported in ipfs/kubo#3788 by @mattseh

Version information:

root@snap:~# ipfs version --all
go-ipfs version: 0.4.6-
Repo version: 5
System version: amd64/linux
Golang version: go1.7.5

Type: Bug

Priority: P3

Description:

On a fresh Ubuntu 16.04 VM, I installed go-ipfs:

root@snap:~# snap install ipfs
ipfs v0.4.6 from 'elopio' installed

With the daemon running, and /ipfs and /ipns created, I get this error:

root@snap:~# ipfs mount
Error: fusermount: exec: "fusermount": executable file not found in $PATH

This issue seems to suggest that it is because the snap doesn't depend on FUSE?

Thanks

@come-maiz
Copy link
Owner Author

Thanks for the report!

I haven't added support for mount on the snap yet, so it was an expected failure. In snaps you bundle all your dependencies, so installing fuse is simple, just add stage-packages: [fuse]. What might not be so simple is to give permission to the snap to mount. I need to give it a try, and if it's blocked by the strict confinement of the snap, talk to the security team to design a safe plug for this. I will have time for this during the weekend. Maybe it doesn't require any work at all, but I need to check.

@come-maiz
Copy link
Owner Author

I had some time to try it, and as I expected, the syscall is blocked by the confinement. I've reported a bug in snapd for them to add an interface that will allow fusermount: https://bugs.launchpad.net/snapd/+bug/1673191

@abitrolly
Copy link
Contributor

@ElOpio is there any progress on this front?

@come-maiz
Copy link
Owner Author

@abitrolly nothing yet. The reported bug is still open. There's a workaround changing ipfs to run as root, but that would take a lot more work and testing than what I can do now. It would be nice if you or somebody else from the community give it a try :)

@abitrolly
Copy link
Contributor

It is suggested that ipfs should include fusermount itself - https://forum.snapcraft.io/t/ipfs-needs-to-mount-ipfs-with-fuse-how/5080

@bam80
Copy link

bam80 commented Mar 21, 2021

What is the current status, the same?

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

3 participants