status-im / nim-eth-p2p

Nim Ethereum P2P protocol implementation
Apache License 2.0
11 stars 4 forks source link

Address family not supported by protocol #36

Open yglukhov opened 6 years ago

yglukhov commented 6 years ago

Running nimbus sometimes eventually fails with:

  nimbus.nim(146)          nimbus                                                                                                                                                                                                                                                                                                                                                                                                     
  nimbus.nim(101)          start                                                                                                                                                                                                                                                                                                                                                                                                      
  asyncloop.nim(735)       waitFor                                                                                                                                                                                                                                                                                                                                                                                                    
  asyncloop.nim(237)       poll                                                                                                                                                                                                                                                                                                                                                                                                       
  asyncfutures2.nim(370)   cb                                                                                                                                                                                                                                                                                                                                                                                                         
  Error: unhandled exception: Address family not supported by protocol                                                                                                                                                                                                                                                                                                                                                                
  Async traceback:                                                                                                                                                                                                                                                                                                                                                                                                                    
  Exception message: Address family not supported by protocol                                                                                                                                                                                                                                                                                                                                                                         
  Exception type: [Exception]                                                                                                                                                                                                                                                                                                                                                                                                         
cheatfate commented 6 years ago

Try to log out what are you trying to resolve via DNS. I mean what you are sending to resolveTAddress(), initTAddress().

yglukhov commented 5 years ago

The root of the problem is that we're trying to send IPv6 messages over IPv4 discovery socket.

cheatfate commented 5 years ago

We trying to send data over IPv4 socket to IPv6 address.