-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
orphaned objects generated when compacting repository #7002
Comments
We already have a ticket for this, please locate it and add new information there. |
Closing this as a duplicate. |
@88mm BTW, if you could provide a "reproducer script" that starts from nothing uses as little backup data as possible and is able to reproduce the issue (anywhere), that would be super useful to find the root cause and fix it. |
I unsuccessfully tried to reproduce this bug in a new/small repo. I temporarily reverted to borgbackup-1.1.17 and then "upgraded" the repo to 1.2.1. I implemented the changes I made to the "borg create" arguments: I switched from --compression=auto,zstd,10 to --compression=auto,zstd,12 (and switched to --noflags from --nobsdflags). |
@88mm ok, thanks for trying to reproduce with a small repo. |
Once a week my Borg backup script adds a "borg compact" to the daily Borg backup execution. The "borg compact" gives a "rc 0" exit status. The next command is a "borg check" which finds an "Index object count mismatch." I subsequently run a "borg check --show-rc --repair" by hand to fix the issue and receive an "orphaned objects found" message. After that the daily "borg check" (without --repair) exits without finding any errors for a week until the next "borg compact". This has happened for the last three weeks in a row. I have been using this Borg repository for about a year so the daily "borg prune" always deletes an archive. Any suggestions for fixing this issue would be appreciated.
With all the arguments removed here what my daily Borg backup script does:
Here is part of the backup output showing the appearance of the object count mismatch:
Here is the manual fix:
I am using Python-3.10.6 and borgbackup-1.2.1.
This Borg repository was originally created under borgbackup-1.1.17. There were no unresolved issues when migrating to borgbackup-1.2.1. I did follow the instructions in the Borg changelog notes. I added the "borg compact" after upgrading to borgbackup-1.2.1.
If I should provide more information or my entire backup script let me know.
(As a last resort I am considering stopping the use of this Borg repository and starting a new one. I would keep this old repository for a half year if I need an old restore.)
The text was updated successfully, but these errors were encountered: