bitpay / bitcore-node

Extensible full node using Bitcore
https://bitcore.io/
Other
352 stars 644 forks source link

error: Failed to start services #525

Closed xishoon closed 6 years ago

xishoon commented 7 years ago

When I run command "bitcored", it starts the server but later on it gives me the following error

zeshan@zeshan-Latitude-E6420:~/bcn$ bitcored [2017-09-29T06:05:07.014Z] info: Checked the current working directory for service: address [2017-09-29T06:05:07.018Z] info: Checked the current working directory for service: block [2017-09-29T06:05:07.088Z] info: Checked the current working directory for service: db [2017-09-29T06:05:07.110Z] info: Checked the current working directory for service: fee [2017-09-29T06:05:07.114Z] info: Checked the current working directory for service: header [2017-09-29T06:05:07.121Z] info: Checked the current working directory for service: mempool [2017-09-29T06:05:07.124Z] info: Checked the current working directory for service: p2p [2017-09-29T06:05:07.146Z] info: Checked the current working directory for service: timestamp [2017-09-29T06:05:07.148Z] info: Checked the current working directory for service: transaction [2017-09-29T06:05:07.150Z] info: Checked the current working directory for service: web [2017-09-29T06:05:07.150Z] info: Checked the current working directory for service: node_modules/insight-api [2017-09-29T06:05:07.151Z] info: Checked the built-in path: lib/services, for service: insight-api [2017-09-29T06:05:07.506Z] info: Checked the current working directory for service: node_modules/insight-ui [2017-09-29T06:05:07.507Z] info: Checked the built-in path: lib/services, for service: insight-ui [2017-09-29T06:05:07.509Z] info: Using config: /home/zeshan/bcn/bitcore-node.json [2017-09-29T06:05:07.509Z] info: Using network: livenet [2017-09-29T06:05:07.510Z] info: Starting db [2017-09-29T06:05:07.513Z] info: Starting timestamp [2017-09-29T06:05:08.045Z] info: Starting p2p [2017-09-29T06:05:08.053Z] info: Peers not explicitly configured, starting a local bcoin node. [2017-09-29T06:05:08.200Z] info: Starting Bcoin full node... [info] (chain) Chain is loading. [info] (chain) Checkpoints are enabled. [info] (chaindb) Opening ChainDB... [info] (chaindb) ChainDB successfully loaded. [info] (chaindb) Chain State: hash=0000000069e244f73d78e8fd29ba2fd2ed618bd6fa2ee92559f542fdb26e7c1d tx=11208 coin=10594 value=555550.0. [info] (chain) Chain Height: 11111 [info] (mempool) Mempool loaded (maxsize=97656.25kb). [info] (miner) Miner loaded (flags=mined by bcoin). [warning] (miner) No reward address is set for miner! [info] (net) Pool loaded (maxpeers=8). [info] (net) Initialized header chain to height 11111 (checkpoint=000000002dd5588a74784eaa7ab0507a18ad16a236e7b1ce69f00d7ddfb5d0a6). [info] (http) Node HTTP server listening on 127.0.0.1 (port=8332). [info] (node) Node is loaded. [info] (net) External IPv4 found (http): 175.110.116.173. [info] (net) Adding loader peer (217.168.143.169:8333). [info] (net) Pool server listening on 0.0.0.0 (port=8333). [2017-09-29T06:05:09.650Z] info: Waiting for Bcoin to sync [2017-09-29T06:05:09.652Z] info: Starting header [2017-09-29T06:05:09.656Z] info: Starting block [2017-09-29T06:05:09.657Z] info: Starting mempool [2017-09-29T06:05:09.658Z] info: localhost-mempool subscribe: p2p/transaction total: 1 [2017-09-29T06:05:09.659Z] info: Starting transaction [2017-09-29T06:05:09.659Z] info: Starting address [2017-09-29T06:05:09.661Z] info: Starting fee [2017-09-29T06:05:09.662Z] info: Starting web [2017-09-29T06:05:09.683Z] info: Starting insight-api [2017-09-29T06:05:09.684Z] info: localhost-insight-api subscribe: p2p/transaction total: 2 [2017-09-29T06:05:09.684Z] info: localhost-insight-api subscribe: p2p/block total: 1 [2017-09-29T06:05:09.684Z] info: Starting insight-ui [info] (net) Connected to 109.235.67.115:8333. [info] (net) Connected to 138.68.64.19:8333. [info] (net) Connected to 217.168.143.169:8333. [info] (net) Connected to 138.68.1.45:8333. [info] (net) Connected to 162.209.4.125:8333. [info] (net) Connected to 188.113.164.231:8333. [info] (net) Received version (109.235.67.115:8333): version=70015 height=487464 services=1101 agent=/Satoshi:0.15.0(We-Win-Jihan-GTFU)/ [info] (peer) Initializing witness compact blocks (109.235.67.115:8333). [info] (net) Received version (217.168.143.169:8333): version=70015 height=487464 services=1101 agent=/Satoshi:0.14.2/ [info] (peer) Initializing witness compact blocks (217.168.143.169:8333). [info] (net) Received version (138.68.1.45:8333): version=70015 height=487464 services=1101 agent=/Satoshi:0.14.2/ [info] (peer) Initializing witness compact blocks (138.68.1.45:8333). [info] (net) Received version (162.209.4.125:8333): version=70015 height=487464 services=1101 agent=/Satoshi:0.14.1/ [info] (peer) Initializing witness compact blocks (162.209.4.125:8333). [info] (net) Received version (188.113.164.231:8333): version=70015 height=489928 services=100101 agent=/Bitcoin ABC:0.15.0(EB8.0)/ [info] (node) Time offset: 0 (0 minutes). [info] (peer) Initializing normal compact blocks (188.113.164.231:8333). [info] (peer) Peer initialized compact blocks (mode=0, version=2) (109.235.67.115:8333). [info] (net) Received 1 addrs (hosts=1000, peers=6) (109.235.67.115:8333). [info] (peer) Peer initialized compact blocks (mode=0, version=2) (138.68.1.45:8333). [info] (net) Received 1 addrs (hosts=1000, peers=6) (138.68.1.45:8333). [info] (peer) Peer initialized compact blocks (mode=0, version=2) (162.209.4.125:8333). [info] (net) Received 1 addrs (hosts=1000, peers=7) (162.209.4.125:8333). [info] (peer) Peer initialized compact blocks (mode=0, version=1) (188.113.164.231:8333). [info] (net) Received version (138.68.64.19:8333): version=70015 height=487463 services=1101 agent=/Satoshi:0.14.0/ [info] (peer) Initializing witness compact blocks (138.68.64.19:8333). [info] (net) Connected to 85.229.228.174:8333. [info] (peer) Peer initialized compact blocks (mode=0, version=2) (217.168.143.169:8333). [info] (net) Received 1 addrs (hosts=1000, peers=8) (217.168.143.169:8333). [info] (net) Connected to 138.68.64.28:8333. [info] (peer) Peer initialized compact blocks (mode=0, version=2) (138.68.64.19:8333). [info] (net) Received version (85.229.228.174:8333): version=70015 height=487464 services=1101 agent=/Satoshi:0.14.1/ [info] (node) Time offset: 0 (0 minutes). [info] (peer) Initializing witness compact blocks (85.229.228.174:8333). [info] (net) Received version (138.68.64.28:8333): version=70015 height=487464 services=1101 agent=/Satoshi:0.14.0/ [info] (peer) Initializing witness compact blocks (138.68.64.28:8333). [info] (peer) Peer initialized compact blocks (mode=0, version=2) (85.229.228.174:8333). [info] (net) Received 1 addrs (hosts=1000, peers=8) (85.229.228.174:8333). [info] (peer) Peer initialized compact blocks (mode=0, version=2) (138.68.64.28:8333). [info] (net) Received 1 addrs (hosts=1000, peers=8) (188.113.164.231:8333). [info] (net) Received 1 addrs (hosts=1000, peers=8) (138.68.1.45:8333). [2017-09-29T06:05:24.689Z] error: Failed to start services [2017-09-29T06:05:24.690Z] error: Error: Command failed: cd /home/zeshan/node_modules/insight-ui/bitcore-node/../; npm run install-and-build; popd /bin/sh: 1: popd: not found

at ChildProcess.exithandler (child_process.js:271:12)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:927:16)
at Socket.stream.socket.on (internal/child_process.js:348:11)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at Pipe._handle.close [as _onclose] (net.js:547:12)

[2017-09-29T06:05:24.690Z] info: Beginning shutdown [2017-09-29T06:05:24.691Z] warn: Node is stopping, gently closing the database. Please wait, this could take a while. [2017-09-29T06:05:24.691Z] info: P2P Service: disconnecting pool and peers. SIGINT issued, system shutdown initiated [2017-09-29T06:05:24.692Z] info: Stopping insight-ui [2017-09-29T06:05:24.692Z] info: Stopping insight-api [2017-09-29T06:05:24.692Z] info: Stopping web [2017-09-29T06:05:24.693Z] info: Stopping fee [2017-09-29T06:05:24.693Z] info: Stopping address [2017-09-29T06:05:24.693Z] info: Stopping transaction [2017-09-29T06:05:24.694Z] info: Stopping mempool [2017-09-29T06:05:24.694Z] info: Stopping block [2017-09-29T06:05:24.694Z] info: Stopping header [2017-09-29T06:05:24.694Z] info: Stopping p2p [2017-09-29T06:05:24.694Z] error: uncaught exception: TypeError: peer.blockMap.reset is not a function at Pool.stopSync (/home/zeshan/bcn/node_modules/bcoin/lib/net/pool.js:748:19) at FullNode.stopSync (/home/zeshan/bcn/node_modules/bcoin/lib/node/fullnode.js:361:20) at Bcoin.stop (/home/zeshan/bcn/node_modules/bitcore-node/lib/services/p2p/bcoin.js:28:15) at P2P.stop (/home/zeshan/bcn/node_modules/bitcore-node/lib/services/p2p/index.js:125:24) at /home/zeshan/bcn/node_modules/bitcore-node/lib/node.js:219:36 at /home/zeshan/bcn/node_modules/async/dist/async.js:3083:16 at replenish (/home/zeshan/bcn/node_modules/async/dist/async.js:946:17) at iterateeCallback (/home/zeshan/bcn/node_modules/async/dist/async.js:931:17) at /home/zeshan/bcn/node_modules/async/dist/async.js:906:16 at HeaderService.stop (/home/zeshan/bcn/node_modules/bitcore-node/lib/services/header/index.js:224:3) [2017-09-29T06:05:24.697Z] error: TypeError: peer.blockMap.reset is not a function at Pool.stopSync (/home/zeshan/bcn/node_modules/bcoin/lib/net/pool.js:748:19) at FullNode.stopSync (/home/zeshan/bcn/node_modules/bcoin/lib/node/fullnode.js:361:20) at Bcoin.stop (/home/zeshan/bcn/node_modules/bitcore-node/lib/services/p2p/bcoin.js:28:15) at P2P.stop (/home/zeshan/bcn/node_modules/bitcore-node/lib/services/p2p/index.js:125:24) at /home/zeshan/bcn/node_modules/bitcore-node/lib/node.js:219:36 at /home/zeshan/bcn/node_modules/async/dist/async.js:3083:16 at replenish (/home/zeshan/bcn/node_modules/async/dist/async.js:946:17) at iterateeCallback (/home/zeshan/bcn/node_modules/async/dist/async.js:931:17) at /home/zeshan/bcn/node_modules/async/dist/async.js:906:16 at HeaderService.stop (/home/zeshan/bcn/node_modules/bitcore-node/lib/services/header/index.js:224:3) [2017-09-29T06:05:24.697Z] info: Beginning shutdown [2017-09-29T06:05:24.697Z] warn: Node is stopping, gently closing the database. Please wait, this could take a while. [2017-09-29T06:05:24.697Z] info: P2P Service: disconnecting pool and peers. SIGINT issued, system shutdown initiated [2017-09-29T06:05:24.697Z] info: Stopping insight-ui [2017-09-29T06:05:24.697Z] info: Stopping insight-api [2017-09-29T06:05:24.697Z] info: Stopping web [2017-09-29T06:05:24.697Z] info: Stopping fee [2017-09-29T06:05:24.697Z] info: Stopping address [2017-09-29T06:05:24.698Z] info: Stopping transaction [2017-09-29T06:05:24.698Z] info: Stopping mempool [2017-09-29T06:05:24.698Z] info: Stopping block [2017-09-29T06:05:24.698Z] info: Stopping header [2017-09-29T06:05:24.698Z] info: Stopping p2p [info] (net) Removed loader peer (109.235.67.115:8333). [info] (net) Initialized header chain to height 11111 (checkpoint=000000002dd5588a74784eaa7ab0507a18ad16a236e7b1ce69f00d7ddfb5d0a6). [info] (node) Node is closed.