Post
Topic
Board Bitcoin Technical Support
Merits 2 from 1 user
Topic OP
[Issue ]Connect LND and Core on different machines
by
simpleSliv3r
on 28/09/2023, 09:20:46 UTC
⭐ Merited by ETFbitcoin (2)
Hi,

I'm trying to connect my LND node to my Core, both on different machines, but my LND is stucked after unlocking the wallet and I cannot make RPC calls as it shows the following error:
Code:
user@ubuntu:/usr$ lncli getinfo
[lncli] rpc error: code = Unknown desc = the RPC server is in the process of starting up, but not yet ready to accept calls

Error from lnd side:
Code:
2023-09-28 11:19:26.524 [DBG] RPCS: [/lnrpc.WalletUnlocker/UnlockWallet] requested
2023-09-28 11:19:27.087 [INF] LNWL: Opened wallet
2023-09-28 11:19:27.132 [INF] CHRE: Primary chain is set to: bitcoin
2023-09-28 11:19:32.512 [DBG] RPCS: [/lnrpc.Lightning/GetInfo] requested
2023-09-28 11:19:32.512 [ERR] RPCS: [/lnrpc.Lightning/GetInfo]: the RPC server is in the process of starting up, but not yet ready to accept calls

With a quick search on the Internet, I found that this could be because Core is not completely sync but it's:
Code:
{
  "version": 220000,
  "blocks": 809706,
  "headers": 809706,
  "verificationprogress": 0.9999983770795251,
....
Checking mempool.space 809706 is the last block.

The bitcoin.conf and lnd.conf are the following ones:

[Bitcoin.conf]
Code:
server=1
daemon=1

# Allows LND to connect to the Bitcoin node via an RPC user & pass
rpcuser=*********
rpcpassword=**********

# Allows LND & Bitcoin Core to communicate via ZeroMQ
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333

# Allows other machines apart from localhost to connect to rpc server
rpcallowip=x.x.x.x/24
rpcbind=127.0.0.1


dbcache=20480

shrinkdebugfile=0


[LND]

Code:
[Application Options]
externalip=x.x.x.x

[Bitcoin]
bitcoin.active=true
bitcoin.mainnet=true
bitcoin.node=bitcoind



[Bitcoind]
bitcoind.rpchost=CoreIP (same network as externalip)
bitcoind.rpcuser=*******
bitcoind.rpcpass=********

bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333


Thanks in advance,
-SS