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

Improve fuse error reason in case of mount failure #3772

Closed
Powersource opened this issue Mar 9, 2017 · 16 comments
Closed

Improve fuse error reason in case of mount failure #3772

Powersource opened this issue Mar 9, 2017 · 16 comments
Labels
topic/fuse Topic fuse

Comments

@Powersource
Copy link

Version information:

% ipfs version --all
go-ipfs version: 0.4.6-
Repo version: 5
System version: amd64/linux
Golang version: go1.8
% fusermount --version
fusermount version: 2.9.7
% uname -a
Linux pc 4.9.11-1-ARCH #1 SMP PREEMPT Sun Feb 19 13:45:52 UTC 2017 x86_64 GNU/Linux

Type:

Bug

Description:

When I try to ipfs mount fuse complains and mounting fails.

% IPFS_FUSE_DEBUG=true ipfs daemon
Initializing daemon...
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/172.17.0.1/tcp/4001
Swarm listening on /ip4/172.18.0.1/tcp/4001
Swarm listening on /ip4/192.168.1.123/tcp/4001
Swarm listening on /ip4/89.160.37.16/tcp/14466
Swarm listening on /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
22:49:47.133 ERROR       node: error mounting: fusermount: exit status 1 mount_unix.go:97
22:49:47.133 ERROR       node: error mounting: fusermount: exit status 1 mount_unix.go:101

The relevant file.

% mkdir fs ns           
% ipfs mount -f fs -n ns
Error: fuse failed to access mountpoint fs
% ls
fs  ns

sshfs uses the same fuse version and mounting, reading and unmounting works normally there.

% sshfs --version
SSHFS version 2.8
FUSE library version: 2.9.7
fusermount version: 2.9.7
using FUSE kernel interface version 7.19
@whyrusleeping whyrusleeping added the topic/fuse Topic fuse label Mar 9, 2017
@whyrusleeping
Copy link
Member

We should try and get more information out of fuse here. calling the fusermount binary is failing for some reason and we have no idea why

@Kubuxu
Copy link
Member

Kubuxu commented Mar 9, 2017

Few things: do mount points exist, does your user own them?

@Powersource
Copy link
Author

@Kubuxu

% ls -l
total 8
drwxr-xr-x 2 me me 4096 Mar  9 22:49 fs
drwxr-xr-x 2 me me 4096 Mar  9 22:49 ns
% whoami
me
% ipfs mount -f fs -n ns
Error: fuse failed to access mountpoint fs

@Powersource
Copy link
Author

I don't know exactly why, but suddenly it works. I tried updating and restarting my computer yesterday but that didn't help. What's likely to have made a difference is that today I updated to linux 4.10 (and restarted).

@Powersource
Copy link
Author

Aaaaand it's broken again, amazing.

@Powersource Powersource reopened this Mar 11, 2017
@Powersource
Copy link
Author

Installed the latest git version and it works now. If it stays working for a few days I'll close again.

@whyrusleeping
Copy link
Member

@Powersource Lets keep this issue open even if it keeps working for you.

The main problem i see here is that when it fails, we have no indication as to why. In whatever case, we need to address that

@Kubuxu
Copy link
Member

Kubuxu commented Mar 12, 2017

I am very glad that the update resolved issues. It was long overdue.

@Kubuxu Kubuxu changed the title ipfs mount fails due to some fuse problem Improve fuse error reason in case of mount failure Apr 17, 2017
@TroyWilson1
Copy link

TroyWilson1 commented Dec 16, 2017

I'm getting this error.

ipfs mount Error: exit status 1

daemon shows this:

8:08:37.984 ERROR node: error mounting: exit status 1 mount_unix.go:89
18:08:37.984 ERROR node: error mounting: exit status 1 mount_unix.go:93
18:11:28.838 ERROR node: error mounting: exit status 1 mount_unix.go:89
18:11:28.838 ERROR node: error mounting: exit status 1 mount_unix.go:93

go-ipfs version: 0.4.13-cc01b7f
Repo version: 6
System version: amd64/darwin
Golang version: go1.9.2

@alfiedotwtf
Copy link
Contributor

I'm getting the exact same error as @TroyWilson1, but only inside a Docker container. On the host, it works fine

@whyrusleeping
Copy link
Member

@alfiedotwtf inside docker you might have to mess with some priviliges. The node will need to be started with certain flags I think

@alfiedotwtf
Copy link
Contributor

alfiedotwtf commented Jun 27, 2018

Thanks for the tip @whyrusleeping.

Do you know by any chance what flags, or a link to more info?

(both --privileged and --cap-add ALL don't fix it)

Thanks!

@whyrusleeping
Copy link
Member

this might help: https://stackoverflow.com/questions/48402218/fuse-inside-docker

@alfiedotwtf
Copy link
Contributor

Thanks. Looked promising, but unfortunately didn't work either.

Can anyone confirm that ipfs daemon --mount works within a Docker container? Again, it's working on the host fine...

@gar71
Copy link

gar71 commented Oct 25, 2018

Hi. I am having the same issue with a non descriptive ipfs mount . Error: exit status 1
IPFS daemon says
15:00:24.559 ERROR node: error mounting: exit status 1 mount_unix.go:89
15:00:24.559 ERROR node: error mounting: exit status 1 mount_unix.go:93

I can't find any log files to help decipher this error message.
Running on Mac OS X 10.13.6
ipfs 0.4.17
MACOSX FUSER 3.8.2

@aschmahmann
Copy link
Contributor

Closing this since there's a lot of work to be done on the fuse implementation. Will be tracking in a meta issue.

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

No branches or pull requests

7 participants