Brand new Raspberry Pi mainnet node following this walkthrough:


When I run this command:

bitcoin-cli -rpcuser=username -rpcpassword=password -rpcport=8332 getblockchaininfo

I receive the error:

error: Could not connect to the server

When I tail debug.log, the node appears to be fully sync'd and picking up new blocks

My bitcoin.conf file is:

#is required for Fail2Ban logips=1

#magic RBP optimizations maxconnections=40 maxuploadtarget=5000


server=1 rpcuser='username' rpcpassword='password' rpcport='8332'


My apologies if my formatting is bad here, couldn't figure out how to get the .conf to paste as a block of text. Thank you for any ideas on what I'm doing wrong!

  • 1
    I guess checking your debug.log in your Bitcoin datadir ~/.bitcoin may give you some answers – Jonas Schnelli Feb 14 at 6:45
  • 1
    I think having single quotes in the values for rpcuser, rpcpassword, and rpcport in your bitcoin.conf file is causing problems. Try removing those quotes and restart bitcoind. – Andrew Chow Feb 14 at 17:40
  • 1
    The single quotes were it -- thanks so much! – user97315 Feb 15 at 3:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.