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

Error: could not locate RPC credentials. No authentication cookie could be found #11

Open
chris-pollard opened this issue Aug 19, 2021 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@chris-pollard
Copy link

Hi there,
I am a newb to bitcoindevkit and its also my first time using docker but I've come across a roadblock with the authentication cookie not being recognised when starting up regtest. I followed along with the blog post (https://bitcoindevkit.org/blog/2021/06/using-bdk-to-create-bip157-spv-wallet-aka-neutrino/) and managed to spin up docker container. But when I try to run the command "docker exec -it bdk-box /root/bitcoin-cli -regtest getnetworkinfo" it gives the following error:

"error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/root/.bitcoin/bitcoin.conf)"

Any suggestions? Thank you.

@notmandatory
Copy link
Member

notmandatory commented Aug 20, 2021

Looks like we need to update the blog post.. but for now you can work around this issue by adding the container bitcoind username (admin) and password (passw) like this:

docker exec -it bdk-box /root/bitcoin-cli -regtest -rpcuser=admin -rpcpassword=passw  getnetworkinfo

You'll need to add -rpcuser=admin -rpcpassword=passw to all the docker exec bitcoin-cli commands in the blog post.

@notmandatory notmandatory added bug Something isn't working documentation Improvements or additions to documentation labels Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants