Skip to content

Very slow start of LND even with Postgresql backend #6646

@GordianLN

Description

@GordianLN

Background

Starting, or restarting, my node will imply a wait time of about 20 minutes, of which 20s are spent opening the postgresql database, then a long series of
[ERR] RPCS: [/lnrpc.Lightning/GetInfo]: the RPC server is in the process of starting up, but not yet ready to accept calls
are produced (either GetInfo, or listpeers, or any other call that my running scripts send to lnd to fetch data) for about the next 10 minutes, and then another long series of
[ERR] RPCS: [/lnrpc.Lightning/ConnectPeer]: server is still in the process of starting
is spat out for roughly another 10 minutes, until channels start to be actually reconnected.

As mentioned before, I do have lndg jobs running every few seconds and my scripts checking whether lnd is alive with getinfo, but disabling them doesn't really appear to speed up anything.

Your environment

  • version of lnd 0.14.3
  • which operating system (uname -a on *Nix) raspberry bullseye
  • version of btcd, bitcoind, or other backend 0.22
  • any other relevant environment details raspberry pi 4 8gb

Steps to reproduce

Restart lnd on raspberry pi 4 8gb

Expected behaviour

Startup in a sane time (up to a coupld of minutes after database is opened maybe?)

Actual behaviour

lnd takes 20 minutes after database open to actually be operational

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions