bitcoin: RPC Does not work after upgrading for me
Ever since I upgraded to the latest version I cannot get bitcoin-cli to run.
When I try
bitcoin-cli -rpcuser=charlie -rpcpassword=rv-aoHugIGt28UvY0888888wpTVXLkXYayymj2VXjE= -rpcport=8332 getblockchaininfo
I get a response:
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.
I have not changed anything besides download source, compile, replace bitcoind and bitcoin-cli files and that’s it. Not sure why this would break all of a sudden.
My bitcoin.conf file:
# [core]
testnet=1
daemon=1
maxconnections=10
# [configuration]
datadir=/mnt/volume-sgp1-02/.bitcoin/
# [wallet]
keypool=2048
paytxfee=0.0007
# [RPC]
server=1
rpcauth=charlie:b9412eabc19b0d4c6e7285c3d96ff87$a229e83490edf029e006a8a973431c52a98709250403117c2baf0f4f7ebb3bba
rpcclienttimeout=45
rpcport=8332
[testnet]
rpcport=8332
Versions:
Debian GNU/Linux 9 (stretch)
Bitcoin Core Daemon version v0.17.0.0-ge1ed37edaedc85b8c3468bd9a726046344036243
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (9 by maintainers)
Thanks, I’ve opened an issue for that in #14702.
Shouldn’t we warn when the name of the section is not recognized?
@tgreco I think section name should be
[test]
instead of[testnet]
.really saved my time, I was wondering why regtest rpcport not work, remain default 18443, thanks!
Thank you. To save someone time in the future possibly: