-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Nil blob list errors, zeroed files in backup #604
Comments
Thanks for the report, that clearly shouldn't happen and instead be handled the way you described it. I'll have a look. |
This bug is actually 2 different, but similar, bugs. Basically, this is a showstopper for backing up live systems. Because, not only some important files don't get backed up at all, but also the repo is left with fatal errors after the backup run. Double trouble. I'll give it a try, though I'm now in uncharted waters, having trouble following some code there. But, I'll try to send 2 patches that should fix this. |
I fixed the other bug easily, but this one is really nasty. Or, I'm missing something obvious, dunno. I have this in debug output:
Yet, after the backup is done, NO blobs are saved, the file has zero length. :( I'll keep trying, but atm, I'm out of ideas. |
Hello, I have the same problem but how can I delete the errored snapshots or blobs? |
What do you see? The message about a nil blob list? |
Yes.
|
Ok, thanks for the report. There's no need for concern, and I'll probably downgrade this to a "hint" only. You should be able to restore your backups and use the fuse mount regardless of this message. |
Thats nice, but am I able to someway identify the file that causes the error in the repository and remove it? |
Well obviously I now which file is since I showed you above but I think you know what I mean. |
The only way to remove the file is to delete the snapshot it is in, sorry. |
restic 0.2.0 (v0.2.0-202-gfae65eb)
compiled at 2016-09-04 10:30:20 with go1.7
When doing live backups of any system, some files will grow/change during the backup operation. Typical example are various log files that grow all the time. I see that restic already issues warnings for this case, which is perfectly fine. The operator should be warned of files whose backup copy is possibly incomplete or inconsistent.
But, when checking these incomplete files, they're actually zeroed, which is certainly unexpected. I'd expect to have at least some content there:
To add to this, checking the repository spits out errors that can't be fixed even with rebuild-index:
On my system these errors happen in most cases to the above mentioned system.journal, pacct (accounting) file and rrd files. And I have "nil blob list" errors for all of them.
The text was updated successfully, but these errors were encountered: