-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when restoring a wallet on a fresh LND install configured with postgresql db backend #6041
Comments
I've experienced the same thing even when creating a new seed. The error messages on the
The error message on the
Environment:
|
If y'all crank up logging to trace Also does postgres emit any relevant logs? |
Just trying to narrow this down: Does the problem also happen if you set |
Here's the log with
Then, I restarted LND, and got logs:
After I use
However, it seems like
|
Okay, so this definitely has something to do with the timeout. Were you running with Neutrino? The error you got seems to be unrelated to postgres: |
So setting the timeout to 0 and supplying a feeurl works, however, I think there still might be a problem since I was accessing postgres on localhost and 10s should be plenty for a timeout... |
How long does it take now to open the database? (log: Also in the works is #6111 which speeds up db opens on postgres a lot. |
Ah, it takes 2m47s... I assumed the |
Background
Getting an RPC error when trying to restore a wallet (via a seed-phrase) on a fresh LND install configured with postgresql db backend.
Your environment
lnd v0.14.1-beta
Linux bitcoin-lnd 5.13.0-1006-gcp #7-Ubuntu SMP Wed Oct 27 07:10:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
bitcoind 0.21.1
docker compose v2
Steps to reproduce
I started up LND with postgres db backend configured. The db connects and initialises fine, and then it asks me to create a new wallet. I run lncli create and choose to restore from a seed phrase. It takes me through the whole process, which only takes a few seconds, but then it gives me an error. This is what my lncli create session looks like:
And this is what the LND logs look like at the same time:
Expected behaviour
The wallet should be restored and LND should then be able to start up and operate normally from that point.
Actual behaviour
LND just crashes with the error described above, the wallet is not restored. If I try again the same sequence repeats.
The text was updated successfully, but these errors were encountered: