Skip to content

Frequent "Index object count mismatch." errors on borg (1.4.0) check runs #8580

Description

@artfulrobot

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

 [32B blob data]                                                                                                                  
 Index object count mismatch.                                                                                                     
 committed index: 1311317 objects                                                                                                 
 rebuilt index:   1311321 objects                                                                                                 
 ID: 9c3bbb9e94fe0c90768e673504fcbc25c00465d64033a6e982f67a1cb41a70f3 rebuilt index: (44, 254157872)  committed index: <not found>
 ID: 9109b1d58f387c573e6b31b0c23eddae342590445336e2e538de4ceb203a14db rebuilt index: (45, 171568058)  committed index: <not found>
 ID: 4a36c0c71d83e8805d64cdd810e6f7ff403372eab16bd104483cd9ff21db8acc rebuilt index: (44, 254163862)  committed index: <not found>
 ID: 74b46afd51fcf4e7fac4d8d88fa59115e513c3eb8f368702bc5b30f37da81f31 rebuilt index: (45, 171580358)  committed index: <not found>
 Finished full repository check, errors found.                                                                                    

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

finished segment check at segment 6447       
Starting repository index check                    
Finished full repository check, no problems found. 
Starting archive consistency check...              
Analyzing archive daily-2023-12-31T00:04:33 (1/81) 
...
Analyzing archive daily-2024-12-06T00:04:44 (81/81)
4 orphaned objects found!                          
Deleting 4 orphaned and 81 superseded objects...   
Finished deleting orphaned/superseded objects.     
Writing Manifest.                                  
Committing repo.                                   
Archive consistency check complete, problems found.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions