RPC explorer not connecting to Bitcoin Core on myNode

7 replies 138 views
dan1337Full Member
Posts: 32 · Reputation: 292
#1Sep 10, 2022, 06:41 PM
Just set up myNode OS on a mini PC with 8GB RAM and 2TB SSD. The entire blockchain is loaded on the SSD now. Electrum Server and Bitcoin are both running fine, and the NTC RPC Explorer shows a green light. But when I hit the "Explorer" button on the myNode Home page, I get an error on the new web page. Here's a snippet from the NTC RPC Explorer .env file: Location: /opt/mynode/btc-rpc-explorer/.env I'm pretty new to nodes and Linux, so I don't know much at all. Where should I begin to get the NTC RPC Explorer working? Appreciate any help!
3 Reply Quote Share
dan1337Full Member
Posts: 32 · Reputation: 292
#2Sep 10, 2022, 07:05 PM
Here is a partial log file from the BTC RPC EXPLORER STATUS file. Not the whole file for these lines repeat about 50 times over, which IMO would be useless to completely post here.
3 Reply Quote Share
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#3Sep 11, 2022, 12:53 AM
What's your current config in your Bitcoin.conf file? Did you set up RPC and enable it? Based on the logs it seems it's a connection refused. Would you mind to replace this BTCEXP_HOST=0.0.0.0 with BTCEXP_HOST=127.0.0.1 and then replace localhost with the local IP of your node like 192.168.1.1 then use this command to restart the explorer. If the error still persists try the other configuration posted below. - https://bitcointalk.org/index.php?topic=5367296.msg61517989#msg61517989
4 Reply Quote Share
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#4Sep 11, 2022, 03:14 AM
The error says that BTC RPC explorer attempts to connect to localhost on IPv6. Is that surely supported? Try adding the followings two in configuration file: And replace "localhost" with "127.0.0.1" in the .env configuration as rightly said by BitMaxz. (That'll switch to IPv4)
1 Reply Quote Share
dan1337Full Member
Posts: 32 · Reputation: 292
#5Sep 11, 2022, 06:58 AM
OK. Some weird things happened. First, if I edit .env with nano, the file will be edited properly. Then when restarting BTC_RPC_Explorer from myNode "Manage" page, the .env file will revert back to original. All changes will disappear. Second, your proposed line "sudo systemctl restart btc-rpc-explorer" will generate an error in Terminal: Third, I've added the Bitcoin config file on my second post ( see #2 ) Fourth, I did enabled RPC but I didnt do anything about setting it up cause I do not have any knowledge about how to do so. Thanks for your help. Very appreciated.
5 Reply Quote Share
dan1337Full Member
Posts: 32 · Reputation: 292
#6Sep 11, 2022, 01:08 PM
Which config file ?  Bitcoin or .env ? Thanks
1 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#7Sep 11, 2022, 03:20 PM
That's weird. I only tried myNode for a bit, but it's possible it's overridden by myNode. Have you checked whether you can edit BTC RPC Explorer setting from myNode GUI app? He refer to Bitcoin Core's config file.
2 Reply Quote Share
dan1337Full Member
Posts: 32 · Reputation: 292
#8Sep 11, 2022, 06:25 PM
There doesn't seem to be any way for editing the .env file from any of myNode GUI pages. At least, I couldn't find anything.
5 Reply Quote Share

Related topics