-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
Frequent "Index object count mismatch." errors on borg (1.4.0) check runs #8580
Comments
It looks like the rebuilt index has 4 more entries than the committed index. That means that borg check found data in the segment files that were not in the committed (on disk) index. But then it also found 4 orphans (chunks that are present, but not referenced by any archive). So, overall, it is a harmless / cosmetic issue. |
Thanks for your reply, and for Borg which is usually fantastic. Hmmm. I'm glad it sounds like the archives are ok, but its more than cosmetic - I have scripts that rely on a successful outcome, so these crash. Also it takes about 5 hours to do the repair step which requires backup beforehand because of all the (cosmetic?) warnings that using "repair" could destroy everything! I confess I don't really understand the inner workings of Borg, so I have no idea about segments chunks commits or orphans. It seems like a bug to me, but perhaps it's only me experiencing this problem (which could point to a hardware issue, for example). |
Orphan chunks can happen e.g. if an input file has a read error in the middle (so some content chunks were already written to the repo), but the archive item for that file gets skipped due to that. Not sure if that is the root cause here. Also I think that in that case the initial content chunks should be in the repo index. What also could be is that the repo index gets corrupted in memory, so the chunk IDs have bit flips and do not match the on-disk chunk IDs anymore. But guess that would look a bit different in borg check then. |
I wonder whether it could be files changing as they're read by borg? |
@artfulrobot in borg 1.x a changing file results in a warning, but it does not abort reading the file or skip creation of the file item. so this wouldn't create orphans. |
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yup.
Is this a BUG / ISSUE report or a QUESTION?
QUESTION: is this a bug?
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.4.0
Operating system (distribution) and version.
Debian GNU/Linux 12
Hardware / network configuration, and filesystems used.
VPS. x86
BTRFS.
Running check locally.
How much data is handled by borg?
235GB
Full borg commandline that lead to the problem (leave away excludes and passwords)
borg check --progress --verbose /path/to/repo.git
Describe the problem you're observing.
I have had a small number of these repo check errors in the last few months, since moving to borg 1.4.0
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
I can't reproduce. It seems that an archive is written without error, and then sometimes the check complains of these problems. I don't run the check after every
create
; the check probably runs every 10 days whereas new archives are written nightly.Edit: results of repair
The text was updated successfully, but these errors were encountered: