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

Exception on reindex after crash v0.16rc1 #588

Closed
theoreticalbts opened this issue Nov 21, 2016 · 2 comments
Closed

Exception on reindex after crash v0.16rc1 #588

theoreticalbts opened this issue Nov 21, 2016 · 2 comments

Comments

@theoreticalbts
Copy link
Contributor

theoreticalbts commented Nov 21, 2016

Here is the log:

64730ms th_a       main.cpp:156                  main                 ] parsing options
64730ms th_a       main.cpp:158                  main                 ] initializing node
64730ms th_a       main.cpp:160                  main                 ] initializing plugins
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin account_history
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin auth_util
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin block_info
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin follow
64730ms th_a       follow_plugin.cpp:355         plugin_initialize    ] Intializing follow plugin
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin market_history
64730ms th_a       market_history_plugin.cpp:178 plugin_initialize    ] market_history: plugin_initialize() begin
64730ms th_a       market_history_plugin.cpp:192 plugin_initialize    ] bucket-size [15,60,300,3600,86400]
64730ms th_a       market_history_plugin.cpp:193 plugin_initialize    ] history-per-size 1000
64730ms th_a       market_history_plugin.cpp:195 plugin_initialize    ] market_history: plugin_initialize() end
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin raw_block
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin tags
64730ms th_a       tags_plugin.cpp:407           plugin_initialize    ] Intializing tags plugin
64730ms th_a       application.hpp:101           register_api_factory ] name: tag_api
64730ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin witness
64730ms th_a       witness.cpp:99                plugin_initialize    ] witness plugin:  plugin_initialize() begin
64740ms th_a       witness.cpp:168               plugin_initialize    ] witness plugin:  plugin_initialize() end
64740ms th_a       main.cpp:163                  main                 ] starting node
64740ms th_a       application.cpp:244           startup              ] shared_file_size is 34359738368 bytes
64740ms th_a       application.hpp:101           register_api_factory ] name: login_api
64740ms th_a       application.hpp:101           register_api_factory ] name: database_api
64740ms th_a       application.hpp:101           register_api_factory ] name: network_node_api
64740ms th_a       application.hpp:101           register_api_factory ] name: network_broadcast_api
64740ms th_a       application.cpp:265           startup              ] Replaying blockchain on user request.
64740ms th_a       database.cpp:134              reindex              ] Reindexing Blockchain
67097ms th_a       block_log.cpp:114             open                 ] Log is nonempty
67097ms th_a       block_log.cpp:123             open                 ] Index is nonempty
67124ms th_a       database.cpp:142              reindex              ] Replaying blocks...
67124ms th_a       database.cpp:142              reindex              ] Replaying blocks...
67124ms th_a       database.cpp:3011             _apply_block         ] 10 assert_exception: Assert Exception
head_block_time() < next_block.timestamp: 
    {"head_block_time":"2016-03-24T16:00:00","next":"1970-10-21T08:25:04","blocknum":1}
    th_a  database.cpp:3238 validate_block_header
67124ms th_a       database.cpp:3011             _apply_block         ] next_block.block_num(): 1 
67124ms th_a       application.cpp:337           startup              ] 10 assert_exception: Assert Exception
head_block_time() < next_block.timestamp: 
    {"head_block_time":"2016-03-24T16:00:00","next":"1970-10-21T08:25:04","blocknum":1}
    th_a  database.cpp:3238 validate_block_header
rethrow
    {"next_block.block_num()":1}
    th_a  database.cpp:3011 _apply_block

    {"next_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"1970-10-21T08:25:04","witness":"","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","transactions":[]}}
    th_a  database.cpp:2896 apply_block

    {"data_dir":"datadir/blockchain"}
    th_a  database.cpp:180 reindex
67124ms th_a       application.cpp:900           startup              ] 10 assert_exception: Assert Exception
head_block_time() < next_block.timestamp: 
    {"head_block_time":"2016-03-24T16:00:00","next":"1970-10-21T08:25:04","blocknum":1}
    th_a  database.cpp:3238 validate_block_header
rethrow
    {"next_block.block_num()":1}
    th_a  database.cpp:3011 _apply_block

    {"next_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"1970-10-21T08:25:04","witness":"","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","transactions":[]}}
    th_a  database.cpp:2896 apply_block

    {"data_dir":"datadir/blockchain"}
    th_a  database.cpp:180 reindex
rethrow
    {}
    th_a  application.cpp:337 startup
67124ms th_a       main.cpp:194                  main                 ] Exiting with error:
10 assert_exception: Assert Exception
head_block_time() < next_block.timestamp: 
    {"head_block_time":"2016-03-24T16:00:00","next":"1970-10-21T08:25:04","blocknum":1}
    th_a  database.cpp:3238 validate_block_header
rethrow
    {"next_block.block_num()":1}
    th_a  database.cpp:3011 _apply_block

    {"next_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"1970-10-21T08:25:04","witness":"","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","transactions":[]}}
    th_a  database.cpp:2896 apply_block

    {"data_dir":"datadir/blockchain"}
    th_a  database.cpp:180 reindex
rethrow
    {}
    th_a  application.cpp:337 startup
@theoreticalbts
Copy link
Contributor Author

Tried running this command:

rm datadir/blockchain/shared_memory

Now exits with:

222339ms th_a       main.cpp:117                  main                 ] Error parsing logging config from config file datadir/config.ini, using default config
222339ms th_a       main.cpp:156                  main                 ] parsing options
222339ms th_a       main.cpp:158                  main                 ] initializing node
222339ms th_a       main.cpp:160                  main                 ] initializing plugins
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin account_history
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin auth_util
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin block_info
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin follow
222339ms th_a       follow_plugin.cpp:355         plugin_initialize    ] Intializing follow plugin
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin market_history
222339ms th_a       market_history_plugin.cpp:178 plugin_initialize    ] market_history: plugin_initialize() begin
222339ms th_a       market_history_plugin.cpp:192 plugin_initialize    ] bucket-size [15,60,300,3600,86400]
222339ms th_a       market_history_plugin.cpp:193 plugin_initialize    ] history-per-size 1000
222339ms th_a       market_history_plugin.cpp:195 plugin_initialize    ] market_history: plugin_initialize() end
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin raw_block
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin tags
222339ms th_a       tags_plugin.cpp:407           plugin_initialize    ] Intializing tags plugin
222339ms th_a       application.hpp:101           register_api_factory ] name: tag_api
222339ms th_a       application.cpp:1013          initialize_plugins   ] Initializing plugin witness
222339ms th_a       witness.cpp:99                plugin_initialize    ] witness plugin:  plugin_initialize() begin
222349ms th_a       witness.cpp:168               plugin_initialize    ] witness plugin:  plugin_initialize() end
222349ms th_a       main.cpp:163                  main                 ] starting node
222349ms th_a       application.cpp:244           startup              ] shared_file_size is 34359738368 bytes
222349ms th_a       application.hpp:101           register_api_factory ] name: login_api
222349ms th_a       application.hpp:101           register_api_factory ] name: database_api
222349ms th_a       application.hpp:101           register_api_factory ] name: network_node_api
222349ms th_a       application.hpp:101           register_api_factory ] name: network_broadcast_api
222349ms th_a       application.cpp:265           startup              ] Replaying blockchain on user request.
222349ms th_a       database.cpp:134              reindex              ] Reindexing Blockchain
222349ms th_a       block_log.cpp:114             open                 ] Log is nonempty
222349ms th_a       block_log.cpp:123             open                 ] Index is nonempty
222376ms th_a       database.cpp:142              reindex              ] Replaying blocks...
222376ms th_a       database.cpp:3011             _apply_block         ] 13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key
unknown key: 
    {"name":"","what":"unknown key"}
    th_a  database.cpp:300 get_witness
222376ms th_a       database.cpp:3011             _apply_block         ] next_block.block_num(): 1 
222377ms th_a       application.cpp:337           startup              ] 13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key
unknown key: 
    {"name":"","what":"unknown key"}
    th_a  database.cpp:300 get_witness
rethrow
    {"next_block.block_num()":1}
    th_a  database.cpp:3011 _apply_block

    {"next_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"1943-06-19T23:25:20","witness":"","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","transactions":[]}}
    th_a  database.cpp:2896 apply_block

    {"data_dir":"datadir/blockchain"}
    th_a  database.cpp:180 reindex
222377ms th_a       application.cpp:900           startup              ] 13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key
unknown key: 
    {"name":"","what":"unknown key"}
    th_a  database.cpp:300 get_witness
rethrow
    {"next_block.block_num()":1}
    th_a  database.cpp:3011 _apply_block

    {"next_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"1943-06-19T23:25:20","witness":"","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","transactions":[]}}
    th_a  database.cpp:2896 apply_block

    {"data_dir":"datadir/blockchain"}
    th_a  database.cpp:180 reindex
rethrow
    {}
    th_a  application.cpp:337 startup
222377ms th_a       main.cpp:194                  main                 ] Exiting with error:
13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key
unknown key: 
    {"name":"","what":"unknown key"}
    th_a  database.cpp:300 get_witness
rethrow
    {"next_block.block_num()":1}
    th_a  database.cpp:3011 _apply_block

    {"next_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"1943-06-19T23:25:20","witness":"","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","transactions":[]}}
    th_a  database.cpp:2896 apply_block

    {"data_dir":"datadir/blockchain"}
    th_a  database.cpp:180 reindex
rethrow
    {}
    th_a  application.cpp:337 startup

@mvandeberg
Copy link
Contributor

merged

On1x pushed a commit to VIZ-Blockchain/viz-cpp-node that referenced this issue May 28, 2018
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

2 participants