-
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
btcwallet: don't initialize wallet namespace if scrypt derivation fails due to low memory #6210
Comments
Do you have any swap alloacted? I'm guessing the initial scrypt operation to encrypt the keys on disk is running out of memory. Depending on the type of telemetry you have on the machine, you can watch the memory usage. There're some other settings you can use on the lnd front to reduce memory usage as well. |
Closing due to inactivity. The issue here seems to be lack of swap AFAICT, will re-open if we get any other information. |
I think I may have a repro for this scenario. Ran into it as well in a docker environment with insufficient memory. It isn't great, because wallet db seems to get into a state that lnd can't recover from. Restarting doesn't help. Repro steps:
|
The reason seems to be that an empty wallet file is already created, but not yet initialized. This will skip the initialization on the next run. |
@saubyk can this be re-opened? I've added a repro scenario above. |
Background
lnd is killed at wallet creation.
Your environment
lnd
: Version: 0.14.1-beta commit=v0.14.1-beta,neutrino
backendSteps to reproduce
I start with a fresh
lnd
with the Raspibolt config except that I use theneutrino
backend. I use the ARMv7 binary since I'm running this on a Rpi Zero 2 W.I start
lnd
and it does it's thing, waiting for me to create a wallet. In another session, I runlncli create
. I see this:Around 10 seconds later, lncli terminates with:
At the same time,
lnd
gets killed only saying:At this point I have created a wallet. I can try to run lnd again but I get
To check, I uncomment these lines in
lnd.conf
so I can enter the password manually:I start
lnd
again, this time it runs but wants me to unlock the wallet manually:I do that with
lncli
and now I get:lnd
keeps running. Can't unlock the wallet.I delete everything in the
.lnd
directory except for mylnd.conf
file and start over. Same thing happens.:(
The text was updated successfully, but these errors were encountered: