Open callebtc opened 2 years ago
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:
noseedbackup=true
2022-05-11 14:56:43.410 [ERR] LTND: unable to create wallet controller: missing address manager namespace
2022-05-11 14:56:43.410 [ERR] LTND: Shutting down because error in main method: error loading chain control: unable to create wallet controller: missing address manager namespace```
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.:(