bitcoin-cli usage issue after installation #8496

issue jns4u opened this issue on August 10, 2016
  1. jns4u commented at 8:29 PM on August 10, 2016: none

    Hi

    I am using linux ubuntu 32 bit system. I installed bitcoin-cli and when i tried to execute an rpc call based on chainquery api, i got following below error.

    error: Could not locate RPC credentials. No authentication cookie could be found, and no rpcpassword is set in the configuration file (/home/computer/.bitcoin/bitcoin.conf)

    when i open bitcoin.conf file i found it's complete blank.

    What's the issue with rpc, i am also running a service named iguana that utilizes coinbase functionality.

  2. sipa commented at 8:36 PM on August 10, 2016: member

    Is bitcoind running?

  3. jonasschnelli added the label RPC/REST/ZMQ on Aug 11, 2016
  4. ghost commented at 2:55 PM on August 11, 2016: none

    I don't know if adding those to bitcoin.conf will work, but give this a try:

    server=1
    rpcuser=someuser
    rpcpassword=someREALLYLONGpassword
    
  5. laanwj commented at 1:47 PM on August 13, 2016: member

    Also: make sure that the datadir you provide to bitcoind matches that provided to bitcoin-cli.

  6. jns4u commented at 3:11 AM on August 15, 2016: none

    I tried option suggested by you but same issue, now i am running bitcoin rpc using supernet iguana infrastructure. It's working fine as i wanted was to execute bitcoin rpc

    I am not using bitcoin-cli method.

    thanks for help

  7. unsystemizer commented at 7:04 AM on August 16, 2016: contributor

    As far as I can tell "bitcoin-cli usage" is not a bug or undocumented feature that would qualify as issue.

    I am not using bitcoin-cli method.

    But in Issue title you said you are. You can get online help with bitcoin-cli --help or in many guides and examples online, including /docs in this repo.

    If you don't know how to use 3rd party s/w, refer to the s/w documentation (-userpass|-O <arg> Username:Password pair for bitcoin JSON-RPC server or whatever it is for ChainQuery). Of course it'd help to set Username and Password in bitcoin.conf (or bitcoind startup command) so that you know what they are. Not a bitcoin issue, though.

  8. laanwj commented at 9:22 AM on August 16, 2016: member

    Closing this as it is unclear to me that this is a Bitcoin Core issue.

  9. laanwj closed this on Aug 16, 2016

  10. monkeyDemon commented at 3:02 AM on July 20, 2018: none

    This error is very troublesome for me because I am sure I have used the configuration file bitcoin.conf I didn’t receive any inspiration until I saw @sipa's comments. Maybe Bitcoin Core had unexpectedly shuts down for some reason, this can also cause the error.

  11. softwareguycoder commented at 3:34 PM on September 13, 2018: none

    I am puzzled about something, how would I know what user/pass to supply for the RPC? Do I just use my user account's credentials? And what if I am on a Windows machine and not Linux? Thanks.

  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me