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 daemon cannot start multicast-listener on boot (as service) #7063

Closed
RubenKelevra opened this issue Mar 30, 2020 · 5 comments
Closed

IPFS daemon cannot start multicast-listener on boot (as service) #7063

RubenKelevra opened this issue Mar 30, 2020 · 5 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@RubenKelevra
Copy link
Contributor

Description:

Looks like the daemon starts too early, while After=network.target in [Unit] for the systemd service is set. This is a desktop system, so Network-Manager handles the wifi connections.

The issue here is not that the multicast-listener cannot be started, but that it's not just deferred until it's possible.

Log

Mär 28 20:41:15 i3 systemd[1]: Started InterPlanetary File System (IPFS) daemon.
Mär 28 20:41:16 i3 ipfs[1082]: Initializing daemon...
Mär 28 20:41:16 i3 ipfs[1082]: go-ipfs version: 0.5.0-dev-3561de074
Mär 28 20:41:16 i3 ipfs[1082]: Repo version: 9
Mär 28 20:41:16 i3 ipfs[1082]: System version: amd64/linux
Mär 28 20:41:16 i3 ipfs[1082]: Golang version: go1.14.1
Mär 28 20:41:17 i3 ipfs[1082]: 2020-03-28T20:41:17.381+0100        ERROR        p2pnode        libp2p/discovery.go:46        mdns error: No multicast listeners could be started
Mär 28 20:41:17 i3 ipfs[1082]: github.com/ipfs/go-ipfs/core/node/libp2p.SetupDiscovery.func1
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/.cache/yay/go-ipfs-git/src/go-ipfs/core/node/libp2p/discovery.go:46
Mär 28 20:41:17 i3 ipfs[1082]: reflect.Value.call
Mär 28 20:41:17 i3 ipfs[1082]:         /usr/lib/go/src/reflect/value.go:460
Mär 28 20:41:17 i3 ipfs[1082]: reflect.Value.Call
Mär 28 20:41:17 i3 ipfs[1082]:         /usr/lib/go/src/reflect/value.go:321
Mär 28 20:41:17 i3 ipfs[1082]: go.uber.org/dig.(*Container).Invoke
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/go/pkg/mod/go.uber.org/dig@v1.8.0/dig.go:397
Mär 28 20:41:17 i3 ipfs[1082]: go.uber.org/fx.(*App).executeInvokes
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/go/pkg/mod/go.uber.org/fx@v1.10.0/app.go:649
Mär 28 20:41:17 i3 ipfs[1082]: go.uber.org/fx.New
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/go/pkg/mod/go.uber.org/fx@v1.10.0/app.go:435
Mär 28 20:41:17 i3 ipfs[1082]: github.com/ipfs/go-ipfs/core.NewNode
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/.cache/yay/go-ipfs-git/src/go-ipfs/core/builder.go:24
Mär 28 20:41:17 i3 ipfs[1082]: main.daemonFunc
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/.cache/yay/go-ipfs-git/src/go-ipfs/cmd/ipfs/daemon.go:339
Mär 28 20:41:17 i3 ipfs[1082]: github.com/ipfs/go-ipfs-cmds.(*executor).Execute
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/go/pkg/mod/github.com/ipfs/go-ipfs-cmds@v0.1.4/executor.go:77
Mär 28 20:41:17 i3 ipfs[1082]: github.com/ipfs/go-ipfs-cmds/cli.Run
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/go/pkg/mod/github.com/ipfs/go-ipfs-cmds@v0.1.4/cli/run.go:137
Mär 28 20:41:17 i3 ipfs[1082]: main.mainRet
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/.cache/yay/go-ipfs-git/src/go-ipfs/cmd/ipfs/main.go:169
Mär 28 20:41:17 i3 ipfs[1082]: main.main
Mär 28 20:41:17 i3 ipfs[1082]:         /home/ruben/.cache/yay/go-ipfs-git/src/go-ipfs/cmd/ipfs/main.go:72
Mär 28 20:41:17 i3 ipfs[1082]: runtime.main
Mär 28 20:41:17 i3 ipfs[1082]:         /usr/lib/go/src/runtime/proc.go:203
Mär 28 20:41:17 i3 ipfs[1082]: Swarm listening on /ip4/127.0.0.1/tcp/4001
Mär 28 20:41:17 i3 ipfs[1082]: Swarm listening on /ip6/::1/tcp/4001
Mär 28 20:41:17 i3 ipfs[1082]: Swarm listening on /p2p-circuit
Mär 28 20:41:17 i3 ipfs[1082]: Swarm announcing /ip4/127.0.0.1/tcp/4001
Mär 28 20:41:17 i3 ipfs[1082]: Swarm announcing /ip6/::1/tcp/4001
Mär 28 20:41:17 i3 ipfs[1082]: API server listening on /ip4/127.0.0.1/tcp/5001
Mär 28 20:41:17 i3 ipfs[1082]: WebUI: http://127.0.0.1:5001/webui
Mär 28 20:41:17 i3 ipfs[1082]: Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Mär 28 20:41:17 i3 ipfs[1082]: Daemon is ready
@RubenKelevra RubenKelevra added the kind/bug A bug in existing code (including security flaws) label Mar 30, 2020
@Stebalien
Copy link
Member

Our current mdns library is hopelessly broken, unfortunately. See libp2p/go-libp2p#623.

But yeah, we also need to react to interface changes.

@RubenKelevra
Copy link
Contributor Author

Well, it's kind of hard to find those stuff before opening a bug here... since IPFS is segmented in such many repositories and the Github search can't search on a project level - just globally or repository based :/

@Stebalien
Copy link
Member

I agree, I'm sorry. We're trying to keep most top-level issues to go-ipfs and go-libp2p at this point. Also, this particular issue hasn't been captured there.

@RubenKelevra
Copy link
Contributor Author

Well, that's more a GitHub limitations than everything else :)

@RubenKelevra
Copy link
Contributor Author

I casually reached out to GitHub via Twitter. Hope they do implement this soon. :)

https://twitter.com/GitHubHelp/status/1245367922891067394?s=19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

2 participants