Author

Topic: Additional local node user - Linux Debian 10 (Read 118 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
December 09, 2019, 10:25:14 AM
#2
#rpcallowip=127.0.0.1
#rpcbind=127.0.0.1
#rpcuser=user
#rpcpassword=pass

AFAIK it's the reason "Authorization failed" happened, remove comment of those 4 lines and try it again.
newbie
Activity: 1
Merit: 0
December 09, 2019, 07:58:52 AM
#1
Hi to all,

##Description of problem
Is it possible to have additional local node user? The user should be able to connect to the node via JSON-RPC, bitcoin-cli utility. On a local "node-user", with .bitcoin directory and blockchain data, everything 'just works'.

On the 2nd local user I am getting error: "Authorization failed: Incorrect rpcuser or rpcpassword". It must be a small stupid error, but I can not find where the problem is.
If I add .cookie file to user2 directory I can connect to my node, but if I try with password I get the error Authorization failed?

$tail -f n 5 debug.log
2019-12-06T17:06:20Z ThreadRPCServer incorrect password attempt from 127.0.0.1:43492


##System Details
debian 10, updated
btc core "version": 180100
only localhost RPC connections are allowed
rpc port 8332
rpcauth authentication (salt/hash created with rpcauth.py)
firewall port open 8333

###user1 - node user with blockchain data & config - everything works as it should

~/.bitcoin/bitcoin.conf
##
## bitcoin.conf configuration file. Lines beginning with # are comments.
##
server=1
port=8333
rpcport=8332
maxconnections=90
keypool=100
minrelaytxfee=0.000015
limitfreerelay=5
maxmempool=250
onlynet=ipv4
addresstype=p2sh-segwit
#The second method rpcauth
rpcauth=user2:xxxxxx

#rpcallowip=127.0.0.1
#rpcbind=127.0.0.1
#rpcuser=user
#rpcpassword=pass


###user2 - localhost

$ bitcoin-cli -rpcuser=user2 -rpcpassword=pass-gen-by-rpcauth.py   help
error: Authorization failed: Incorrect rpcuser or rpcpassword



Regards,
gromovnik
Jump to: