Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

DAWN-151 ⁃ Node Startup Versioning Checks #687

Closed
blockone-syncclient opened this issue Nov 13, 2017 · 6 comments
Closed

DAWN-151 ⁃ Node Startup Versioning Checks #687

blockone-syncclient opened this issue Nov 13, 2017 · 6 comments
Assignees
Milestone

Comments

@blockone-syncclient
Copy link

blockone-syncclient commented Nov 13, 2017

Is there any way to add code that checks the versions of the other nodes and logs stderr warnings if the releases do not match?

Or even a way to ask a node what version it's running?

If the node release versions do not match, that node should not start.

ATC:
Compile a diff version of eosd. Verify it will not connect to testnet.

@blockone-syncclient
Copy link
Author

➤ Thomas B. Cox commented:

Ideally we'd also have an overview tool that could query all nodes in a network and give an overview, like this:
https://ethstats.net/

@blockone-syncclient blockone-syncclient changed the title STAT-151 ⁃ Node Startup Versioning Checks STAT-151 ⁃ Node Startup Versioning Checks Nov 14, 2017
@blockone-syncclient
Copy link
Author

➤ Bezwada Satyapravin commented:

Started node on local machine connecting to testnet (testnet is on STAT tag and local node is on master).

166004ms thread-0 net_plugin.cpp:1703 handle_message ] received forking block #1
2166004ms thread-0 fork_database.cpp:46 push_block ] Pushing block to fork database that failed to link: 0000000219afec75d0844c1479e5ef30c0235185b8d8c30f576fb67641081545, 2
2166004ms thread-0 fork_database.cpp:47 push_block ] Head: 1, 000000013975b1759d331004ff1ff4bb94d8c2b05d7048d8fdebc75f74a1513e
2166005ms thread-0 net_plugin.cpp:1737 handle_message ] handle signed block: unlinkable_block_exception accept block #2 syncing
2166005ms thread-0 net_plugin.cpp:1042 take_chunk ] take_chunk called, but sync_receiving is empty
2166005ms thread-0 net_plugin.cpp:1042 take_chunk ] take_chunk called, but sync_receiving is empty
2166005ms thread-0 net_plugin.cpp:1042 take_chunk ] take_chunk called, but sync_receiving is empty
2166005ms thread-0 net_plugin.cpp:1720 handle_message ] got a block while syncing but no sync_receiving set #6
2166005ms thread-0 net_plugin.cpp:1042 take_chunk ] take_chunk called, but sync_receiving is empty
2166005ms thread-0 net_plugin.cpp:1241 operator() ] Error reading message from connection: Bad file descriptor
2169005ms thread-0 chain_controller.cpp:216 _push_block ] initc #2 @2017-11-15T22:36:09 | 0 trx, 0 pending, exectime_ms=0
2169005ms thread-0 producer_plugin.cpp:244 block_production_loo ] initc generated block #2 @ 2017-11-15T22:36:09 with 0 trxs 0 pending
2178002ms thread-0 chain_controller.cpp:216 _push_block ] initf #3 @2017-11-15T22:36:18 | 0 trx, 0 pending, exectime_ms=0
2178002ms thread-0 producer_plugin.cpp:244 block_production_loo ] initf generated block #3 @ 2017-11-15T22:36:18 with 0 trxs 0 pending
2187004ms thread-0 chain_controller.cpp:216 _push_block ] initi #4 @2017-11-15T22:36:27 | 0 trx, 0 pending, exectime_ms=0
2187004ms thread-0 producer_plugin.cpp:244 block_production_loo ] initi generated block #4 @ 2017-11-15T22:36:27 with 0 trxs 0 pending
2195678ms thread-0 net_plugin.cpp:1132 connect ] host: 10.160.12.162 port: 9876
2195870ms thread-0 net_plugin.cpp:1109 start_sync ] Catching up with chain, our last req is 10, theirs is 3165
2195970ms thread-0 chain_controller.cpp:152 _push_block ] Switching to fork: 000000050b75a3d7f934dfb378f256d20459b5632de2c9ff4552f0e834459195
2195972ms thread-0 chain_controller.cpp:161 _push_block ] pushing blocks from fork 1 000000014bd756c4a48a992faeb1d6ef4a4b9e939ca23f383b775919e34ad87e
2195973ms thread-0 chain_controller.cpp:170 _push_block ] exception thrown while switching forks 3020000 block_validate_exception: block validation exception
Producer produced block at wrong time
{"block producer":"initu","scheduled producer":"initi"}
thread-0 chain_controller.cpp:1104 validate_block_header

{"next_block.block_num()":1}
thread-0  chain_controller.cpp:710 _apply_block

2195977ms thread-0 net_plugin.cpp:1023 operator() ] post cache: accept_block threw a non-assert exception block validation exception

@blockone-syncclient
Copy link
Author

➤ Jonathan Giszczak commented:

It shouldn't have gotten that far in the first place. Check output of eosd --version on both builds and verify they do not match.

@blockone-syncclient
Copy link
Author

➤ Bezwada Satyapravin commented:

testnet

3400083ms thread-0 main.cpp:31 main ] eosd version 0991d1flocal

210317ms thread-0 main.cpp:31 main ] eosd version b360c18

@blockone-syncclient
Copy link
Author

➤ Bezwada Satyapravin commented:

Tested with tag 14 and does not work. Let me know if you need my config.ini.

@blockone-syncclient
Copy link
Author

➤ Bezwada Satyapravin commented:

Local config.ini used http port instead of net port. Works fine when we use net port.

@thomasbcox thomasbcox added this to the EOS Dawn 2.0 milestone Nov 21, 2017
@blockone-syncclient blockone-syncclient changed the title STAT-151 ⁃ Node Startup Versioning Checks DAWN-151 ⁃ Node Startup Versioning Checks Jan 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants