Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Sometimes while I am running bitcoind on my machine I am not able to use the bitcoin-cli,
this is an example of use case
➜ VincentSSD bitcoind -datadir=/run/media/vincent/VincentSSD/.bitcoin --signet -daemon
Error: Cannot obtain a lock on data directory /run/media/vincent/VincentSSD/.bitcoin/signet. Bitcoin Core is probably already running.
➜ VincentSSD bitcoin-cli -datadir=/run/media/vincent/VincentSSD/.bitcoin --signet -getinfo
error: timeout on transient error: Could not connect to the server 127.0.0.1:38332
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
But all start to work when I kill the bitcoind process and restart with the same command
My bitcoin.conf
[signet]
bind=127.0.0.1
rpcuser=itisnotthis
rpcpassword=itisnotthis
rpcport=38332
Expected behaviour
If bitcoin-cli cannot talk with bitcoind for some reason, some line at an error level should be printed.
From my analysis, it looks like the server is dying because I am also not able to connect remotely to it, but there is no log line that points me to this.
Steps to reproduce
Running bitcoind on a machine and hoping to see the bitcoin-cli error or some error in the application that it is not able to connect to the RPC server.
Relevant log output
I will add it later, now I deleted my logs for a mistake!
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
Bitcoin Core RPC client version v24.0.1
Operating system and version
Arch Linux x86_64
Machine specifications
12th Gen Intel i7-1260P (16) @ 4.700GHz