-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
IPNS mount fails offline #2167
Comments
also: $ ipfs daemon --mount
Initializing daemon...
Swarm listening on ...
[snipp]
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8081
19:03:22.454 ERROR fuse/ipns: looking up /ipns/Qme96accAunin9tBtytzqLhbqN23nMmnZsdpsoTQYZnEEY: Could not resolve name. ipns_unix.go:98
19:03:22.454 ERROR node: error mounting: fusermount: exit status 1 mount_unix.go:97
19:03:22.454 ERROR node: error mounting: Could not resolve name. mount_unix.go:101
19:03:22.455 ERROR swarm2: swarm listener accept error: peerstream listener failed: closed swarm_listen.go:128
19:03:22.455 ERROR swarm2: swarm listener accept error: peerstream listener failed: accept tcp 0.0.0.0:4737: use of closed network connection swarm_listen.go:128
19:03:22.455 ERROR swarm2: swarm listener accept error: peerstream listener failed: closed swarm_listen.go:128
19:03:22.455 ERROR swarm2: swarm listener accept error: peerstream listener failed: accept tcp [::]:4737: use of closed network connection swarm_listen.go:128
Error: fuse failed to access mountpoint /ipfs edit: im getting this error with plenty peers connected (63) |
@chpio: I think your problem is that the directory |
@noffle why do you think they do not exist? $ ll /
total 30424
[...]
drwxr-xr-x 1 thomas root 0 Feb 4 12:33 ipfs/
drwxr-xr-x 1 thomas root 0 Feb 4 12:34 ipns/
[...] |
I've noticed (version 0.4.2) that it will fail to mount if it cannot find another server running. So if I create a private cluster by adding two machines such that they are mutually bootstrapping, I cannot run "daemon --mount" on both. I have to go to one of them, run a normal "daemon"... go to the next one and run "daemon --mount" and then kill the daemon on the first and re-run with "daemon --mount" Basically, it won't mount unless it is on a network and can talk to at least one other machine. But you can trick it eventually by killing that first machine once you've successfully mounted once. Seems strange, even if seeing the failure in this case is mostly impractical. |
Wow what, that's very odd. If you or someone else can write a sharness test
|
Try doing It will publish file with |
Starting the daemon on a laptop without network connection, will cause the daemon to close down. Start with network disconnected.
Start with network connection:
Start with no mount and network disconnected.
Conclusion adding --mount and starting without network connection will bring the daemon down. |
I am still seeing this regularly with go-ipfs-0.9.0
Could it be that Edit: |
Hi, the process terminates sporadically this is the output:
and the process just exits. It would be great if you could look into it and have retry with exponential backoff in the daemon process. This bug is 6 years old (if its the same issue). |
I can reproduce the exact same behaviour on 0.12.2. Starting once without the |
can say this exact same thing is happening to me in 0.18.1 . Same as @nessdoor it is fixed with removing |
Tested in 0.4:
The text was updated successfully, but these errors were encountered: