Bitcoin Forum
April 25, 2024, 01:57:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Error with rpcuser and password while trying to run node.  (Read 152 times)
nerviosus (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 13, 2019, 07:25:17 AM
 #1

I am trying to set up a node on my raspberry pi following this tutorial (https://stadicus.github.io/RaspiBolt/raspibolt_30_bitcoin.html) and almost at the end it gives me an error.
Whenever I try to run 'bitcoin-cli getblockchaininfo', 'bitcoin-cli getblockcount', 'bitcoin'cli getnetworkinfo', etc... It tells me 'Authorization failed: Incorrect rpcuser or rpcpassword'
So I go to the bitcoin.conf file and my rpcuser and rpcpassword is already set and ready to go.

Can somebody help me with this issue?
Thanks.
1714053469
Hero Member
*
Offline Offline

Posts: 1714053469

View Profile Personal Message (Offline)

Ignore
1714053469
Reply with quote  #2

1714053469
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714053469
Hero Member
*
Offline Offline

Posts: 1714053469

View Profile Personal Message (Offline)

Ignore
1714053469
Reply with quote  #2

1714053469
Report to moderator
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
September 13, 2019, 07:39:38 AM
Last edit: September 13, 2019, 09:06:29 AM by AdolfinWolf
 #2

...Authorize with:

Code:
rpcuser=raspibolt
rpcpassword=PASSWORD_[B]
As defined in: https://stadicus.github.io/RaspiBolt/raspibolt_30_bitcoin.html#configuration

What am i missing

Or do it like this? https://bitcoin.stackexchange.com/questions/35454/bitcoin-cli-fails-with-auth-error
Ex https://bitcoin.stackexchange.com/a/74109

nerviosus (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 13, 2019, 07:44:15 AM
 #3

That's what I have in my config file:
rpcuser:[the name of my node]
rpcpassword:[a new password I specifically set up for this]

How can be incorrect when there's nothing else to compare it to?
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
September 13, 2019, 07:52:36 AM
Last edit: September 13, 2019, 09:10:15 AM by AdolfinWolf
 #4

That's what I have in my config file:
rpcuser:[the name of my node]
rpcpassword:[a new password I specifically set up for this]

How can be incorrect when there's nothing else to compare it to?

You need to pass those arguments in the command line to authorize



Edit

Or does it automatically authenticate like mocca suggested? SE might be outdated. In that case, disregard my posts and see moccas suggestions.

Read a bit more online and i don’t think calling -rpcuser & pass (rpcauth) is depreciated? Might be bad practice though, (&nd useless, i’m not awake yet.)

nerviosus (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 13, 2019, 07:53:57 AM
 #5

Not in the command line, I have to write them down in the file bitcoin.conf
mocacinno
Legendary
*
Online Online

Activity: 3374
Merit: 4917


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 13, 2019, 08:03:35 AM
Merited by ABCbits (1), AdolfinWolf (1)
 #6

if you run bitcoin-cli as the same user that's running bitcoind, and the config file is in the home ~/.bitcoin of that exact user, bitcoin-cli will also parse bitcoin.conf and automatically authenticate.

My first guesses would be:
- is the same user running bitcoind and bitcoin-cli?
- is there something else wrong with your configuration (is your daemon listening for connections?)
- maybe there's something wrong with the owner or permission of your bitcoin.conf?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!