Bitcoin Forum
December 24, 2025, 06:00:12 PM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: what exactly will i write?  (Read 107 times)
ca84 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 04, 2025, 06:56:47 AM
 #1

i have create user and pass, but get this message.

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

https://bitcoincore.org/en/doc/30.0.0/rpc/wallet/migratewallet/
nc50lc
Legendary
*
Offline Offline

Activity: 2996
Merit: 8171


Self-proclaimed Genius


View Profile
December 04, 2025, 07:03:51 AM
Merited by vapourminer (1)
 #2

You meant rpc username and password?
Because if so, those should be provided along with the bitcoin-cli command with --rpcuser and --rpcpassword args.

You may also utilize the cookie file if you prefer not to use rpc username and password,
To do that, don't set any of those in your bitcoin.conf file, just set server=1 without rpcuser and rpcpassword.
But the datadir should be provided in the command if it's not the default.

ca84 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 04, 2025, 07:25:18 AM
 #3

You meant rpc username and password?
Because if so, those should be provided along with the bitcoin-cli command with --rpcuser and --rpcpassword args.

You may also utilize the cookie file if you prefer not to use rpc username and password,
To do that, don't set any of those in your bitcoin.conf file, just set server=1 without rpcuser and rpcpassword.
But the datadir should be provided in the command if it's not the default.


bitcoin-cli -rpcuser=user -rpcpassword=mypassword  getblockchaininfo
error get:
Authorization failed: Incorrect rpcuser or rpcpassword

but the user and password is correct.
nc50lc
Legendary
*
Offline Offline

Activity: 2996
Merit: 8171


Self-proclaimed Genius


View Profile
December 04, 2025, 07:29:44 AM
 #4

-snip- but the user and password is correct.
Hmm, try to double-check your bitcoin.conf file in /home/ca/.bitcoin/bitcoin.conf if it's really the case.

Or have you restarted your node after changing the settings in your config file?
Because if not, you must restart it for the new settings to apply.

If you're having trouble with rpc user and password, try to use the ".cookie file" method.

ca84 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 04, 2025, 07:47:13 AM
 #5

i have tried to restart the bitcoin core, but nothing changed.  Huh

my 8332 port: JSONRPC server handles only POST requests

I use Bitcoin Core version v30.0.0 on fedora is anyone else have the same problem.
nc50lc
Legendary
*
Offline Offline

Activity: 2996
Merit: 8171


Self-proclaimed Genius


View Profile
December 04, 2025, 08:22:14 AM
 #6

-snip-
I'm only able to reproduce it by setting a random rpcpassword arg in the command while not using rpcpassword in the config file.
Or by actually using mismatched credentials.

Check your debug.log file for the applied configs, look for the currently applied rpcuser and rpcpassword or if it's actually applied.
The lowest-most lines containing "Config file arg" should be the working config from your bitcoin.conf file.

@prashant
Hero Member
*****
Offline Offline

Activity: 938
Merit: 505


View Profile
December 08, 2025, 05:30:30 AM
 #7

i have tried to restart the bitcoin core, but nothing changed.  Huh

my 8332 port: JSONRPC server handles only POST requests

I use Bitcoin Core version v30.0.0 on fedora is anyone else have the same problem.
Make sure bitcoin-cli is pointing to the right datadir otherwise it won’t see your setting. Your datadir is:  /home/ca/.bitcoin  
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!