Trouble Connecting Bitcoin Explorer to Node

9 replies 365 views
Posts: 3 · Reputation: 14
#1Nov 14, 2017, 11:35 AM
Hey all. I’m stuck here. Been at this for about two days now trying to get mempool to work with my node and I messed up the Bitcoin explorer. Now I keep getting a No RPC Connection error. It's saying it can't connect to my Bitcoin core node. I have to check my host, port, and authentication details. Everything should be in the.env file or command line. Help!
8 Reply Quote Share
shrimpNewbie
Posts: 289 · Reputation: 20
#2Nov 14, 2017, 02:14 PM
Can you share your bitcoin.conf file? Also, check if localhost is blocking the port. Don't forget to enable RPC server in Bitcoin Core with server=1. You can find a sample.env file too.
1 Reply Quote Share
Posts: 3 · Reputation: 14
#3Nov 14, 2017, 05:47 PM
I got server=1 and txindex=1 in my config. I’m not sure how to handle the env file, but mine looks like the sample. Just reinstalled everything and... somehow it’s working now!
0 Reply Quote Share
shrimpNewbie
Posts: 289 · Reputation: 20
#4Nov 14, 2017, 07:01 PM
Nice, glad to hear it's working! Maybe you weren't synced with the blockchain before? Either way, good job fixing it.
2 Reply Quote Share
Posts: 3 · Reputation: 14
#5Nov 15, 2017, 01:06 AM
Thanks a lot, man! Really appreciate it!
2 Reply Quote Share
l3odegenMember
Posts: 2 · Reputation: 235
#6Nov 17, 2017, 09:40 AM
I’m having the same issue with myNode on a VM. The RPC Explorer logs show a connect ECONNREFUSED error. Can’t figure it out.
2 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#7Nov 17, 2017, 02:54 PM
Did you check the rpc credentials in your.env file? Or did you set them via command line? If you didn’t set rpcuser and rpcpassword in bitcoin.conf, make sure the.cookie file is in the right place.
0 Reply Quote Share
l3odegenMember
Posts: 2 · Reputation: 235
#8Nov 17, 2017, 04:35 PM
Tried adding the rpcuser and rpcpassword, but then my Electrum server won’t start. Since I’m using a VM, I’m not sure where to find the.env file.
3 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#9Nov 17, 2017, 06:25 PM
If you're running Electrum alongside Bitcoin Explorer, maybe open a new topic with details about your setup. Configs can conflict and one setting may break another. If the env file isn't there, you can set it via command line.
2 Reply Quote Share
Posts: 185 · Reputation: 37
#10Nov 17, 2017, 11:46 PM
Using myNode, messing with rpcuser and rpcpassword might break things with other modules like the Electrum server. Not sure why Bitcoin RPC Explorer needs manual tweaks in myNode. Shouldn't it just work when enabled? You probably need to check myNode docs for that.
4 Reply Quote Share

Related topics