<p>I encountered this error message when I have not started <code>bitcoind.exe</code>.</p>
<p>Starting <code>bitcoind.exe</code> solved the problem.</p>

CC BY-SA 4.0
2020-06-19T22:07:58.440Z
2020-06-19T22:07:58.440Z
pbies
<p>Brand new Raspberry Pi mainnet node following this walkthrough:</p>

<p><a href="https://medium.com/@meeDamian/bitcoin-full-node-on-rbp3-revised-88bb7c8ef1d1" rel="nofollow noreferrer">https://medium.com/@meeDamian/bitcoin-full-node-on-rbp3-revised-88bb7c8ef1d1</a></p>

<p>When I run this command:</p>

<p><code>bitcoin-cli -rpcuser=username -rpcpassword=password -rpcport=8332 getblockchaininfo</code></p>

<p>I receive the error:</p>

<p><code>error: Could not connect to the server 127.0.0.1:8332</code></p>

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

<p>My bitcoin.conf file is:</p>

<p><code>#is required for Fail2Ban
logips=1</code></p>

<p><code>#magic RBP optimizations
maxconnections=40
maxuploadtarget=5000</code></p>

<p><code>upnp=1</code></p>

<p><code>server=1
rpcuser='username'
rpcpassword='password'
rpcport='8332'</code></p>

<p><code>walletrbf=1</code></p>

<p>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!</p>

CC BY-SA 4.0
2019-02-14T06:45:37.733Z
I guess checking your debug.log in your Bitcoin datadir ~/.bitcoin may give you some answers
Jonas Schnelli
CC BY-SA 4.0
2019-02-14T17:40:44.233Z
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.
Ava Chow
CC BY-SA 4.0
2019-02-15T03:29:51.267Z
The single quotes were it -- thanks so much!
user97315
<bitcoind>
bitcoin-cli "Could not connect to the server"
user97315
# bitcoin-cli "Could not connect to the server"

(Asked by: username_0 on 2019-02-14)

Brand new Raspberry Pi mainnet node following this walkthrough:

<https://medium.com/@meeDamian/bitcoin-full-node-on-rbp3-revised-88bb7c8ef1d1>

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 127.0.0.1:8332`

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`

`upnp=1`

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

`walletrbf=1`

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!

**Tags:** bitcoind

> **Comments:**
> **username_1**: I guess checking your debug.log in your Bitcoin datadir ~/.bitcoin may give you some answers  
> **username_2**: 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.  
> **username_0**: The single quotes were it -- thanks so much!  

---

## 1 answers

### Answer by username_3 on 2020-06-19. Score: 1

I encountered this error message when I have not started `bitcoind.exe`.

Starting `bitcoind.exe` solved the problem.


---

