Bitcoin Forum
May 12, 2024, 10:30:34 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind hangs (no rpcuser message)  (Read 942 times)
Blinken (OP)
Sr. Member
****
Offline Offline

Activity: 338
Merit: 253



View Profile
June 28, 2016, 12:00:39 PM
 #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" admin@foo.com

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

Bitcoin ♦♦♦ Trust in Mathematics, Not Bankers ♦♦♦
1715509834
Hero Member
*
Offline Offline

Posts: 1715509834

View Profile Personal Message (Offline)

Ignore
1715509834
Reply with quote  #2

1715509834
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715509834
Hero Member
*
Offline Offline

Posts: 1715509834

View Profile Personal Message (Offline)

Ignore
1715509834
Reply with quote  #2

1715509834
Report to moderator
1715509834
Hero Member
*
Offline Offline

Posts: 1715509834

View Profile Personal Message (Offline)

Ignore
1715509834
Reply with quote  #2

1715509834
Report to moderator
hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 259

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
June 28, 2016, 02:25:28 PM
Last edit: July 04, 2016, 12:28:01 AM by hexafraction
 #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.

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
July 03, 2016, 11: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 <cmd>

hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 259

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
July 04, 2016, 12:28:22 AM
 #4

You can no longer use the bitcoind command to send RPC commands to the RPC server. Instead you must use
Code:
bitcoin-cli <cmd>

Thanks. I was using an old manpage I found online, combined with failing long-term memory.

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
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!