lnd set up on my Raspberry Pi according to the guide here.
Everything works great for the most part, and my node is up and running. I've been able to open a channel with another node, and other nodes have opened channel with me.
However, very often when I try to run a command against
lncli the operation fails with the error
[lncli] rpc error: code = Unavailable desc = grpc: the connection is unavailable. The
lnd logs (
sudo journalctl -f -u lnd) show:
lnd.service: Main process exited, code=exited, status=1/FAILURE lnd.service: Unit entered failed state. lnd.service: Failed with result 'exit-code'.
At those times, it seems like bitcoin is resyncing blocks (
tail -f ./bitcoin/debug.log):
init message: Rewinding blocks... init message: Verifying blocks... Verifying last 6 blocks at level 3 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
If I wait for the above to finish and fresh
UpdateTips to start rolling in, I'm able to unlock and use
What's actually going on here? Do I just have bad luck/timing? Does
bitcoind frequently rewind blocks, causing the rpc calls to fail?