Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTC RPC Explorer #837

Open
cocktailsk opened this issue Dec 21, 2023 · 4 comments
Open

BTC RPC Explorer #837

cocktailsk opened this issue Dec 21, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@cocktailsk
Copy link

Describe the bug
when trying to acccess BTC RPC Explorer Im getting the below error message:
This explorer currently is failing to connect to your Bitcoin Core node.
Check your connection details (host & port for Bitcoin Core), as well as your authentication details (username, password, etc).
All of these parameters need to be specified in a ".env" file or via commandline parameters. See the project homepage to review how to configure this explorer.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser safari
  • Version 16.6.1

MyNode hardware (please complete the following information):

  • Device: Nuc with win11 and virtualbox

Mynode was manually upgraded to 0.3.24 when checking the log I see the .env file is missing in /home/bitcoin/.config/

Dec 21 09:50:57 myNode btcrpcexplorer[22093]: 2023-12-21T15:50:57.859Z btcexp:app Config file found at /opt/mynode/btc-rpc-explorer/.env, loading...
Dec 21 09:50:57 myNode btcrpcexplorer[22093]: 2023-12-21T15:50:57.859Z btcexp:app Config file not found at /etc/btc-rpc-explorer/.env, continuing...
Dec 21 09:50:57 myNode btcrpcexplorer[22093]: 2023-12-21T15:50:57.858Z btcexp:app Config file not found at /home/bitcoin/.config/btc-rpc-explorer.env, continuing...

@cocktailsk cocktailsk added the bug Something isn't working label Dec 21, 2023
@tehelsper
Copy link
Collaborator

The upgrade may not have worked. You could try starting with a fresh image. A script with this line should be running before the app starts that sets up the env file.

cp /usr/share/mynode/btcrpcexplorer_env /opt/mynode/btc-rpc-explorer/.env

@davterra
Copy link
Contributor

This is still open, and looking on Telegram it appears to still be a widespread issue.
It's a current problem for my instance of myNode.
Has there been any further progress on this?

@nevrrmind
Copy link

I may have had exactly the same problem. The following was also in the log: "Error: connect ECONNREFUSED ::1:8332"

I then changed the following part in

/usr/share/mynode/btcrpcexplorer_env

BTCEXP_BITCOIND_HOST=localhost
changed to
BTCEXP_BITCOIND_HOST=127.0.0.1

Then I restarted the BTC Explorer and now everything is working as expected.

@tehelsper
Copy link
Collaborator

Bitcoin should also be listening on ::1:8332 now for RPC connections. You may be on an old version or have a custom bitcoin config overriding the defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants