Skip to content

Migration error from 0.7.1 to 0.8.0 #3760

@stridentbean

Description

@stridentbean

Background

Casa Nodes updated from 0.7.1 to 0.8.0 and a half dozen didn't make it. We have been receiving reports that lnd doesn't start back up. After reviewing two sets of logs, they both look like the error message listed below. It leads me to believe there was a wallet corruption during the migration process.

Unfortunately, I just jumped onto a customer node and found that the SCB file was missing. Somehow, during the migration, the backup file must have been deleted. I suppose this user could have been migrating from pre 0.6.0 (I didn't ask), but it seems unlikely.

Is there any way to extract an SCB file from the wallet.db file? I have access to wallet.db.

Your environment

  • version of lnd
    0.8.0
  • which operating system (uname -a on *Nix)
    Linux v1-casa-node-develop 4.14.70-v7+ Fixing some README typos #2 SMP Wed Sep 19 07:49:26 UTC 2018 armv7l GNU/Linux
  • version of btcd, bitcoind, or other backend
    bitcoin ~0.18.0
  • any other relevant environment details
    Running everything in docker containers on a Casa Node.

Steps to reproduce

Lnd is constantly restarting with similar errors listed below.

I think this relates to #3550

2019-11-11T02:01:34Z lnd UNKNOWN[15727] panic: freepages: failed to get all reachable pages (page 1501: multiple references)
2019-11-11T02:01:34Z lnd UNKNOWN[15727] 
2019-11-11T02:01:34Z lnd UNKNOWN[15727] goroutine 43 [running]:
2019-11-11T02:01:34Z lnd UNKNOWN[15727] github.com/coreos/bbolt.(*DB).freepages.func2(0x32444c0)
2019-11-11T02:01:34Z lnd UNKNOWN[15727] #011/go/pkg/mod/github.com/coreos/[email protected]/db.go:1003 +0xcc
2019-11-11T02:01:34Z lnd UNKNOWN[15727] created by github.com/coreos/bbolt.(*DB).freepages
2019-11-11T02:01:34Z lnd UNKNOWN[15727] #011/go/pkg/mod/github.com/coreos/[email protected]/db.go:1001 +0x108
2019-11-11T02:01:37Z lnd UNKNOWN[15727] panic: freepages: failed to get all reachable pages (page 1501: multiple references)
2019-11-11T02:01:37Z lnd UNKNOWN[15727] 
2019-11-11T02:01:37Z lnd UNKNOWN[15727] goroutine 43 [running]:
2019-11-11T02:01:37Z lnd UNKNOWN[15727] github.com/coreos/bbolt.(*DB).freepages.func2(0x32444c0)
2019-11-11T02:01:37Z lnd UNKNOWN[15727] #011/go/pkg/mod/github.com/coreos/[email protected]/db.go:1003 +0xcc
2019-11-11T02:01:37Z lnd UNKNOWN[15727] created by github.com/coreos/bbolt.(*DB).freepages
2019-11-11T02:01:37Z lnd UNKNOWN[15727] #011/go/pkg/mod/github.com/coreos/[email protected]/db.go:1001 +0x108

Expected behaviour

LND should start up properly.

Actual behaviour

Lnd is crashing at boot up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions