bringing up witness node documentation needs some changes #30

Closed
opened 2020-10-29 16:12:54 +00:00 by prandnum · 4 comments
prandnum commented 2020-10-29 16:12:54 +00:00 (Migrated from gitlab.com)

Documentation needs the following changes:
https://www.peerplays.tech/witnesses/setting-up-a-witness-node/beatrice

Steps executed

  1. after executing "make -j$(nproc)" step started the witness node using "./programs/witness_node/witness_node"
  2. Stopped the process
  3. modified the following in "witness_node_data_dir/config.ini"
    p2p-endpoint = 0.0.0.0:9777
    rpc-endpoint = 127.0.0.1:8090
  4. Restarted the witness node using "./programs/witness_node/witness_node" command

Issue Seen:

The process crashes with the following error.

qa@PBSA-Dev:~/github/peerplays/src/peerplays$ ./programs/witness_node/witness_node
2581429ms th_a accounts_list_plugin.cpp:128 list_accounts ] accounts list plugin: list_accounts()
2581429ms th_a bookie_plugin.cpp:468 plugin_initialize ] bookie plugin: plugin_startup() begin
2581429ms th_a db_management.cpp:290 force_slow_replays ] enabling slow replays
2581429ms th_a bookie_plugin.cpp:501 plugin_initialize ] bookie plugin: plugin_startup() end
2581429ms th_a witness.cpp:91 plugin_initialize ] witness plugin: plugin_initialize() begin
2581429ms th_a witness.cpp:103 plugin_initialize ] Public Key: TEST6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2581430ms th_a witness.cpp:121 plugin_initialize ] witness plugin: plugin_initialize() end
2581430ms th_a object_database.cpp:106 open ] Opening object database from /home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain ...
2581455ms th_a db_management.cpp:240 open ] 10 assert_exception: Assert Exception
insert_result.second: Could not insert object, most likely a uniqueness constraint was violated
{}
th_a generic_index.hpp:53 insert

{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a  object_database.cpp:113 open

2581455ms th_a db_management.cpp:240 open ] data_dir: /home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain
2581455ms th_a application.cpp:393 startup ] Caught exception 10 assert_exception: Assert Exception
insert_result.second: Could not insert object, most likely a uniqueness constraint was violated
{}
th_a generic_index.hpp:53 insert

{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a  object_database.cpp:113 open

rethrow
{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a db_management.cpp:240 open in open(), you might want to force a replay
2581455ms th_a application.cpp:438 startup ] 10 assert_exception: Assert Exception
insert_result.second: Could not insert object, most likely a uniqueness constraint was violated
{}
th_a generic_index.hpp:53 insert

{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a  object_database.cpp:113 open

rethrow
{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a db_management.cpp:240 open
2581455ms th_a application.cpp:1018 startup ] 10 assert_exception: Assert Exception
insert_result.second: Could not insert object, most likely a uniqueness constraint was violated
{}
th_a generic_index.hpp:53 insert

{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a  object_database.cpp:113 open

rethrow
{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a db_management.cpp:240 open
rethrow
{}
th_a application.cpp:438 startup
2581456ms th_a main.cpp:196 main ] Exiting with error:
10 assert_exception: Assert Exception
insert_result.second: Could not insert object, most likely a uniqueness constraint was violated
{}
th_a generic_index.hpp:53 insert

{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a  object_database.cpp:113 open

rethrow
{"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"}
th_a db_management.cpp:240 open
rethrow
{}
th_a application.cpp:438 startup
qa@PBSA-Dev:~/github/peerplays/src/peerplays$

Changes proposed:

Discussed with Srdan and following are his proposals:

Proposal 1
after executing "make -j$(nproc)" step replace the next step i.e. "./programs/witness_node/witness_node" with

  • ./programs/witness_node/witness_node --create-genesis-json ./programs/witness_node/genesis.json
  • rm -rf ./programs/witness_node/genesis.json

Proposal 2
after starting the witness node, stop the node. make the changes for rp2p-endpoint and rpc-endpoint and then do the following before starting the witness node

  • rm -rf ./wintess_node_data_dir/blockchain
  • rm -rf ./wintess_node_data_dir/log
  • rm -rf ./wintess_node_data_dir/p2p
    Thereafter start the witness node using "./programs/witness_node/witness_node" command.
Documentation needs the following changes: https://www.peerplays.tech/witnesses/setting-up-a-witness-node/beatrice # Steps executed 1) after executing "make -j$(nproc)" step started the witness node using "./programs/witness_node/witness_node" 2) Stopped the process 3) modified the following in "witness_node_data_dir/config.ini" p2p-endpoint = 0.0.0.0:9777 rpc-endpoint = 127.0.0.1:8090 4) Restarted the witness node using "./programs/witness_node/witness_node" command # Issue Seen: The process crashes with the following error. **qa@PBSA-Dev:~/github/peerplays/src/peerplays$** ./programs/witness_node/witness_node 2581429ms th_a accounts_list_plugin.cpp:128 list_accounts ] accounts list plugin: list_accounts() 2581429ms th_a bookie_plugin.cpp:468 plugin_initialize ] bookie plugin: plugin_startup() begin 2581429ms th_a db_management.cpp:290 force_slow_replays ] enabling slow replays 2581429ms th_a bookie_plugin.cpp:501 plugin_initialize ] bookie plugin: plugin_startup() end 2581429ms th_a witness.cpp:91 plugin_initialize ] witness plugin: plugin_initialize() begin 2581429ms th_a witness.cpp:103 plugin_initialize ] Public Key: TEST6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV 2581430ms th_a witness.cpp:121 plugin_initialize ] witness plugin: plugin_initialize() end 2581430ms th_a object_database.cpp:106 open ] Opening object database from /home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain ... 2581455ms th_a db_management.cpp:240 open ] 10 assert_exception: Assert Exception **insert_result.second: Could not insert object, most likely a uniqueness constraint was violated** {} th_a generic_index.hpp:53 insert {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a object_database.cpp:113 open 2581455ms th_a db_management.cpp:240 open ] data_dir: /home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain 2581455ms th_a application.cpp:393 startup ] Caught exception 10 assert_exception: Assert Exception **insert_result.second: Could not insert object, most likely a uniqueness constraint was violated** {} th_a generic_index.hpp:53 insert {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a object_database.cpp:113 open rethrow {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a db_management.cpp:240 open in open(), you might want to force a replay 2581455ms th_a application.cpp:438 startup ] 10 assert_exception: Assert Exception **insert_result.second: Could not insert object, most likely a uniqueness constraint was violated** {} th_a generic_index.hpp:53 insert {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a object_database.cpp:113 open rethrow {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a db_management.cpp:240 open 2581455ms th_a application.cpp:1018 startup ] 10 assert_exception: Assert Exception **insert_result.second: Could not insert object, most likely a uniqueness constraint was violated** {} th_a generic_index.hpp:53 insert {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a object_database.cpp:113 open rethrow {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a db_management.cpp:240 open rethrow {} th_a application.cpp:438 startup 2581456ms th_a main.cpp:196 main ] Exiting with error: 10 assert_exception: Assert Exception **insert_result.second: Could not insert object, most likely a uniqueness constraint was violated** {} th_a generic_index.hpp:53 insert {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a object_database.cpp:113 open rethrow {"data_dir":"/home/qa/github/peerplays/src/peerplays/witness_node_data_dir/blockchain"} th_a db_management.cpp:240 open rethrow {} th_a application.cpp:438 startup **qa@PBSA-Dev:~/github/peerplays/src/peerplays$** # Changes proposed: Discussed with Srdan and following are his proposals: Proposal 1 after executing "make -j$(nproc)" step replace the next step i.e. "./programs/witness_node/witness_node" with - ./programs/witness_node/witness_node --create-genesis-json ./programs/witness_node/genesis.json - rm -rf ./programs/witness_node/genesis.json Proposal 2 after starting the witness node, stop the node. make the changes for rp2p-endpoint and rpc-endpoint and then do the following before starting the witness node - rm -rf ./wintess_node_data_dir/blockchain - rm -rf ./wintess_node_data_dir/log - rm -rf ./wintess_node_data_dir/p2p Thereafter start the witness node using "./programs/witness_node/witness_node" command.
prandnum commented 2020-10-29 16:14:23 +00:00 (Migrated from gitlab.com)

@bobinson @RoshanSyed Please review the proposal. my preference is to go with Proposal 1.

@bobinson @RoshanSyed Please review the proposal. my preference is to go with Proposal 1.
prandnum commented 2020-10-29 16:19:10 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
prandnum commented 2020-10-29 17:28:32 +00:00 (Migrated from gitlab.com)

@RoshanSyed Bobinson confirmed over chat to go with Proposal 1. Request you to make the necessary changes.

@RoshanSyed Bobinson confirmed over chat to go with Proposal 1. Request you to make the necessary changes.
RoshanSyed commented 2020-10-30 12:57:35 +00:00 (Migrated from gitlab.com)

@prandnum I have applied proposal 1 to https://www.peerplays.tech/witnesses/setting-up-a-witness-node/beatrice. Please verify,

@prandnum I have applied proposal 1 to https://www.peerplays.tech/witnesses/setting-up-a-witness-node/beatrice. Please verify,
prandnum (Migrated from gitlab.com) closed this issue 2021-01-01 18:41:59 +00:00
Sign in to join this conversation.
No milestone
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#30
No description provided.