-
Notifications
You must be signed in to change notification settings - Fork 628
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
Corrupted db file when the vm got turned off because of an overload #103
Comments
Had anyone else bumped into this issue? |
Can any maintainer check this? |
ping? |
is this repo actively maintained? |
I don't know, but it's still the main fork that I know of. The original fork was archived because it was considered to already be complete and they didn't want to weigh it down with extra features. Virtual machines are tricky. You didn't say what you ran the VM in, but VirtualBox for example ignores flush requests by default, which Bolt (and every other database) depends on to ensure that writes occur in the correct order. That's not a problem if it's shut down normally, but a forced shutdown outside of the VM software's control can lead to partial, out-of-order writes which lead to corruption. |
I have the same problem that it happened on Windows XP. I use the repo on release project and it happend yesterday. I didn't run it on the VM and didn't power off the system. I just used the put function to save some info and the bucket can be readed and cannot be writed. |
@dtfinch It was a redhat OS in VM. In that case, how would the accidental power failure case be? |
@liqingsanjin I just got corrupted for no reason?
|
@bharathramh92 Sorry I don't know how it happened. I deploy my program on 600+ computers that operation system are windows 7 and windows XP. It's about a month since I deploy my program. It's no problem until yesterday. From log files of my program, I saw that when my program tried to write a bucket and then it panic an error which is same of yours, but the bucket can be read. I tried to restart the program and windows. It can't be write any more. |
@liqingsanjin that is so strange. I never had that issue. |
I have the same problem. |
I saw a similar problem:
This message comes from: Lines 249 to 250 in 4b8b43e
So Lines 1841 to 1846 in 4b8b43e
Unfortunately I don't have access to the db file that caused the issue in my case, but if someone else does I would suggest looking at the backup meta on page 2 to see if its correct. |
The page was somehow reset, in other words, all content in the page are zero values. FYI. #520 |
OS: MacOS with RHEL VM
The db file got corrupted when the MAC OS decided to restart by itself and my program was running in RHEL VM. Following is the check output.
Is there a way to fix the db file by any means? I check boltdb/bolt#348 and my version (
ee30b748bcfbd74ec1d8439ae8fd4f9123a5c94e
) is greater than that .Note that it didn't happen again when i tried to reproduce again by powering off the virtual machine manually from MAC OS.
The text was updated successfully, but these errors were encountered: