cryptonomex / graphene

MIT License
1.05k stars 337 forks source link

Witness node stops syncing when blockchain is not empty. #647

Closed zhangweis closed 7 years ago

zhangweis commented 8 years ago

It works well on first start and I pressed ctrl+C to stop it and it exits cleanly with some blocks in blockchain database. When I start it again, it stops sync. Then I stop it and removed blockchain directory and start it again. Now it does the sync very well. I'm using Raspberry Pi 3 and raspbian for the test and I don't have other env. for the moment.

zhangweis commented 8 years ago

I can see some logs from p2p like below.

2016-04-11T22:34:31 p2p:message read_loop            read_loop ] message transmission failed 13 NSt8ios_base7failureE: basic_ios::clear
basic_ios::clear:
    {"block_num":39960,"what":"basic_ios::clear"}
    th_a  db_block.cpp:61 get_block_id_for_num

    {}
    th_a  application.cpp:843 get_blockchain_synopsis                   message_oriented_connection.cpp:188
2016-04-11T22:34:31 p2p:message read_loop            read_loop ] disconnected 13 NSt8ios_base7failureE: basic_ios::clear
basic_ios::clear:
    {"block_num":39960,"what":"basic_ios::clear"}
    th_a  db_block.cpp:61 get_block_id_for_num

    {}
    th_a  application.cpp:843 get_blockchain_synopsis                   message_oriented_connection.cpp:205
2016-04-11T22:34:31 p2p:message read_loop on_connection_closed ] Remote peer 114.92.236.175:62015 closed their connection to us                 node.cpp:2960

....

2016-04-11T22:34:31 p2p:delayed_peer_deletion_task   destroy_connection ] Exception thrown while canceling message_oriented_connection's read_loop, ignoring: {"code":0,"name":"exception","message":"unspecified","stack":[{"context":{"level":"warn","file":"message_oriented_connection.cpp","line":207,"method":"read_loop","hostname":"","thread_name":"p2p","timestamp":"2016-04-11T22:34:31"},"format":"disconnected: ${e}","data":{"e":"13 NSt8ios_base7failureE: basic_ios::clear\nbasic_ios::clear: \n    {\"block_num\":39960,\"what\":\"basic_ios::clear\"}\n    th_a  db_block.cpp:61 get_block_id_for_num\n\n    {}\n    th_a  application.cpp:843 get_blockchain_synopsis"}}]}                   message_oriented_connection.cpp:299
2016-04-11T22:34:31 p2p:delayed_peer_deletion_task   destroy_connection ] in destroy_connection() for                   message_oriented_connection.cpp:286
vikramrajkumar commented 7 years ago

This issue was moved to bitshares/bitshares-core#208