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

bug: uncaughtException: Configured bind multiaddrs must have different ports #6531

Open
barnabasbusa opened this issue Mar 12, 2024 · 1 comment
Labels
meta-bug Issues that identify a bug and require a fix. prio-medium Resolve this some time soon (tm). scope-networking All issues related to networking, gossip, and libp2p.

Comments

@barnabasbusa
Copy link
Contributor

Describe the bug

If I configure lodestar with:

lodestar_ports_p2p_tcp: 9000
lodestar_ports_p2p_udp: 9000
  - --port={{ lodestar_ports_p2p_tcp }}
  - --port6={{ lodestar_ports_p2p_tcp }}
  - --enr.ip={{ lodestar_announced_ip }}
  - --enr.ip6={{ lodestar_announced_ipv6 }}
  - --enr.tcp={{ lodestar_ports_p2p_tcp }}
  - --enr.tcp6={{ lodestar_ports_p2p_tcp }}
  - --enr.udp={{ lodestar_ports_p2p_udp }}
  - --enr.udp6={{ lodestar_ports_p2p_udp }}
  - --discoveryPort6={{ lodestar_ports_p2p_udp }}
Mar-12 13:50:11.814[network]         error: uncaughtException: Configured bind multiaddrs must have different ports
Error: Configured bind multiaddrs must have different ports
    at new UDPTransportService (file:///usr/app/node_modules/@chainsafe/discv5/lib/transport/udp.js:59:23)
    at Discv5.create (file:///usr/app/node_modules/@chainsafe/discv5/lib/service/service.js:126:97)
    at file:///usr/app/packages/beacon-node/lib/network/discv5/worker.js:43:23 - Configured bind multiaddrs must have different ports
Error: Configured bind multiaddrs must have different ports
    at new UDPTransportService (file:///usr/app/node_modules/@chainsafe/discv5/lib/transport/udp.js:59:23)
    at Discv5.create (file:///usr/app/node_modules/@chainsafe/discv5/lib/service/service.js:126:97)
    at file:///usr/app/packages/beacon-node/lib/network/discv5/worker.js:43:23
 ✖ Error: Configured bind multiaddrs must have different ports
    at new UDPTransportService (file:///usr/app/node_modules/@chainsafe/discv5/lib/transport/udp.js:59:23)
    at Discv5.create (file:///usr/app/node_modules/@chainsafe/discv5/lib/service/service.js:126:97)
    at file:///usr/app/packages/beacon-node/lib/network/discv5/worker.js:43:23

Expected behavior

I'd expect that ipv4 and ipv6 enr address ports wouldn't clash, and thus be able to come online without crashing.

Steps to reproduce

  • Create an ipv6 supported docker network.
  • Run lodestar with the same ports for enr.tcp and enr.tcp6.
  • See the crash.

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

v1.17.0

@barnabasbusa barnabasbusa added the meta-bug Issues that identify a bug and require a fix. label Mar 12, 2024
@philknows philknows added the scope-networking All issues related to networking, gossip, and libp2p. label Mar 13, 2024
@philknows
Copy link
Member

I would expect this to not clash either. Any ideas on what may be happening here @wemeetagain ?

@philknows philknows added the prio-medium Resolve this some time soon (tm). label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-bug Issues that identify a bug and require a fix. prio-medium Resolve this some time soon (tm). scope-networking All issues related to networking, gossip, and libp2p.
Projects
None yet
Development

No branches or pull requests

2 participants