clarinet
clarinet copied to clipboard
clarinet integrate gets stuck when using a non-default bitcoind port
clarinet integrate gets stuck trying to boot bitcoind when using a non-default bitcoind port.
devnet.toml bitcoin_node_p2p_port = 21444 bitcoin_node_rpc_port = 21443 bitcoin_controller_port = 21442 bitcoin_controller_block_time = 15_000
Setting the node port to 21443 in default.devnet-plan.yaml
also doesn't seem to help.
id: 0 name: Devnet deployment network: devnet node: "http://localhost:21443"
clarinet version 0.31.1
There's nothing helpful in bitcoind container logs. What else can I check?
@lgalabru as mentioned on discord, I've tried building the develop
branch on this commit 8e03b277c688802b3b0f48564db17b9c90ab58d6 but still face the same issue.
you can see the behavior if you just startup lnswap repo on gitpod by going to this url: https://gitpod.io/#https://github.com/pseudozach/lnstxbridge
3rd terminal window bottom-right will be the clarinet integrate
command starting up and getting stuck.
Logs from container used by Clarinet v0.32.0
2022-06-24T09:00:43Z Bitcoin Core version v0.21.1 (release build)
2022-06-24T09:00:43Z Validating signatures for all blocks.
2022-06-24T09:00:43Z Setting nMinimumChainWork=0000000000000000000000000000000000000000000000000000000000000000
2022-06-24T09:00:43Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2022-06-24T09:00:43Z Using RdRand as an additional entropy source
2022-06-24T09:00:43Z Default data directory /root/.bitcoin
2022-06-24T09:00:43Z Using data directory /root/.bitcoin/regtest
2022-06-24T09:00:43Z Config file: /etc/bitcoin/bitcoin.conf
2022-06-24T09:00:43Z Config file arg: disablewallet="0"
2022-06-24T09:00:43Z Config file arg: discover="0"
2022-06-24T09:00:43Z Config file arg: dns="0"
2022-06-24T09:00:43Z Config file arg: dnsseed="0"
2022-06-24T09:00:43Z Config file arg: fallbackfee="0.00001"
2022-06-24T09:00:43Z Config file arg: listen="1"
2022-06-24T09:00:43Z Config file arg: listenonion="0"
2022-06-24T09:00:43Z Config file arg: regtest="1"
2022-06-24T09:00:43Z Config file arg: rpcallowip="0.0.0.0/0"
2022-06-24T09:00:43Z Config file arg: rpcallowip="::/0"
2022-06-24T09:00:43Z Config file arg: rpcpassword=****
2022-06-24T09:00:43Z Config file arg: rpcserialversion="0"
2022-06-24T09:00:43Z Config file arg: rpcuser=****
2022-06-24T09:00:43Z Config file arg: rpcworkqueue="100"
2022-06-24T09:00:43Z Config file arg: server="1"
2022-06-24T09:00:43Z Config file arg: txindex="1"
2022-06-24T09:00:43Z Config file arg: [regtest] bind="0.0.0.0:18444"
2022-06-24T09:00:43Z Config file arg: [regtest] rpcbind=****
2022-06-24T09:00:43Z Config file arg: [regtest] rpcport="18443"
2022-06-24T09:00:43Z Command-line arg: conf="/etc/bitcoin/bitcoin.conf"
2022-06-24T09:00:43Z Command-line arg: datadir="/root/.bitcoin"
2022-06-24T09:00:43Z Command-line arg: debuglogfile=false
2022-06-24T09:00:43Z Command-line arg: pid="/run/bitcoind.pid"
2022-06-24T09:00:43Z Using at most 125 automatic connections (1048576 file descriptors available)
2022-06-24T09:00:43Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2022-06-24T09:00:43Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2022-06-24T09:00:43Z Script verification uses 7 additional threads
2022-06-24T09:00:43Z scheduler thread start
2022-06-24T09:00:43Z WARNING: the RPC server is not safe to expose to untrusted networks such as the public internet
2022-06-24T09:00:43Z HTTP: creating work queue of depth 100
2022-06-24T09:00:43Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
2022-06-24T09:00:43Z HTTP: starting 4 worker threads
2022-06-24T09:00:43Z Using wallet directory /root/.bitcoin/regtest/wallets
2022-06-24T09:00:43Z init message: Verifying wallet(s)...
2022-06-24T09:00:43Z init message: Loading banlist...
2022-06-24T09:00:43Z ERROR: DeserializeFileDB: Failed to open file /root/.bitcoin/regtest/banlist.dat
2022-06-24T09:00:43Z Invalid or missing banlist.dat; recreating
2022-06-24T09:00:43Z SetNetworkActive: true
2022-06-24T09:00:43Z Using /16 prefix for IP bucketing
2022-06-24T09:00:43Z Cache configuration:
2022-06-24T09:00:43Z * Using 2.0 MiB for block index database
2022-06-24T09:00:43Z * Using 56.0 MiB for transaction index database
2022-06-24T09:00:43Z * Using 8.0 MiB for chain state database
2022-06-24T09:00:43Z * Using 384.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2022-06-24T09:00:43Z init message: Loading block index...
2022-06-24T09:00:43Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
2022-06-24T09:00:43Z Opening LevelDB in /root/.bitcoin/regtest/blocks/index
2022-06-24T09:00:43Z Opened LevelDB successfully
2022-06-24T09:00:43Z Using obfuscation key for /root/.bitcoin/regtest/blocks/index: 0000000000000000
2022-06-24T09:00:43Z LoadBlockIndexDB: last block file = 0
2022-06-24T09:00:43Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
2022-06-24T09:00:43Z Checking all blk files are present...
2022-06-24T09:00:43Z Initializing databases...
2022-06-24T09:00:43Z Pre-allocating up to position 0x1000000 in blk00000.dat
2022-06-24T09:00:43Z Opening LevelDB in /root/.bitcoin/regtest/chainstate
2022-06-24T09:00:43Z Opened LevelDB successfully
2022-06-24T09:00:43Z Wrote new obfuscate key for /root/.bitcoin/regtest/chainstate: 82158c07fc62a9ed
2022-06-24T09:00:43Z Using obfuscation key for /root/.bitcoin/regtest/chainstate: 82158c07fc62a9ed
2022-06-24T09:00:43Z init message: Rewinding blocks...
2022-06-24T09:00:43Z block index 24ms
2022-06-24T09:00:43Z Opening LevelDB in /root/.bitcoin/regtest/indexes/txindex
2022-06-24T09:00:43Z Opened LevelDB successfully
2022-06-24T09:00:43Z Using obfuscation key for /root/.bitcoin/regtest/indexes/txindex: 0000000000000000
2022-06-24T09:00:43Z txindex thread start
2022-06-24T09:00:43Z txindex is enabled
2022-06-24T09:00:43Z txindex thread exit
2022-06-24T09:00:43Z loadblk thread start
2022-06-24T09:00:43Z UpdateTip: new best=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206 height=0 version=0x00000001 log2_work=1.000000 tx=1 date='2011-02-02T23:16:42Z' progress=1.000000 cache=0.0MiB(0txo)
2022-06-24T09:00:43Z Failed to open mempool file from disk. Continuing anyway.
2022-06-24T09:00:43Z loadblk thread exit
2022-06-24T09:00:43Z block tree size = 1
2022-06-24T09:00:43Z nBestHeight = 0
2022-06-24T09:00:43Z Bound to 0.0.0.0:18444
2022-06-24T09:00:43Z Bound to 127.0.0.1:18445
2022-06-24T09:00:43Z init message: Loading P2P addresses...
2022-06-24T09:00:43Z ERROR: DeserializeFileDB: Failed to open file /root/.bitcoin/regtest/peers.dat
2022-06-24T09:00:43Z Invalid or missing peers.dat; recreating
2022-06-24T09:00:43Z ERROR: DeserializeFileDB: Failed to open file /root/.bitcoin/regtest/anchors.dat
2022-06-24T09:00:43Z 0 block-relay-only anchors will be tried for connections.
2022-06-24T09:00:43Z init message: Starting network threads...
2022-06-24T09:00:43Z DNS seeding disabled
2022-06-24T09:00:43Z net thread start
2022-06-24T09:00:43Z addcon thread start
2022-06-24T09:00:43Z msghand thread start
2022-06-24T09:00:43Z init message: Done loading
2022-06-24T09:00:43Z opencon thread start
2022-06-24T09:01:44Z Adding fixed seed nodes as DNS doesn't seem to be available.
A decent amount of work recently went into stabilizing clarinet integrate
, I think these issues should be fixed now.
Feel free to re-open if not!