Closed hpbock closed 3 years ago
How large is your database? You may need to try compacting it if you're on a 32-bit system, and don't have enough memory for the initial memory map.
$ ls -la .lnd/data/chain/bitcoin/mainnet
total 71916
-rw------- 1 lnd-mainnet lnd-mainnet 293 Mai 12 13:24 admin.macaroon
-rw-r--r-- 1 lnd-mainnet lnd-mainnet 83 Mai 12 13:29 chainnotifier.macaroon
-rw-rw-r-- 1 lnd-mainnet lnd-mainnet 31050 Aug 21 16:07 channel.backup
-rw-r--r-- 1 lnd-mainnet lnd-mainnet 132 Mai 12 13:24 invoice.macaroon
-rw-r--r-- 1 lnd-mainnet lnd-mainnet 91 Mai 12 13:29 invoices.macaroon
-rw------- 1 lnd-mainnet lnd-mainnet 32768 Aug 9 10:42 macaroons.db
-rw-r--r-- 1 lnd-mainnet lnd-mainnet 217 Mai 12 13:24 readonly.macaroon
-rw-r--r-- 1 lnd-mainnet lnd-mainnet 91 Mai 12 13:29 router.macaroon
-rw-r--r-- 1 lnd-mainnet lnd-mainnet 92 Mai 12 13:29 signer.macaroon
-rw------- 1 lnd-mainnet lnd-mainnet 81629184 Aug 21 16:22 wallet.db
-rw-r--r-- 1 lnd-mainnet lnd-mainnet 114 Mai 12 13:29 walletkit.macaroon
$ ls -la .lnd/data/graph/mainnet/
total 1104596
-rw------- 1 lnd-mainnet lnd-mainnet 1075343360 Aug 21 16:24 channel.db
-rw------- 1 lnd-mainnet lnd-mainnet 57761792 Aug 21 16:22 sphinxreplay.db
$ free -h
total used free shared buff/cache available
Mem: 1,9G 1,0G 45M 2,6M 905M 922M
Swap: 8,0G 74M 7,9G
@Roasbeef i guess you mean the channel.db
?
See this comment: https://github.com/lightningnetwork/lnd/issues/4811#issuecomment-813553011
Yes, I mean channel.db
.
@Roasbeef thank you for your quick response on this sunday! :smiley: I'll check it right now!
Background
LND unexpectedly crashed this afternoon and will no longer start up.
The last three line of the logfile before it suddenly ended:
Your environment
Steps to reproduce
I just start lnd and it immediately shuts down.
Expected behaviour
I expect lnd to start up and wait for the passphrase to unlock the wallet.
Actual behaviour