lnd: LND stuck in `the RPC server is in the process of starting up, but not yet ready to accept calls`

Background

My RPC server never starts and it doesn’t tell me why.

Your environment

  • version of lnd: v0.14.2-beta, linux.amd64, downloaded from the GitHub Releases page
  • which operating system (uname -a on *Nix): Linux 5.15.10-arch1-1 #1 SMP PREEMPT Fri, 17 Dec 2021 11:17:37 +0000 x86_64 GNU/Linux
  • version of btcd, bitcoind, or other backend: Bitcoin Core v0.21.1

Steps to reproduce

Tell us how to reproduce this issue. Please provide stacktraces and links to code in question.

Expected behaviour

I should be able to execute calls.

Actual behaviour

I erased my previous regtest folder so I could start a new regtest chain and started bitcoind with the following command:

~> bitcoind -regtest -datadir=/home/fiatjaf/.bitcoin/ -zmqpubrawblock=tcp://127.0.0.1:18332 -zmqpubrawtx=tcp://127.0.0.1:18333 -rpcbind=127.0.0.1 -rpcuser=fiatjaf -rpcpassword=fiatjaf

Then I created a wallet on bitcoind with bitcoin-cli --regtest ... createwallet dev, created an address with getnewaddress and then generatetoaddress 1 <address> (just so the chain would have a block, I don’t know if this is important).

And these are the full start command and logs from LND:

~> ./lnd --bitcoind.rpcpass=fiatjaf --bitcoind.rpcuser=fiatjaf --bitcoind.zmqpubrawblock=tcp://127.0.0.1:18332 --bitcoind.zmqpubrawtx=tcp://127.0.0.1:18333 --bitcoin.active --bitcoin.node=bitcoind --bitcoin.regtest --alias=dev --accept-keysend --rpclisten=0.0.0.0:10009
2022-03-10 13:31:54.061 [WRN] LTND: open /home/fiatjaf/.lnd/lnd.conf: no such file or directory
2022-03-10 13:31:54.061 [INF] LTND: Version: 0.14.2-beta commit=v0.14.2-beta, build=production, logging=default, debuglevel=info
2022-03-10 13:31:54.062 [INF] LTND: Active chain: Bitcoin (network=regtest)
2022-03-10 13:31:54.062 [INF] RPCS: RPC server listening on 0.0.0.0:10009
2022-03-10 13:31:54.063 [INF] RPCS: gRPC proxy started at 127.0.0.1:8080
2022-03-10 13:31:54.063 [INF] LTND: Opening the main database, this might take a few minutes...
2022-03-10 13:31:54.063 [INF] LTND: Opening bbolt database, sync_freelist=false, auto_compact=false
2022-03-10 13:31:54.063 [INF] LTND: Creating local graph and channel state DB instances
2022-03-10 13:31:54.070 [INF] CHDB: Checking for schema update: latest_version=24, db_version=24                                                                                  
2022-03-10 13:31:54.070 [INF] LTND: Database(s) now open (time_to_open=7.252101ms)!
2022-03-10 13:31:54.070 [INF] LTND: We're not running within systemd
2022-03-10 13:31:54.070 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create a wallet, `lncli unlock` to unlock an existing wallet, or `lncli changepassword` to change the password of an existing wallet and unlock it.

[at this point I run `./lncli unlock`]

2022-03-10 13:32:21.936 [INF] LNWL: Opened wallet
2022-03-10 13:32:22.012 [INF] CHRE: Primary chain is set to: bitcoin

[at this point I try to run `./lncli -n regtest getinfo`]

2022-03-10 13:33:26.620 [ERR] RPCS: [/lnrpc.Lightning/GetInfo]: the RPC server is in the process of starting up, but not yet ready to accept calls

What am I missing? I tried to search for LND guides on the internet and read a bunch of them, trying to see if I had missed some important setting, but didn’t find the reason for this behavior.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (5 by maintainers)

Most upvoted comments

That fixed it! Thank you very much.

This is an issue on Bitcoin Core, I would say. It shouldn’t accept conflicting ports like that,