I recently updated my bitcoin docker image to bitcoing v0.18.0 version and can't allow external rpc connections to it now. It binds to localhost if I set rpcallowip=X.X.X.X
, then I tried to used rpcbind
parameter also, but couldn't set my docker container to allow external rpc connetions.
This is what I get:
bitcoin_1 | 2019-05-23T13:39:34Z Bitcoin Core version v0.18.0 (release build)
bitcoin_1 | 2019-05-23T13:39:34Z Assuming ancestors of block 0000000000000000000f1c54590ee18d15ec70e68c8cd4cfbadb1b4f11697eee have valid signatures.
bitcoin_1 | 2019-05-23T13:39:34Z Setting nMinimumChainWork=0000000000000000000000000000000000000000051dc8b82f450202ecb3d471
bitcoin_1 | 2019-05-23T13:39:34Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
bitcoin_1 | 2019-05-23T13:39:34Z Using RdSeed as additional entropy source
bitcoin_1 | 2019-05-23T13:39:34Z Using RdRand as an additional entropy source
bitcoin_1 | 2019-05-23T13:39:34Z Default data directory /root/.bitcoin
bitcoin_1 | 2019-05-23T13:39:34Z Using data directory /home/BTC
bitcoin_1 | 2019-05-23T13:39:34Z Config file: /home/BTC/bitcoin.conf
bitcoin_1 | 2019-05-23T13:39:34Z Using at most 125 automatic connections (1048576 file descriptors available)
bitcoin_1 | 2019-05-23T13:39:34Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
bitcoin_1 | 2019-05-23T13:39:34Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
bitcoin_1 | 2019-05-23T13:39:34Z Using 0 threads for script verification
bitcoin_1 | 2019-05-23T13:39:34Z Binding RPC on address X.X.X.X port XXXX failed.
bitcoin_1 | 2019-05-23T13:39:34Z Unable to bind any endpoint for RPC server
bitcoin_1 | 2019-05-23T13:39:34Z Error: Unable to start HTTP server. See debug log for details.
bitcoin_1 | Error: Unable to start HTTP server. See debug log for details.
bitcoin_1 | 2019-05-23T13:39:34Z Shutdown: In progress...
bitcoin_1 | 2019-05-23T13:39:34Z scheduler thread start
bitcoin_1 | 2019-05-23T13:39:34Z scheduler thread interrupt
bitcoin_1 | 2019-05-23T13:39:34Z Shutdown: done
My bitcoin.conf file looks like this:
server=1
rpcbind=X.X.X.X
rpcallowip=0.0.0.0/0
rpcport=XXXX
port=XXXX
rpcuser=user
rpcpassword=password