You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded an lnd node from commit d8863be to b07499f (0.5.1-beta)
Then started seeing the error "panic: unable to sanity check wallet birthday block: failed to store sync information 000000000000000000030c1ff057d297fd8ad5b29a882e7f0a0e16f9da9f9ee5: failed to fetch block hash for height 554507: block not found"
I've done this on several raspberry pi's and most worked fine, but a couple have seen the error above. One of the devices that had an error corresponding to an out of memory error. My working theory is that during the db migration from the first commit to the second, the pi sometimes runs out of memory.
Potential fix
I'm curious if deleting the wallet.db file and recreating it with the same seed words would work. I would leave the channel.db and sphinxreplay.db to preserve the channels states. Any thoughts on that?
Your environment
version of lnd
0.5.1-beta commit=v0.5.1-beta
which operating system (uname -a on *Nix)
Linux lnd 4.14.70-v7+ Fixing some README typos #2 SMP Wed Sep 19 07:49:26 UTC 2018 armv7l Linux
version of btcd, bitcoind, or other backend
bitcoind: 0.17.0
any other relevant environment details
bitcoind and lnd are running in docker containers
raspberry pi 3b+
2019-01-01T23:01:54Z lnd UNKNOWN[29439] 2019-01-01 23:01:54.092 [ERR] LNWL: unable to sanity check wallet birthday block: failed to store sync information 00000000000000000010091f141b0a06337eb99d16dbc09643abec28739ccfd3: failed to fetch block hash for height 554372: block not found
2019-01-01T23:01:54Z lnd UNKNOWN[29439] panic: unable to sanity check wallet birthday block: failed to store sync information 00000000000000000010091f141b0a06337eb99d16dbc09643abec28739ccfd3: failed to fetch block hash for height 554372: block not found
2019-01-01T23:01:54Z lnd UNKNOWN[29439]
2019-01-01T23:01:54Z lnd UNKNOWN[29439] goroutine 86 [running]:
2019-01-01T23:01:54Z lnd UNKNOWN[29439] github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcwallet/wallet.(*Wallet).handleChainNotifications(0x2428000)
2019-01-01T23:01:54Z lnd UNKNOWN[29439] #011/go/src/github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcwallet/wallet/chainntfns.go:126 +0xdd0
2019-01-01T23:01:54Z lnd UNKNOWN[29439] created by github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcwallet/wallet.(*Wallet).SynchronizeRPC
2019-01-01T23:01:54Z lnd UNKNOWN[29439] #011/go/src/github.com/lightningnetwork/lnd/vendor/github.com/btcsuite/btcwallet/wallet/wallet.go:186 +0x124
Expected behaviour
Upgrading lnd failed and now yeilds a sanity check error.
Background
I upgraded an lnd node from commit d8863be to b07499f (0.5.1-beta)
Then started seeing the error "panic: unable to sanity check wallet birthday block: failed to store sync information 000000000000000000030c1ff057d297fd8ad5b29a882e7f0a0e16f9da9f9ee5: failed to fetch block hash for height 554507: block not found"
I've done this on several raspberry pi's and most worked fine, but a couple have seen the error above. One of the devices that had an error corresponding to an out of memory error. My working theory is that during the db migration from the first commit to the second, the pi sometimes runs out of memory.
Potential fix
I'm curious if deleting the wallet.db file and recreating it with the same seed words would work. I would leave the channel.db and sphinxreplay.db to preserve the channels states. Any thoughts on that?
Your environment
lnd0.5.1-beta commit=v0.5.1-beta
uname -aon *Nix)Linux lnd 4.14.70-v7+ Fixing some README typos #2 SMP Wed Sep 19 07:49:26 UTC 2018 armv7l Linux
btcd,bitcoind, or other backendbitcoind: 0.17.0
bitcoind and lnd are running in docker containers
raspberry pi 3b+
Steps to reproduce/ stack traces
Out of memory error at time of lnd upgrade
sanity check error
Expected behaviour
Upgrading lnd failed and now yeilds a sanity check error.
Actual behaviour
Upgrade should work fine