I’m having trouble installing version 4 of bitcore. I had version 3 running but i switched to version 4 and the “bitcored” command fails every time and says:
error: Failed to start services
[2016-05-31T05:39:44.776Z] error: RPCError: Bitcoin JSON-RPC: Connection Rejected: 401 Unnauthorized
at Bitcoin._wrapRPCError (/home/kreshendo/mynode/node_modules/bitcore-node/lib/services/bitcoind.js:416:13)
at /home/kreshendo/mynode/node_modules/bitcore-node/lib/services/bitcoind.js:749:28
at IncomingMessage. (/home/kreshendo/mynode/node_modules/bitcoind-rpc/lib/index.js:81:9)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:913:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
I’m not sure if it’s related, but I have similar issue after installing a new bitcore-node. It just shuts down after some time with the same exception. Could it be something related to a firewall?
I have tried a couple more times and it looks like the web service is having issues starting up. What could be causing this because the terminal isn’t printing anything about why the web service won’t start.
I found this line, maybe it is a root casuse of a problem that password is not taken from config file:
No rpcpassword set - using random cookie authentication
Do you have another node that it may be trying to connect to? You should see corresponding reject errors in the debug.log (or have a successful connection).
Maybe that’s the problem. I had a node set up and running and I deleted that node directory and began setting up the v4 node and that’s when I got the error. The old bitcoin folder is still in my home directory.
Its still not working. maybe the set up is different for running a testnet node. I haven’t been able to run fully start this bitcoin node all day. how do I down grade to version 3?