Closed Omnidip closed 7 years ago
Hi, I'm getting the same issue while connecting a mobile geth light client. Did you get any luck connecting to private-net ? Error is "(0) pongTimeout for 50eed70dc26bd864@XX.XX.XX.XX:31113: verifyinit -> unknown (ok)" Any help is greatly appreciated.
I am having the same issue in Ubuntu when trying to connect to a bootnode in a private network where the node uses --light --v5disc
modes. This is the error I have on the discovery with the previous configuration:
msg="--- (0) pongTimeout for ID@XX.XX.XX.XX:30301: verifyinit -> unknown (ok)"
However, I have the same problem with protocol v4 :
New dial task task="discovery lookup"
Starting bonding ping/pong id=X **known=false** failcount=0 age=X
>> PING/v4 addr=XX.XX.XX.XX:30301 err=nil
No discv4 seed nodes found
Dial task done task="discovery lookup"
I am running the latest version of geth.
I also think that the --v5
on the bootnode does not work properly: it takes ages to start, if it actually does...
@MondyWins please stop posting this type of question on our issue tracker
The issue is that you are trying to connect to the v4 discovery port with the light client. To connect to v5, you need to explicitly specify the discovery port number in the enode url, which will be 1 higher than the normal port number.
E.g. For rinkeby it's enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303?discport=30304
System information
Geth version:
1.5.8
OS & Version: Windows/Linux/OSX/Android Commit hash : f58fb32283fe04cd1d416040c6692b4a7352d556Note: Android client running on an emulator, Node running on the host
Expected behaviour
ping and pong packets should be being sent back and forth between the local node and the android client.
Actual behaviour
discv5/udp.go spits out the errors:
E/GoLog: I0202 20:01:53.926344 p2p/discv5/udp.go:410] Bad packet from 10.0.2.2:30305: rlp: too few elements for discv5.pong
E/GoLog: I0202 20:01:53.929642 p2p/discv5/udp.go:410] Bad packet from 10.0.2.2:30305: rlp: too few elements for discv5.ping
E/GoLog: I0202 20:01:54.397246 p2p/discv5/net.go:461] --- (0) pongTimeout for f219c0645bffbf64@10.0.2.2:30305: verifyinit -> unknown (ok)
then stops trying to connect with the local node.NOTE: This does NOT happen when trying to connect to the discv5 bootnodes within params/bootnodes.go, those produce the expected behaviour
Steps to reproduce the behaviour
Create a local node with genesis:
Create an android project with the onCreate:
`protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final TextView textbox = (TextView) findViewById(R.id.show_text);
Backtrace