wrong help/error message suggesting usage of invalid argument --p2p-port #363

Closed
opened 2022-05-09 08:50:07 +00:00 by bobinson · 4 comments
bobinson commented 2022-05-09 08:50:07 +00:00 (Migrated from gitlab.com)
  1. start (run) witness_node
  2. waiting a little and then terminate it with control -c
  3. run witness_node again & the following message is shown:

Essentially requests to start node with witness_node --p2p-port option

root@74e8ff387a0a:~/peerplays-network# ./witness_node
2541618ms th_a       accounts_list_plugin.cpp:128  list_accounts        ] accounts list plugin:  list_accounts()
2541618ms th_a       bookie_plugin.cpp:468         plugin_initialize    ] bookie plugin: plugin_startup() begin
2541618ms th_a       db_management.cpp:294         force_slow_replays   ] enabling slow replays
2541618ms th_a       bookie_plugin.cpp:501         plugin_initialize    ] bookie plugin: plugin_startup() end
2541618ms th_a       witness.cpp:91                plugin_initialize    ] witness plugin:  plugin_initialize() begin
2541619ms th_a       witness.cpp:105               plugin_initialize    ] Public Key: PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2541619ms th_a       witness.cpp:123               plugin_initialize    ] witness plugin:  plugin_initialize() end
2541619ms th_a       object_database.cpp:106       open                 ] Opening object database from /home/peerplays/peerplays-network/witness_node_data_dir/blockchain ...
2541814ms th_a       object_database.cpp:111       open                 ] Done opening object database.
2541817ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 51.222.110.110:9777
2541818ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 95.216.90.243:9777
2541818ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 96.46.48.98:19777
2541818ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 96.46.48.98:29777
2541819ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 96.46.48.98:39777
2541819ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 96.46.48.98:49777
2541819ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 96.46.48.98:59777
2541821ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 192.99.111.177:9777
2543738ms th_a       application.cpp:172           reset_p2p_node       ] Adding seed node 77.105.14.79:9777
Unable to listen for connections on port 9777, retrying in a few seconds
You can wait for it to become available, or restart this program using
the --p2p-port option to specify another port
root@74e8ff387a0a:~/peerplays-network# ./witness_node  --p2p-port 1234
Error parsing command line: unrecognised option '--p2p-port'

Expected behaviour:

The message should be showing --p2p-endpoint

root@74e8ff387a0a:~/peerplays-network# ./witness_node  --help | grep p2p
  --p2p-endpoint arg (=0.0.0.0:9777)    Endpoint for P2P node to listen on
1. start (run) `witness_node` 2. waiting a little and then terminate it with control -c 3. run `witness_node` again & the following message is shown: Essentially requests to start node with `witness_node --p2p-port` option ``` root@74e8ff387a0a:~/peerplays-network# ./witness_node 2541618ms th_a accounts_list_plugin.cpp:128 list_accounts ] accounts list plugin: list_accounts() 2541618ms th_a bookie_plugin.cpp:468 plugin_initialize ] bookie plugin: plugin_startup() begin 2541618ms th_a db_management.cpp:294 force_slow_replays ] enabling slow replays 2541618ms th_a bookie_plugin.cpp:501 plugin_initialize ] bookie plugin: plugin_startup() end 2541618ms th_a witness.cpp:91 plugin_initialize ] witness plugin: plugin_initialize() begin 2541619ms th_a witness.cpp:105 plugin_initialize ] Public Key: PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV 2541619ms th_a witness.cpp:123 plugin_initialize ] witness plugin: plugin_initialize() end 2541619ms th_a object_database.cpp:106 open ] Opening object database from /home/peerplays/peerplays-network/witness_node_data_dir/blockchain ... 2541814ms th_a object_database.cpp:111 open ] Done opening object database. 2541817ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 51.222.110.110:9777 2541818ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 95.216.90.243:9777 2541818ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 96.46.48.98:19777 2541818ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 96.46.48.98:29777 2541819ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 96.46.48.98:39777 2541819ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 96.46.48.98:49777 2541819ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 96.46.48.98:59777 2541821ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 192.99.111.177:9777 2543738ms th_a application.cpp:172 reset_p2p_node ] Adding seed node 77.105.14.79:9777 Unable to listen for connections on port 9777, retrying in a few seconds You can wait for it to become available, or restart this program using the --p2p-port option to specify another port ``` 4. ``` root@74e8ff387a0a:~/peerplays-network# ./witness_node --p2p-port 1234 Error parsing command line: unrecognised option '--p2p-port' ``` Expected behaviour: The message should be showing `--p2p-endpoint` ``` root@74e8ff387a0a:~/peerplays-network# ./witness_node --help | grep p2p --p2p-endpoint arg (=0.0.0.0:9777) Endpoint for P2P node to listen on ```
serkixenos commented 2022-05-09 14:07:47 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
serkixenos commented 2022-05-09 14:07:58 +00:00 (Migrated from gitlab.com)

assigned to @prandnum

assigned to @prandnum
serkixenos commented 2022-05-09 14:10:02 +00:00 (Migrated from gitlab.com)

How to test:

  • Build latest develop branch
  • Create empty folder, and run witness_node from it
  • Create another empty folder, and run another witness_instance from it
  • The error message will appear
  • Verify that error message text contains "the --p2p-endpoint option to specify another port"
How to test: - Build latest develop branch - Create empty folder, and run witness_node from it - Create another empty folder, and run another witness_instance from it - The error message will appear - Verify that error message text contains "the --p2p-endpoint option to specify another port"
prandnum (Migrated from gitlab.com) closed this issue 2022-05-13 18:48:57 +00:00
prandnum commented 2022-05-13 18:49:50 +00:00 (Migrated from gitlab.com)
Unable to listen for connections on port 9777, retrying in a few seconds
You can wait for it to become available, or restart this program using
the --p2p-endpoint option to specify another port

Still waiting for port 9777 to become available

``` Unable to listen for connections on port 9777, retrying in a few seconds You can wait for it to become available, or restart this program using the --p2p-endpoint option to specify another port Still waiting for port 9777 to become available ```
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#363
No description provided.