[RPC] Authentication bug on Regtest on Ubuntu Xenial? #13977

issue NicolasDorier openend this issue on August 15, 2018
  1. NicolasDorier commented at 2:05 am on August 15, 2018: contributor

    Repro on Xenial

    0DISTRIB_ID=Ubuntu
    1DISTRIB_RELEASE=16.04
    2DISTRIB_CODENAME=xenial
    3DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
    

    With Bitcoin Core version v0.16.2.0-g2848aa808f (release build)

    Steps

    0sudo apt-get install bitcoind
    1nohup bitcoind -regtest &
    2sleep 5
    3bitcoin-cli -regtest getblockchaininfo
    

    Same result with ppa:bitcoin/bitcoin.

    Result

    0error: incorrect rpcuser or rpcpassword (authorization failed)
    

    Expected

    Show me the result of the command


    Then I tried the following:

    0bitcoind -regtest -rpcuser=blah -rpcpassword=blah -printtoconsole &
    1sleep 5
    2bitcoin-cli -regtest -rpcuser=blah -rpcpassword=blah getblockchaininfo
    

    Same result

    0error: incorrect rpcuser or rpcpassword (authorization failed)
    

    Something is wrong with the rpc authentication?

    EDIT:

    Tested without -regtest and it works. Tested with -testnet and it works.

    Seems this bug is limited to regtest. Tested on Windows, everything works fine.

  2. fanquake added the label RPC/REST/ZMQ on Aug 15, 2018
  3. fanquake added the label Linux/Unix on Aug 15, 2018
  4. NicolasDorier renamed this:
    [RPC] Authentication bug on the Ubuntu package?
    [RPC] Authentication bug on Regtest?
    on Aug 15, 2018
  5. NicolasDorier renamed this:
    [RPC] Authentication bug on Regtest?
    [RPC] Authentication bug on Regtest on Ubuntu Xenial?
    on Aug 15, 2018
  6. NicolasDorier commented at 2:12 am on August 15, 2018: contributor

    So tested on windows: It works as expected. Tested on mainnet and testnet on Ubuntu. It works as expected.

    Seems the bug is only on regtest?

  7. NicolasDorier commented at 2:18 am on August 15, 2018: contributor
    Closing this! Sorry I was using Windows + WSL, and on Ubuntu it was trying to connect to my Windows instance :/
  8. NicolasDorier closed this on Aug 15, 2018

  9. MarcoFalke 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: 2024-12-30 15:12 UTC

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