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

Add peer to the local routing table failed when discovery to boot nodes #80

Open
alexzhou8090 opened this issue Jun 7, 2024 · 0 comments

Comments

@alexzhou8090
Copy link

alexzhou8090 commented Jun 7, 2024

1、Problem

because of add peer to the local routing table failed, it will throw error "ENR has no UDP socket to connect to" in storage node discovery service.

2024-06-05T10:47:27.342571Z DEBUG network::service: Loaded network key from disk.
2024-06-05T10:47:27.347435Z DEBUG network::discovery::enr: ENR loaded from disk file="network/enr.dat"
2024-06-05T10:47:27.350018Z INFO network::nat: UPnP Attempting to initialise routes
2024-06-05T10:47:27.350025Z INFO network::service: Libp2p Starting peer_id=16Uiu2HAmV1thBhRkR4UxeTsZvAf8TPYjaAKYat52uhEXj8sPHRUD bandwidth_config=3-Average
2024-06-05T10:47:27.350046Z DEBUG network::service: Attempting to open listening ports address=0.0.0.0 tcp_port=1234 udp_port=1234
2024-06-05T10:47:27.370063Z INFO network::discovery: ENR Initialised enr=enr:-Hy4QHLFbV8sgroNoC-98OKLalUx77VkpSqEPi3zWEz5ifAyammhtQ72BXkjNBWol1nqDJBeRBQLrfVtr1BwHmS9S9ABgmlkgnY0iXNlY3AyNTZrMaED8xXKnGEjsaedRV7svbQn_bCXih-xmdtFpcnqsxVz4WqDdGNwggTS seq=1 id=0x1c57..c52d ip=None udp=None tcp=Some(1234) udp4_socket=None
2024-06-05T10:47:27.375388Z DEBUG network::discovery: Discovery service started
2024-06-05T10:47:27.375396Z INFO network::discovery: Contacting Multiaddr boot-nodes for their ENR
2024-06-05T10:47:27.375451Z DEBUG discv5::handler: Handler Starting
2024-06-05T10:47:27.375456Z DEBUG discv5::socket::recv: Recv handler starting
2024-06-05T10:47:27.375473Z DEBUG discv5::socket::send: Send handler starting
2024-06-05T10:47:27.375498Z INFO discv5::service: Discv5 Service started
2024-06-05T10:47:27.377093Z DEBUG discv5::service: Sending RPC Request: id: 541cedb93aed7b3d: FINDNODE Request: distance: [0] to node: Node: 0xc909..1134, addr: 54.219.26.22:1234
2024-06-05T10:47:27.377117Z DEBUG discv5::service: Sending RPC Request: id: d93684dc33f63c9f: FINDNODE Request: distance: [0] to node: Node: 0x3ec9..8916, addr: 52.52.127.117:1234
2024-06-05T10:47:27.461357Z DEBUG discv5::service: Received RPC response: NODES: total: 1, Nodes: [ENR: NodeId: 0xc909..1134, IpV4 Socket: None IpV6 Socket: None] to request: FINDNODE Request: distance: [0] from: Node: 0xc909..1134, addr: 54.219.26.22:1234
2024-06-05T10:47:27.461455Z DEBUG network::discovery: Adding node to routing table node_id=0xc909..1134 peer_id=16Uiu2HAmTVDGNhkHD98zDnJxQWu3i1FL1aFYeh9wiQTNu4pDCgps ip=None udp=None tcp=Some(1234)
2024-06-05T10:47:27.461479Z WARN discv5::discv5: ENR attempted to be added without a UDP socket has been ignored
2024-06-05T10:47:27.461485Z ERROR network::discovery: Could not add peer to the local routing table addr=/ip4/54.219.26.22/udp/1234/p2p/16Uiu2HAmTVDGNhkHD98zDnJxQWu3i1FL1aFYeh9wiQTNu4pDCgps error=ENR has no UDP socket to connect to
2024-06-05T10:47:27.461617Z DEBUG discv5::service: Received RPC response: NODES: total: 1, Nodes: [ENR: NodeId: 0x3ec9..8916, IpV4 Socket: None IpV6 Socket: None] to request: FINDNODE Request: distance: [0] from: Node: 0x3ec9..8916, addr: 52.52.127.117:1234
2024-06-05T10:47:27.461682Z DEBUG network::discovery: Adding node to routing table node_id=0x3ec9..8916 peer_id=16Uiu2HAkzRjxK2gorngB1Xq84qDrT4hSVznYDHj6BkbaE4SGx9oS ip=None udp=None tcp=Some(1234)
2024-06-05T10:47:27.461697Z WARN discv5::discv5: ENR attempted to be added without a UDP socket has been ignored
2024-06-05T10:47:27.461700Z ERROR network::discovery: Could not add peer to the local routing table addr=/ip4/52.52.127.117/udp/1234/p2p/16Uiu2HAkzRjxK2gorngB1Xq84qDrT4hSVznYDHj6BkbaE4SGx9oS error=ENR has no UDP socket to connect to

2、Config info

  • modified: blockchain_rpc_endpoint value with local validator rpc endpoint
  • others with default value

3、Enviroment

  • 0.2.0 branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant