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

Value log truncate required to run DB error #116

Closed
richardwarriner opened this issue Apr 14, 2020 · 8 comments
Closed

Value log truncate required to run DB error #116

richardwarriner opened this issue Apr 14, 2020 · 8 comments
Labels
A-badger Area: Badger database C-bug Category: This is a bug P-critical Critical priority

Comments

@richardwarriner
Copy link

Running 2.1.0
Added to config to keep last 10 and ran through ok. If i close the window and then reload it fails to start with below message. Deleting the db folder makes it work ok again but only until window si closed again.
Also in the db folder is 000000.vlog which is just over 2gb
Is it me?

libavutil 56. 35.101 / 56. 35.101
libavcodec 58. 62.100 / 58. 62.100
libavformat 58. 35.100 / 58. 35.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 66.100 / 7. 66.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
ibpostproc 55. 6.100 / 55. 6.100
INFO[2020-04-14T08:02:25+01:00] opening database "db"
INFO[0001] All 0 tables opened in 0s
INFO[0001] Replaying file id: 0 at offset: 0
FATA[2020-04-14T08:02:25+01:00] failed to open database error="failed to open database: Value log truncate required to run DB. This might result in data loss"

@mxpv
Copy link
Owner

mxpv commented Apr 14, 2020

When you close a window, does it have time to shutdown properly?

@richardwarriner
Copy link
Author

I have a .bat file on windows which contains just podsync.exe --config config.txt

The running window is just CMD.exe so i am just clicking the X in the top right corner

@mxpv
Copy link
Owner

mxpv commented Apr 14, 2020

Can you try "Ctrl+C" instead? You should see gracefully stopped message at the very end if it shutdowns properly.

@richardwarriner
Copy link
Author

I do indeed and then a terminate batch job. Answering Y to this gets me fully out and the app does then restart without error.
Its a bit easy to do by accident though and not sure what will happen if the machine reboots for updates?

mxpv added a commit that referenced this issue Apr 14, 2020
@mxpv
Copy link
Owner

mxpv commented Apr 14, 2020

Ok, I found a few similar issues: dgraph-io/badger#744 jaegertracing/jaeger#1832 that suggest to enable Truncate option. I'm going to rollout 2.1.1 with the quick fix.

@richardwarriner
Copy link
Author

Thanks

@mxpv
Copy link
Owner

mxpv commented Apr 15, 2020

@richardwarriner did it help?

@richardwarriner
Copy link
Author

Its would seem so. I can force close the window and it goes back in ok. I also just had the box reboot with windows updates and it was ok when i went back in

@mxpv mxpv closed this as completed Apr 16, 2020
@mxpv mxpv added C-bug Category: This is a bug P-critical Critical priority A-badger Area: Badger database labels Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-badger Area: Badger database C-bug Category: This is a bug P-critical Critical priority
Projects
None yet
Development

No branches or pull requests

2 participants