Bitcoind gets shut down and restarted


(Pavel Bastov) #1

Hello everyone,

I’ve been using bitcore-node with bitcoind v.0.12.1 until recently. A couple of days ago I upgraded bitcoind to version 0.15.0.1. And now I am experiencing a weird problem: if I run bitcoind manually like bitcoind -datadir=MYDATADIR -printtoconsole it’s working fine, but if I start the bitcore node via sudo systemctl start bitcored, the bitcoind daemon get shut down and restarted in a loop.

Below is an excerpt from debug.log:

2017-11-09 06:21:46 Leaving InitialBlockDownload (latching to false)
2017-11-09 06:21:48 Loaded 61440 addresses from peers.dat  2309ms
2017-11-09 06:21:48 init message: Loading banlist...
2017-11-09 06:21:48 init message: Starting network threads...
2017-11-09 06:21:48 init message: Done loading
2017-11-09 06:21:48 msghand thread start
2017-11-09 06:21:48 opencon thread start
2017-11-09 06:21:48 addcon thread start
2017-11-09 06:21:48 dnsseed thread start
2017-11-09 06:21:48 net thread start
2017-11-09 06:21:49 receive version message: /Satoshi:0.14.2/: version 70015, blocks=493723, us=52.27.33.58:45436, peer=0
2017-11-09 06:21:50 ProcessMessages(version, 106 bytes) FAILED peer=1
2017-11-09 06:21:50 connect() to [2001:0:9d38:953c:3cbd:1bb3:25c3:b1c6]:8333 failed: Network is unreachable (101)
2017-11-09 06:21:52 receive version message: /Satoshi:0.14.1/: version 70015, blocks=493723, us=52.27.33.58:56132, peer=2
2017-11-09 06:21:57 tor: Thread interrupt
2017-11-09 06:21:57 torcontrol thread exit
2017-11-09 06:21:57 dnsseed thread exit
2017-11-09 06:21:57 scheduler thread interrupt
2017-11-09 06:21:57 opencon thread exit
2017-11-09 06:21:57 addcon thread exit
2017-11-09 06:21:57 Shutdown: In progress...
2017-11-09 06:21:57 msghand thread exit
2017-11-09 06:21:57 net thread exit
2017-11-09 06:21:58 Shutdown: done

Here is the contents of of bitcore-node.json:

{
  "network": "livenet",
  "port": 3001,
  "services": [
    "bitcoind",
    "insight-api",
    "insight-ui",
    "web"
  ],
  "servicesConfig": {
    "bitcoind": {
      "spawn": {
        "datadir": "./data",
        "exec": "/home/ubuntu/.nvm/v6.11.1/lib/node_modules/bitcore-node/bin/bitcoind"
      }
    }
  }
}

What could be the reason for this?

Any advice is highly appreciated.