bitcore-node
bitcore-node copied to clipboard
Shutdown fails when unable to bind to port
I assume this fails because bitcoind fails to start, here is what my shell looks like:
$ bitcore-node start
{bitcore-node} info: Starting bitcoind
Error: Unable to bind to 0.0.0.0:18333 on this computer. Bitcoin Core is probably already running.
Error: Failed to listen on any port. Use -listen=0 if you want this.
^C{bitcore-node} info: Beginning shutdown
{bitcore-node} info: Stopping bitcore-wallet-service (not started)
{bitcore-node} info: Stopping insight-api (not started)
{bitcore-node} info: Stopping web (not started)
{bitcore-node} info: Stopping address (not started)
{bitcore-node} info: Stopping db (not started)
{bitcore-node} info: Stopping bitcoind
{bitcore-node} info: bitcoind shutdown.
{bitcore-node} info: Halted
And the process never terminates, I have to kill it from activity monitor.
Replication steps:
- Run another instance of bitcoind (such as QT) with listen=1.
- Try to run bitcore-node
+1
I ran into this issue yesterday
Duplicate issue: https://github.com/bitpay/bitcore-node/issues/150
It would be nice to have the option to manage running bitcoind ourselves by removing the service from bitcore-node.json or an option somewhere. This would prevent many issues with duplication.