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 #3788

Closed
matthewrobertbell opened this issue Mar 15, 2017 · 6 comments
Closed

ipfs mount fails when installed via snap #3788

matthewrobertbell opened this issue Mar 15, 2017 · 6 comments

Comments

@matthewrobertbell
Copy link

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

@Kubuxu
Copy link
Member

Kubuxu commented Mar 15, 2017

Yes, you need to have fuse installed for it to work.

@matthewrobertbell
Copy link
Author

Right, fuse is installed via apt-get, but the snap doesn't seem to recognise that, so shouldn't the snap config make sure fuse is installed within the snap?

@Kubuxu
Copy link
Member

Kubuxu commented Mar 15, 2017

No idea, @ElOpio mind helping out?

@come-maiz
Copy link
Contributor

Yes, 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.

@Kubuxu I'm not sure if you want to keep this bug here, or we should move it to https://github.com/elopio/ipfs-snap

@Kubuxu
Copy link
Member

Kubuxu commented Mar 15, 2017

If you can, move it there. It will be borrowed among other issues.

@come-maiz
Copy link
Contributor

Well, there's no way to move bugs in github, but I copied it here: come-maiz/ipfs-snap#6

You can close this one @Kubuxu.

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