forex.pm forex forum binary options trade - Binance - Сryptocurrency exchanges - Bitcoind daemon: error connecting to the server?
  • Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Bitcoind daemon: error connecting to the server?

Started by Bitcoin, Mar 13, 2022, 12:37 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Bitcoind daemon: error connecting to the server?

I am trying to create a new bitcoin address and store it in a shell variable $NEW_ADDRESS.



When I run this command:



$NEW_ADDRESS=$(./bitcoin-cli getnewaddress)


I get the following errors:



error: Could not connect to the server 127.0.0.1:8332
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
-bash: =: command not found


I have tried everything to fix the connection error, including typing the command:



./bitcoind -rpcport=8332


Or even, changing the bitcoin config:



nano ~/.bitcoin/bitcoin.conf


And typing these lines on the configuration:



rpcconnect=127.0.0.1
rpcport=8332;


But nothing works. Does anyone have an idea on how to troubleshoot and fix this?



Thanks in advance.


Source: Bitcoind daemon: error connecting to the server?