Skip to content
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

panic: freepages: failed to get all reachable pages (page 18562: multiple references) #4102

Closed
aflesher opened this issue Mar 19, 2020 · 5 comments

Comments

@aflesher
Copy link

Background

Not exactly sure if I got myself into a bad state but I tried to recover LND version 0.7.1-beta on 0.9.0-beta after my RaspiBlitz hdd died. Trying to start he LND service produces the stack trace below.

Your environment

Steps to reproduce

Trying to start the service produces the following error

Mar 19 04:25:56 DarkTerritory lnd[21850]: panic: freepages: failed to get all reachable pages (page 18562: multiple references)
Mar 19 04:25:56 DarkTerritory lnd[21850]: goroutine 15 [running]:
Mar 19 04:25:56 DarkTerritory lnd[21850]: github.com/coreos/bbolt.(*DB).freepages.func2(0x245e880)
Mar 19 04:25:56 DarkTerritory lnd[21850]: github.com/coreos/bbolt@v1.3.3/db.go:1003 +0xcc
Mar 19 04:25:56 DarkTerritory lnd[21850]: created by github.com/coreos/bbolt.(*DB).freepages
Mar 19 04:25:56 DarkTerritory lnd[21850]: github.com/coreos/bbolt@v1.3.3/db.go:1001 +0x108

@Roasbeef
Copy link
Member

Not exactly sure if I got myself into a bad state but I tried to recover LND version 0.7.1-beta on 0.9.0-beta after my RaspiBlitz hdd died.

Are you able to start with v0.7.1? When running 0.9.0, do you have free list syncing on?

@aflesher
Copy link
Author

@Roasbeef I abandoned trying to recover on 0.9.0-beta but got a different error when trying to recover on 0.7.1-beta:
Unable to create server: no active channels exist
I'm in the process of trying a different recovery method on 0.7.1-beta at the moment.

@guggero
Copy link
Collaborator

guggero commented Mar 24, 2020

It sounds like the freepages space of your database got corrupted. You could try to create a copy in safe mode that ignores the freepages. I added the compactdb command to my channel tools that does exactly that: https://github.com/guggero/chantools

Anyway, it probably is better to try running v0.9.0 instead of the older one.

@aflesher
Copy link
Author

I think your assumption was probably correct. I was able to recover using a channel.backup file that the zap iOS wallet had and the 24-word cipher seed. I'm still missing some funds in the wallet but it looks like their is some ways to try and recover this. We can probably close this issue.

@guggero
Copy link
Collaborator

guggero commented Mar 26, 2020

Ok, closing the issue.
It could be that some peers you had channels to aren't online currently and the restore procedure can't be executed for those channels. If the balance doesn't return in a day or two, feel free to contact me directly. There are ways to get those funds back. Just don't delete your corrupted database file yet, it might still contain useful data for that case of the offline channel peers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants