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

Corrupt DB after a power failure #325

Closed
esaumell opened this issue Apr 19, 2022 · 4 comments
Closed

Corrupt DB after a power failure #325

esaumell opened this issue Apr 19, 2022 · 4 comments

Comments

@esaumell
Copy link

esaumell commented Apr 19, 2022

Hi, I would like to recover data. I'm getting a panic: invalid freelist page: 1938, page type is leaf. As mentioned on #135 I've tried bbolt check host.db but any operations with bbolt are giving that same error.

I thought that maybe the end of the file was corrupted and I was wondering if it would be possible to strip that corrupted data from the file.
I've tried opening the db file with an hex editor and I can read some of the data. I tried some arbitrary deletions without success.

Anyone has experience with this? Would be nice to recover at least part of the file in a working state.

@esaumell esaumell changed the title Corrupted DB after a power failure Corrupt DB after a power failure Apr 19, 2022
@ishan16696
Copy link
Contributor

yes, I have also experienced this before. Sadly till now I haven’t found any solution for this

@tmm1
Copy link
Contributor

tmm1 commented Oct 27, 2022

@esaumell What exception stack trace do you get from bbolt check?

@esaumell
Copy link
Author

esaumell commented Nov 1, 2022

@esaumell What exception stack trace do you get from bbolt check?

Hey sorry to say I no longer use the software that used bbolt as DB... For me the issue can be closed. Thanks anyway.

@ptabor
Copy link
Contributor

ptabor commented Dec 30, 2022

For posterity:

I recommend:

./bbolt page --all --format-value=redacted data/member/snap/db

to diagnose the structure of the tree... and have data that after inspection can be shared with others for help (no values - just keys -> that in case of etcd, does not carry any business-data).

@ptabor ptabor closed this as completed Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants