Author

Topic: bitcoind hangs (no rpcuser message) (Read 974 times)

sr. member
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
July 03, 2016, 07:28:22 PM
#4
You can no longer use the bitcoind command to send RPC commands to the RPC server. Instead you must use
Code:
bitcoin-cli 

Thanks. I was using an old manpage I found online, combined with failing long-term memory.
staff
Activity: 3458
Merit: 6793
Just writing some code
July 03, 2016, 06:41:23 PM
#3
You can no longer use the bitcoind command to send RPC commands to the RPC server. Instead you must use
Code:
bitcoin-cli 
sr. member
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
June 28, 2016, 09:25:28 AM
#2
However, when I give the command bitcoind, the terminal hangs and does not appear to be doing anything.

The most likely reason is that you already have your bitcoin.conf file configured with an RPC user and password, and thus you are not getting the error that you would get if it weren't configured. To check this, open ~/.bitcoin/bitcoin.conf and verify that there is an rpcuser and rpcpassword line.

Now, it's "hanging" because it's actually acting as an RPC server. Open a second terminal/tab/pty/tmux window/whatever and try issuing rpc commands (such as 'bitcoin-cli getblockcount', without quotes, which checks the process of blockchain sync). If you don't want to tie up a terminal for the server process, you can always start bitcoind with the command 'bitcoind -daemon' and then use 'bitcoincli stop' to stop the server gracefully.
sr. member
Activity: 338
Merit: 253
June 28, 2016, 07:00:39 AM
#1
When following the instructions for the non-Ubuntu daemon install it says I should see the following:

Code:
bitcoind

Error: To use the "-server" option, you must set a rpcpassword in the configuration file:
/home/bitcoinorg/.bitcoin/bitcoin.conf
It is recommended you use the following random password:
rpcuser=bitcoinrpc
rpcpassword=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %s | mail -s "Bitcoin Alert" [email protected]

However, when I give the command bitcoind, the terminal hangs and does not appear to be doing anything.
Jump to: