-
Notifications
You must be signed in to change notification settings - Fork 650
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: invalid page type: 26: 10 #537
Comments
Looks like the db file is somehow corrupted. It's the same issue as #128 We have surgery command, which can be used to fix the corrupted db. But there is no guarantee. Also unfortunately, there is no a comprehensive usage guide (I will try to provide a guide sometime later), and it's also supposed to be used by advanced users. There are a couple of examples for your reference,
What's the db size, and what's the underlying filesystem? I can try to fix the db for you if you can provide the file. |
The bolt file itself is 512KB, all the InfluxDB files amount to 4.31GB for 3918 files across 1542 folders. I attached my bolt file (zipped). Not that familiar with how bolt is used within InfluxDB or if you need the whole directory. Thanks for the surgery references @ahrtr, and I will gladly buy you a coffee or otherwise compensate you for assistance in repairing since I don't know much about bolt. |
NO. I only need the bbolt file.
|
InfluxDB is running inside a docker container based on debian 11.7 slim, the host is running ubuntu server 22.04.2 kernel 5.16.10-051610. All the InfluxDB files including the .bolt file are on a Synology NAS with a Btrfs file system. The host mounts the Synology NAS as an nfs mount, and docker mounts a volume on that nfs host mount. |
Please read #539. |
Thank you, I tried out the 4 bolt files along with the supporting InfluxDB files at the time of corruption.
Root39 seems the most promising as the startup log messages have the names of my InfluxDB buckets, but it seems whatever corrupt data that got excised out or dropped during my power failure was really important. I've attached the InfluxDB startup logs for running with all 4 bolt files for reference: I'd like to tip you for your assistance so far if you have a way to do that, thanks you very much. |
FYI.
|
@messnerdev Are you able to provide a summary of how InfluxDB use bbolt?
Note it's hard to completely recover the db file, it may need huge effort to make it complete working in InfluxDB. What I have done far just repairs the "corrupted"db, to ensure it's a correct db file from bbolt perspective (e.g. a valid B+ tree). But obviously it still doesn't meet the InfluxDB's requirement on the data from application's perspective. If you really want to make it reliable, you should have a distributed system, so that it can tolerate single point of corruption. Or at least you should have a regular backup plan. |
I had a power outage on a server running InfluxDB 2.7.1 which depends on bbolt 1.3.6.
After the server came back online, InfluxDB would panic after about 1 second with with the logs/StackTrace below. Please help, I have years worth of data that is now inaccessible. I believe the bolt file is corrupt, but I have no idea how to go about repairing it.
The text was updated successfully, but these errors were encountered: