I have compiled and installed Bitcoin Core for the first time on Debian 11. Everything is up and running except that RPC port 8332 is not accessible after a reboot.

I get the following error running bitcoin-cli getblockcount:

error: timeout on transient error: Could not connect to the server

If I then run systemctl restart bitcoind then everything works fine.

What could be wrong?

systemctl status bitcoind shows that it is up and running just fine after a reboot.

Look at this after the reboot:

$ netstat -nap | grep bitcoin | grep LISTEN
tcp        0      0  *               LISTEN      456/bitcoind        
tcp        0      0*               LISTEN      456/bitcoind        
tcp6       0      0 ::1:8332                :::*                    LISTEN      456/bitcoind        
tcp6       0      0 :::8333                 :::*                    LISTEN      456/bitcoind

And then after systemctl restart bitcoind:

tcp        0      0*               LISTEN      532/bitcoind        
tcp        0      0  *               LISTEN      532/bitcoind        
tcp        0      0*               LISTEN      532/bitcoind        
tcp6       0      0 ::1:8332                :::*                    LISTEN      532/bitcoind        
tcp6       0      0 :::8333                 :::*                    LISTEN      532/bitcoind    

For some reason the 8332 port is not opened on reboot.

  • Do you have a logfile configured? if so, does it show anything interesting? Apr 4, 2022 at 16:01

2 Answers 2


When you restart, run systemctl status bitcoind and see if everything is fine. You can also run `$BITCOIN_HOME/

  • You seem to have forgotten to finish your answer ...?
    – tripleee
    Sep 4, 2022 at 10:31

I solved it by adding the following to the bincoin.conf:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.