besu icon indicating copy to clipboard operation
besu copied to clipboard

Better error when unable to start due to port conflict for json-rpc services

Open garyschulte opened this issue 2 years ago • 0 comments

Description

when starting besu, if the configured rpc port is not available, besu will exit with a not very helpful error. This applies to the rpc http port, the engine port, and web service port

Acceptance Criteria

  • besu should log a better error when it is unable to start json rpc service(s) on the configured port

Steps to Reproduce (Bug)

  1. start 2 besu instances with the same configured rpc port
  2. the second node will fail to start with a less than useful error message, e.g. :
2022-07-26 18:53:12.207-07:00 | main | INFO  | JsonRpcService | Starting JSON-RPC service on 127.0.0.1:8551
Service engineJsonRpc failed to start

To display full help:
besu [COMMAND] --help
2022-07-26 18:53:12.297-07:00 | BesuCommand-Shutdown-Hook | ERROR | Besu | Failed to stop Besu

garyschulte avatar Jul 27 '22 01:07 garyschulte