synced with mainnet and stopped with control-c : not able resume without replay #364

Closed
opened 2022-05-10 05:16:32 +00:00 by bobinson · 7 comments
bobinson commented 2022-05-10 05:16:32 +00:00 (Migrated from gitlab.com)

Environment details:

OS: Ubuntu 18.04.6 LTS

Version: test-1.5.4-150-ge0d7a631
Git Revision: e0d7a6314a7ab6f17fec3e704370007c00896704
Built: May  9 2022 at 07:20:11
SSL: OpenSSL 1.1.1  11 Sep 2018
Boost: 1.67
Linux bkb-dev-server1 4.15.0-176-generic #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  1. Current beatrice is used to replay a blockchain database
  2. Full replay is completed
  3. The node is stopped with control-c
  4. It exited
  5. Tried to restart

But the following command is stuck due to p2p end point (port) still in use

(base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/

Thus tried to start with a new port but its not progressing

(base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/    --p2p-endpoint 0.0.0.0:9778
669157ms th_a       accounts_list_plugin.cpp:128  list_accounts        ] accounts list plugin:  list_accounts()
669157ms th_a       bookie_plugin.cpp:412         plugin_initialize    ] bookie plugin: plugin_startup() begin
669157ms th_a       db_management.cpp:294         force_slow_replays   ] enabling slow replays
669158ms th_a       bookie_plugin.cpp:435         plugin_initialize    ] bookie plugin: plugin_startup() end
669158ms th_a       witness.cpp:91                plugin_initialize    ] witness plugin:  plugin_initialize() begin
669158ms th_a       witness.cpp:105               plugin_initialize    ] Public Key: PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
669158ms th_a       witness.cpp:123               plugin_initialize    ] witness plugin:  plugin_initialize() end
669158ms th_a       object_database.cpp:106       open                 ] Opening object database from /home/bkb/src/peerplays/peerplays-docker/data/witness_node_data_dir/blockchain ...
669861ms th_a       object_database.cpp:111       open                 ] Done opening object database.
669861ms th_a       db_management.cpp:108         reindex              ] reindexing blockchain
669861ms th_a       db_management.cpp:113         reindex              ] Replaying blocks, starting at 49770275...
669862ms th_a       db_management.cpp:174         reindex              ] Done reindexing, elapsed time: 0.00085100000000000 sec
669869ms th_a       application.cpp:142           reset_p2p_node       ] Adding seed node 195.201.86.214:6116
669887ms th_a       application.cpp:147           reset_p2p_node       ] caught exception 0 exception: unspecified
process exited with: Host not found (authoritative)
    {"message":"Host not found (authoritative)"}
    asio  asio.cpp:87 resolve_handler

    {}
    th_a  asio.cpp:167 resolve

    {"endpoint_string":"seed01.eifos.org:7777"}
    th_a  application.cpp:216 resolve_string_to_ip_endpoints while adding seed node seed01.eifos.org:7777
669896ms th_a       application.cpp:142           reset_p2p_node       ] Adding seed node 31.171.247.89:7777
669898ms th_a       application.cpp:187           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:9778
669898ms th_a       application.cpp:261           reset_websocket_serv ] Configured websocket rpc to listen on 0.0.0.0:8090
669899ms th_a       bookie_plugin.cpp:440         plugin_startup       ] bookie plugin: plugin_startup()
669899ms th_a       witness.cpp:128               plugin_startup       ] witness plugin:  plugin_startup() begin
669899ms th_a       witness.cpp:143               plugin_startup       ] No witnesses configured! Please add witness IDs and private keys to configuration.
669899ms th_a       witness.cpp:144               plugin_startup       ] witness plugin:  plugin_startup() end
669899ms th_a       main.cpp:177                  main                 ] Started Peerplays node on a chain with 49770283 blocks.
669899ms th_a       main.cpp:178                  main                 ] Chain ID is 6b6b5f0ce7a36d323768e534f3edb41c6d6332a541a95725b98e28d140850134

Tried to do resync, this is also not progressing

(base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/    --p2p-endpoint 0.0.0.0:9778 --resync
736598ms th_a       accounts_list_plugin.cpp:128  list_accounts        ] accounts list plugin:  list_accounts()
736598ms th_a       bookie_plugin.cpp:412         plugin_initialize    ] bookie plugin: plugin_startup() begin
736598ms th_a       db_management.cpp:294         force_slow_replays   ] enabling slow replays
736598ms th_a       bookie_plugin.cpp:435         plugin_initialize    ] bookie plugin: plugin_startup() end
736599ms th_a       witness.cpp:91                plugin_initialize    ] witness plugin:  plugin_initialize() begin
736599ms th_a       witness.cpp:105               plugin_initialize    ] Public Key: PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
736599ms th_a       witness.cpp:123               plugin_initialize    ] witness plugin:  plugin_initialize() end
736599ms th_a       db_management.cpp:179         wipe                 ] Wiping database
736599ms th_a       object_database.cpp:93        wipe                 ] Wiping object database...
736616ms th_a       object_database.cpp:95        wipe                 ] Done wiping object databse.
738867ms th_a       object_database.cpp:106       open                 ] Opening object database from /home/bkb/src/peerplays/peerplays-docker/data/witness_node_data_dir/blockchain ...
738868ms th_a       object_database.cpp:111       open                 ] Done opening object database.
738868ms th_a       application.cpp:308           operator()           ] Initializing database...
740688ms th_a       db_debug.cpp:85               debug_dump           ] total_balances[asset_id_type()].value: 239781396552 core_asset_data.current_supply.value: 546051993031
740703ms th_a       application.cpp:142           reset_p2p_node       ] Adding seed node 195.201.86.214:6116
740705ms th_a       application.cpp:147           reset_p2p_node       ] caught exception 0 exception: unspecified
process exited with: Host not found (authoritative)
    {"message":"Host not found (authoritative)"}
    asio  asio.cpp:87 resolve_handler

    {}
    th_a  asio.cpp:167 resolve

    {"endpoint_string":"seed01.eifos.org:7777"}
    th_a  application.cpp:216 resolve_string_to_ip_endpoints while adding seed node seed01.eifos.org:7777
740706ms th_a       application.cpp:142           reset_p2p_node       ] Adding seed node 31.171.247.89:7777
740707ms th_a       application.cpp:187           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:9778
740707ms th_a       application.cpp:261           reset_websocket_serv ] Configured websocket rpc to listen on 0.0.0.0:8090
740707ms th_a       bookie_plugin.cpp:440         plugin_startup       ] bookie plugin: plugin_startup()
740707ms th_a       witness.cpp:128               plugin_startup       ] witness plugin:  plugin_startup() begin
740707ms th_a       witness.cpp:143               plugin_startup       ] No witnesses configured! Please add witness IDs and private keys to configuration.
740707ms th_a       witness.cpp:144               plugin_startup       ] witness plugin:  plugin_startup() end
740708ms th_a       main.cpp:177                  main                 ] Started Peerplays node on a chain with 0 blocks.
740708ms th_a       main.cpp:178                  main                 ] Chain ID is 6b6b5f0ce7a36d323768e534f3edb41c6d6332a541a95725b98e28d140850134
Environment details: OS: Ubuntu 18.04.6 LTS ``` Version: test-1.5.4-150-ge0d7a631 Git Revision: e0d7a6314a7ab6f17fec3e704370007c00896704 Built: May 9 2022 at 07:20:11 SSL: OpenSSL 1.1.1 11 Sep 2018 Boost: 1.67 ``` ``` Linux bkb-dev-server1 4.15.0-176-generic #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ``` 1. Current `beatrice` is used to replay a blockchain database 2. Full replay is completed 3. The node is stopped with control-c 4. It exited 5. Tried to restart But the following command is stuck due to p2p end point (port) still in use ``` (base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/ ``` Thus tried to start with a new port but its not progressing ``` (base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/ --p2p-endpoint 0.0.0.0:9778 669157ms th_a accounts_list_plugin.cpp:128 list_accounts ] accounts list plugin: list_accounts() 669157ms th_a bookie_plugin.cpp:412 plugin_initialize ] bookie plugin: plugin_startup() begin 669157ms th_a db_management.cpp:294 force_slow_replays ] enabling slow replays 669158ms th_a bookie_plugin.cpp:435 plugin_initialize ] bookie plugin: plugin_startup() end 669158ms th_a witness.cpp:91 plugin_initialize ] witness plugin: plugin_initialize() begin 669158ms th_a witness.cpp:105 plugin_initialize ] Public Key: PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV 669158ms th_a witness.cpp:123 plugin_initialize ] witness plugin: plugin_initialize() end 669158ms th_a object_database.cpp:106 open ] Opening object database from /home/bkb/src/peerplays/peerplays-docker/data/witness_node_data_dir/blockchain ... 669861ms th_a object_database.cpp:111 open ] Done opening object database. 669861ms th_a db_management.cpp:108 reindex ] reindexing blockchain 669861ms th_a db_management.cpp:113 reindex ] Replaying blocks, starting at 49770275... 669862ms th_a db_management.cpp:174 reindex ] Done reindexing, elapsed time: 0.00085100000000000 sec 669869ms th_a application.cpp:142 reset_p2p_node ] Adding seed node 195.201.86.214:6116 669887ms th_a application.cpp:147 reset_p2p_node ] caught exception 0 exception: unspecified process exited with: Host not found (authoritative) {"message":"Host not found (authoritative)"} asio asio.cpp:87 resolve_handler {} th_a asio.cpp:167 resolve {"endpoint_string":"seed01.eifos.org:7777"} th_a application.cpp:216 resolve_string_to_ip_endpoints while adding seed node seed01.eifos.org:7777 669896ms th_a application.cpp:142 reset_p2p_node ] Adding seed node 31.171.247.89:7777 669898ms th_a application.cpp:187 reset_p2p_node ] Configured p2p node to listen on 0.0.0.0:9778 669898ms th_a application.cpp:261 reset_websocket_serv ] Configured websocket rpc to listen on 0.0.0.0:8090 669899ms th_a bookie_plugin.cpp:440 plugin_startup ] bookie plugin: plugin_startup() 669899ms th_a witness.cpp:128 plugin_startup ] witness plugin: plugin_startup() begin 669899ms th_a witness.cpp:143 plugin_startup ] No witnesses configured! Please add witness IDs and private keys to configuration. 669899ms th_a witness.cpp:144 plugin_startup ] witness plugin: plugin_startup() end 669899ms th_a main.cpp:177 main ] Started Peerplays node on a chain with 49770283 blocks. 669899ms th_a main.cpp:178 main ] Chain ID is 6b6b5f0ce7a36d323768e534f3edb41c6d6332a541a95725b98e28d140850134 ``` Tried to do resync, this is also not progressing ``` (base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/ --p2p-endpoint 0.0.0.0:9778 --resync 736598ms th_a accounts_list_plugin.cpp:128 list_accounts ] accounts list plugin: list_accounts() 736598ms th_a bookie_plugin.cpp:412 plugin_initialize ] bookie plugin: plugin_startup() begin 736598ms th_a db_management.cpp:294 force_slow_replays ] enabling slow replays 736598ms th_a bookie_plugin.cpp:435 plugin_initialize ] bookie plugin: plugin_startup() end 736599ms th_a witness.cpp:91 plugin_initialize ] witness plugin: plugin_initialize() begin 736599ms th_a witness.cpp:105 plugin_initialize ] Public Key: PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV 736599ms th_a witness.cpp:123 plugin_initialize ] witness plugin: plugin_initialize() end 736599ms th_a db_management.cpp:179 wipe ] Wiping database 736599ms th_a object_database.cpp:93 wipe ] Wiping object database... 736616ms th_a object_database.cpp:95 wipe ] Done wiping object databse. 738867ms th_a object_database.cpp:106 open ] Opening object database from /home/bkb/src/peerplays/peerplays-docker/data/witness_node_data_dir/blockchain ... 738868ms th_a object_database.cpp:111 open ] Done opening object database. 738868ms th_a application.cpp:308 operator() ] Initializing database... 740688ms th_a db_debug.cpp:85 debug_dump ] total_balances[asset_id_type()].value: 239781396552 core_asset_data.current_supply.value: 546051993031 740703ms th_a application.cpp:142 reset_p2p_node ] Adding seed node 195.201.86.214:6116 740705ms th_a application.cpp:147 reset_p2p_node ] caught exception 0 exception: unspecified process exited with: Host not found (authoritative) {"message":"Host not found (authoritative)"} asio asio.cpp:87 resolve_handler {} th_a asio.cpp:167 resolve {"endpoint_string":"seed01.eifos.org:7777"} th_a application.cpp:216 resolve_string_to_ip_endpoints while adding seed node seed01.eifos.org:7777 740706ms th_a application.cpp:142 reset_p2p_node ] Adding seed node 31.171.247.89:7777 740707ms th_a application.cpp:187 reset_p2p_node ] Configured p2p node to listen on 0.0.0.0:9778 740707ms th_a application.cpp:261 reset_websocket_serv ] Configured websocket rpc to listen on 0.0.0.0:8090 740707ms th_a bookie_plugin.cpp:440 plugin_startup ] bookie plugin: plugin_startup() 740707ms th_a witness.cpp:128 plugin_startup ] witness plugin: plugin_startup() begin 740707ms th_a witness.cpp:143 plugin_startup ] No witnesses configured! Please add witness IDs and private keys to configuration. 740707ms th_a witness.cpp:144 plugin_startup ] witness plugin: plugin_startup() end 740708ms th_a main.cpp:177 main ] Started Peerplays node on a chain with 0 blocks. 740708ms th_a main.cpp:178 main ] Chain ID is 6b6b5f0ce7a36d323768e534f3edb41c6d6332a541a95725b98e28d140850134 ```
bobinson commented 2022-05-10 05:23:15 +00:00 (Migrated from gitlab.com)

discussion:

What is the expected behavior ?

If a node is stopped like this, simply running the command witness_node should be reconnecting. If not what is the process ?

discussion: What is the expected behavior ? If a node is stopped like this, simply running the command `witness_node` should be reconnecting. If not what is the process ?
bobinson commented 2022-05-10 06:56:27 +00:00 (Migrated from gitlab.com)

changed title from synced with mainnet and stopped with control-c to synced with mainnet and stopped with control-c{+ : not able resume without replay+}

changed title from **synced with mainnet and stopped with control-c** to **synced with mainnet and stopped with control-c{+ : not able resume without replay+}**
bobinson commented 2022-05-10 06:58:03 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
bobinson commented 2022-05-10 11:05:21 +00:00 (Migrated from gitlab.com)

PS: I am not able to re-produce this. ie to say the command (base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/ is working fine as expected.

PS: I am not able to re-produce this. ie to say the command `(base) bkb@bkb-dev-server1:~/src/peerplays$ sudo ./programs/witness_node/witness_node -d peerplays-docker/data/witness_node_data_dir/` is working fine as expected.
bobinson commented 2022-05-10 11:05:21 +00:00 (Migrated from gitlab.com)

assigned to @bobinson

assigned to @bobinson
serkixenos commented 2022-05-10 13:11:16 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
bobinson commented 2022-05-10 13:26:09 +00:00 (Migrated from gitlab.com)

I am closing this issue report as this seems to be working well on my end. I will re-open if the issue seen again.

I am closing this issue report as this seems to be working well on my end. I will re-open if the issue seen again.
bobinson (Migrated from gitlab.com) closed this issue 2022-05-10 13:26:17 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#364
No description provided.