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

Zeroconf networking issue (Docker For Mac, M1 Max, 0.11) #8645

Closed
3 tasks done
roderik opened this issue Jan 6, 2022 · 14 comments · Fixed by #8704
Closed
3 tasks done

Zeroconf networking issue (Docker For Mac, M1 Max, 0.11) #8645

roderik opened this issue Jan 6, 2022 · 14 comments · Fixed by #8704
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization

Comments

@roderik
Copy link

roderik commented Jan 6, 2022

Checklist

Installation method

built from source

Version

ipfs/go-ipfs:v0.10.0 & ipfs/go-ipfs:v0.11.0

Config

n/a

Description

I have a very simple docker compose file

version: '3'
services:
  ipfs:
    image: 'ipfs/go-ipfs:v0.11.0'
    ports:
      - 4001:4001/tcp
      - 4001:4001/udp
      - 5001:5001
      - 8080:8080
      - 8081:8081

That dies on startup with 'no supported interface'

graph-ipfs-1        | ipfs version 0.11.0
graph-ipfs-1        | Found IPFS fs-repo at /data/ipfs
graph-ipfs-1        | Initializing daemon...
graph-ipfs-1        | go-ipfs version: 0.11.0-67220ed
graph-ipfs-1        | Repo version: 11
graph-ipfs-1        | System version: amd64/linux
graph-ipfs-1        | Golang version: go1.16.7
graph-ipfs-1        | 2022/01/06 16:48:13 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
graph-ipfs-1        | 2022/01/06 16:48:13 [zeroconf] no suitable IPv4 interface: udp4: failed to join any of these interfaces: [{12 1500 eth0 02:42:ac:13:00:03 up|broadcast|multicast}]
graph-ipfs-1        | 2022/01/06 16:48:13 [zeroconf] no suitable IPv6 interface: udp6: failed to join any of these interfaces: [{12 1500 eth0 02:42:ac:13:00:03 up|broadcast|multicast}]
graph-ipfs-1        | 2022-01-06T16:48:13.408Z	ERROR	cmd/ipfs	ipfs/daemon.go:430	error from node construction: no supported interface
graph-ipfs-1        | 
graph-ipfs-1        | Error: no supported interface

If I modify it to use v0.10 it works and starts.

version: '3'
services:
  ipfs:
    image: 'ipfs/go-ipfs:v0.10.0'
    ports:
      - 4001:4001/tcp
      - 4001:4001/udp
      - 5001:5001
      - 8080:8080
      - 8081:8081
graph-ipfs-1        | Changing user to ipfs
graph-ipfs-1        | ipfs version 0.10.0
graph-ipfs-1        | Found IPFS fs-repo at /data/ipfs
graph-ipfs-1        | Initializing daemon...
graph-ipfs-1        | go-ipfs version: 0.10.0-64b532f
graph-ipfs-1        | Repo version: 11
graph-ipfs-1        | System version: amd64/linux
graph-ipfs-1        | Golang version: go1.16.7
graph-ipfs-1        | 2022/01/06 17:09:24 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
graph-ipfs-1        | 2022/01/06 17:09:24 [zeroconf] no suitable IPv4 interface: udp4: failed to join any of these interfaces: [{18 1500 eth0 02:42:ac:13:00:03 up|broadcast|multicast}]
graph-ipfs-1        | 2022/01/06 17:09:24 [zeroconf] no suitable IPv6 interface: udp6: failed to join any of these interfaces: [{18 1500 eth0 02:42:ac:13:00:03 up|broadcast|multicast}]
graph-ipfs-1        | Swarm listening on /ip4/127.0.0.1/tcp/4001
graph-ipfs-1        | Swarm listening on /ip4/127.0.0.1/udp/4001/quic
graph-ipfs-1        | Swarm listening on /ip4/172.19.0.3/tcp/4001
graph-ipfs-1        | Swarm listening on /ip4/172.19.0.3/udp/4001/quic
graph-ipfs-1        | Swarm listening on /p2p-circuit
graph-ipfs-1        | Swarm announcing /ip4/127.0.0.1/tcp/4001
graph-ipfs-1        | Swarm announcing /ip4/127.0.0.1/udp/4001/quic
graph-ipfs-1        | Swarm announcing /ip4/172.19.0.3/tcp/4001
graph-ipfs-1        | Swarm announcing /ip4/172.19.0.3/udp/4001/quic
graph-ipfs-1        | Swarm announcing /ip4/81.245.59.99/udp/62096/quic
graph-ipfs-1        | API server listening on /ip4/0.0.0.0/tcp/5001
graph-ipfs-1        | WebUI: http://0.0.0.0:5001/webui
graph-ipfs-1        | Gateway (readonly) server listening on /ip4/0.0.0.0/tcp/8080
graph-ipfs-1        | Daemon is ready

The compose file is the same as the one introduced in this repo

@roderik roderik added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Jan 6, 2022
@welcome
Copy link

welcome bot commented Jan 6, 2022

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

@roderik
Copy link
Author

roderik commented Jan 6, 2022

ps. did not built from source, but dockerhub is not an option in the dropdown

Latest docker version: Docker Desktop 4.3.2 (72729)

@LeslieOA
Copy link

LeslieOA commented Jan 11, 2022

@roderik
I've experienced the exact same mileage with:

No issues on my Intel Core i5 though which I've switched to for the interim.
Had any luck since? Thanks.

@carlosdp
Copy link

Running into the same issue here, M1 Mac

@LeslieOA
Copy link

Running into the same issue here, M1 Mac

@carlosdp As @roderik mentions, go-ipfs:v0.10.0 works, so you can use this docker-compose.yml for the meantime.
Hope this helps.

@marten-seemann
Copy link
Member

@godcong
Copy link
Contributor

godcong commented Jan 29, 2022

I had the same problem when running in windows wsl mode.
ipfs version: 0.11.0

libp2p/zeroconf/v2/server.go:Line168

	ipv4conn, err4 := joinUdp4Multicast(ifaces)
	if err4 != nil {
		log.Printf("[zeroconf] no suitable IPv4 interface: %s", err4.Error())
	}
	ipv6conn, err6 := joinUdp6Multicast(ifaces)
	if err6 != nil {
		log.Printf("[zeroconf] no suitable IPv6 interface: %s", err6.Error())
	}
	if err4 != nil && err6 != nil {
		// No supported interface left.
		return nil, fmt.Errorf("no supported interface")
	}

@rjmalagon
Copy link

A workaround is disabling MDNS in the config file.

    "MDNS": {
      "Enabled": false,
      "Interval": 10
    } ```

@aschmahmann
Copy link
Contributor

aschmahmann commented Feb 18, 2022

@marten-seemann any ideas why disabling MDNS would resolve this? Any chance it's related to any of the other MDNS issues filed in go-libp2p (e.g. libp2p/go-libp2p#1333)?

@islami00
Copy link

Strangely enough, I had a similar problem on gitpod.
After trying to change the docker settings it just started working (Still shows udp buffer limit error though). I should've documented what I did because now the problem is back with a different workspace.

@godcong
Copy link
Contributor

godcong commented Feb 21, 2022

@marten-seemann any ideas why disabling MDNS would resolve this? Any chance it's related to any of the other MDNS issues filed in go-libp2p (e.g. libp2p/go-libp2p#1333)?
failed on this step service.Start() .
Failure to start returns an error, causing the entire ipfs to fail to start.

@marten-seemann
Copy link
Member

marten-seemann commented Feb 21, 2022

@marten-seemann any ideas why disabling MDNS would resolve this? Any chance it's related to any of the other MDNS issues filed in go-libp2p (e.g. libp2p/go-libp2p#1333)?

@aschmahmann I don't think so. I think this would be solved by #8704. Any change we can merge that PR?

@dedshit
Copy link

dedshit commented Apr 30, 2022

A workaround is disabling MDNS in the config file.

    "MDNS": {
      "Enabled": false,
      "Interval": 10
    } ```

thanks it worked👍

@ohmpatel1997
Copy link

I am still facing this issue. I am on docker M1. I am trying to setup IPFS cluster and peers are not being discovered by each other.

@LeslieOA your docker compose file is not working for me either. would you please me out?

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) need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants