bitcore-node icon indicating copy to clipboard operation
bitcore-node copied to clipboard

Shutdown fails when unable to bind to port

Open unusualbob opened this issue 11 years ago • 3 comments

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

unusualbob avatar Oct 21 '15 14:10 unusualbob

+1

I ran into this issue yesterday

gabegattis avatar Oct 21 '15 14:10 gabegattis

Duplicate issue: https://github.com/bitpay/bitcore-node/issues/150

braydonf avatar Oct 27 '15 14:10 braydonf

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.

STRML avatar Dec 01 '15 01:12 STRML