Borg backup fails and fails to check/repair

Hi I’m having an issue with borg backup on nextcloud aio. When I create a backup on a fresh instance it creates it fine bin when checking I can see a lot of Data integrity error: Segment entry checksum mismatch [segment 23, offset 478092157]
errors.

Then when i try to repair it, it tries to repairand then fails with

2025-04-08T10:57:50.043109918Z Checking the backup integrity and repairing it...
2025-04-08T10:57:50.536132558Z This is a potentially dangerous function.
2025-04-08T10:57:50.536167794Z check --repair might lead to data loss (for kinds of corruption it is not
2025-04-08T10:57:50.536177573Z capable of dealing with). BE VERY CAREFUL!
2025-04-08T10:57:50.536186520Z 
2025-04-08T10:57:50.536197040Z Type 'YES' if you understand this and want to continue: Starting repository check
2025-04-08T10:57:54.359588682Z Data integrity error: Segment entry checksum mismatch [segment 4, offset 40608542]
2025-04-08T10:57:54.359637114Z attempting to recover /mnt/borgbackup/borg/data/0/4
2025-04-08T10:58:01.390040568Z Data integrity error: Segment entry checksum mismatch [segment 5, offset 484663908]
2025-04-08T10:58:01.390085332Z attempting to recover /mnt/borgbackup/borg/data/0/5
2025-04-08T10:58:15.337999566Z Data integrity error: Segment entry checksum mismatch [segment 9, offset 151515354]
2025-04-08T10:58:15.338055672Z attempting to recover /mnt/borgbackup/borg/data/0/9
2025-04-08T10:58:32.996788392Z Data integrity error: Segment entry checksum mismatch [segment 12, offset 465090725]
2025-04-08T10:58:32.996838507Z attempting to recover /mnt/borgbackup/borg/data/0/12
2025-04-08T10:58:43.294240457Z Data integrity error: Segment entry checksum mismatch [segment 14, offset 130514406]
2025-04-08T10:58:43.294289940Z attempting to recover /mnt/borgbackup/borg/data/0/14
2025-04-08T10:58:57.226670249Z Data integrity error: Segment entry checksum mismatch [segment 18, offset 153990803]
2025-04-08T10:58:57.226707439Z attempting to recover /mnt/borgbackup/borg/data/0/18
2025-04-08T10:59:07.815444107Z Data integrity error: Segment entry checksum mismatch [segment 21, offset 56970523]
2025-04-08T10:59:07.815495694Z attempting to recover /mnt/borgbackup/borg/data/0/21
2025-04-08T10:59:14.084708254Z Data integrity error: Segment entry checksum mismatch [segment 22, offset 3777794]
2025-04-08T10:59:14.084742809Z attempting to recover /mnt/borgbackup/borg/data/0/22
2025-04-08T10:59:23.198505708Z Data integrity error: Segment entry checksum mismatch [segment 23, offset 478092157]
2025-04-08T10:59:23.198540594Z attempting to recover /mnt/borgbackup/borg/data/0/23
2025-04-08T10:59:29.629511590Z Data integrity error: Segment entry checksum mismatch [segment 24, offset 340756448]
2025-04-08T10:59:29.629726126Z attempting to recover /mnt/borgbackup/borg/data/0/24
2025-04-08T10:59:40.483528171Z Data integrity error: Segment entry checksum mismatch [segment 27, offset 26979318]
2025-04-08T10:59:40.483566724Z attempting to recover /mnt/borgbackup/borg/data/0/27
2025-04-08T10:59:53.219576327Z Data integrity error: Segment entry checksum mismatch [segment 30, offset 387072483]
2025-04-08T10:59:53.219628115Z attempting to recover /mnt/borgbackup/borg/data/0/30
2025-04-08T11:00:00.047563670Z Data integrity error: Segment entry checksum mismatch [segment 31, offset 249102688]
2025-04-08T11:00:00.047636799Z attempting to recover /mnt/borgbackup/borg/data/0/31
2025-04-08T11:00:11.659930195Z Data integrity error: Segment entry checksum mismatch [segment 32, offset 399278350]
2025-04-08T11:00:11.659963127Z attempting to recover /mnt/borgbackup/borg/data/0/32
2025-04-08T11:00:20.404517776Z Data integrity error: Segment entry checksum mismatch [segment 32, offset 21263440]
2025-04-08T11:00:20.404551008Z Traceback (most recent call last):
2025-04-08T11:00:20.404564604Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 1075, in check
2025-04-08T11:00:20.404577709Z     objects = list(self.io.iter_objects(segment))
2025-04-08T11:00:20.404592527Z               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-08T11:00:20.404607525Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 1583, in iter_objects
2025-04-08T11:00:20.404622754Z     size, tag, key, data = self._read(fd, self.header_fmt, header, segment, offset,
2025-04-08T11:00:20.404638434Z                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-08T11:00:20.404653773Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 1682, in _read
2025-04-08T11:00:20.404669262Z     raise IntegrityError('Segment entry checksum mismatch [segment {}, offset {}]'.format(
2025-04-08T11:00:20.404684501Z borg.helpers.errors.IntegrityError: Data integrity error: Segment entry checksum mismatch [segment 32, offset 399278350]
2025-04-08T11:00:20.404698197Z 
2025-04-08T11:00:20.404710710Z During handling of the above exception, another exception occurred:
2025-04-08T11:00:20.404724246Z 
2025-04-08T11:00:20.404739204Z Traceback (most recent call last):
2025-04-08T11:00:20.404754553Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5391, in main
2025-04-08T11:00:20.404767908Z     exit_code = archiver.run(args)
2025-04-08T11:00:20.404780432Z                 ^^^^^^^^^^^^^^^^^^
2025-04-08T11:00:20.404792936Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 5309, in run
2025-04-08T11:00:20.404805760Z     rc = func(args)
2025-04-08T11:00:20.404818384Z          ^^^^^^^^^^
2025-04-08T11:00:20.404830857Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 191, in wrapper
2025-04-08T11:00:20.404843561Z     return method(self, args, repository=repository, **kwargs)
2025-04-08T11:00:20.404856215Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-08T11:00:20.404868849Z   File "/usr/lib/python3.12/site-packages/borg/archiver.py", line 365, in do_check
2025-04-08T11:00:20.404881533Z     if not repository.check(repair=args.repair, save_space=args.save_space, max_duration=args.max_duration):
2025-04-08T11:00:20.404894367Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-08T11:00:20.404931638Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 1081, in check
2025-04-08T11:00:20.404945664Z     objects = list(self.io.iter_objects(segment))
2025-04-08T11:00:20.404958639Z               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-08T11:00:20.404971684Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 1583, in iter_objects
2025-04-08T11:00:20.404986031Z     size, tag, key, data = self._read(fd, self.header_fmt, header, segment, offset,
2025-04-08T11:00:20.404999095Z                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-08T11:00:20.405012120Z   File "/usr/lib/python3.12/site-packages/borg/repository.py", line 1682, in _read
2025-04-08T11:00:20.405025215Z     raise IntegrityError('Segment entry checksum mismatch [segment {}, offset {}]'.format(
2025-04-08T11:00:20.405038320Z borg.helpers.errors.IntegrityError: Data integrity error: Segment entry checksum mismatch [segment 32, offset 21263440]
2025-04-08T11:00:20.405051535Z 
2025-04-08T11:00:20.405064349Z Platform: Linux 27279d15aa4c 6.6.78-Unraid #2 SMP PREEMPT_DYNAMIC Thu Feb 20 13:33:15 PST 2025 x86_64
2025-04-08T11:00:20.405077423Z Linux: Unknown Linux  
2025-04-08T11:00:20.405090278Z Borg: 1.4.0  Python: CPython 3.12.9 msgpack: 1.0.8 fuse: llfuse 1.5.1 [pyfuse3,llfuse]
2025-04-08T11:00:20.405103302Z PID: 29  CWD: /
2025-04-08T11:00:20.405116157Z sys.argv: ['/usr/bin/borg', 'check', '-v', '--repair']
2025-04-08T11:00:20.405129231Z SSH_ORIGINAL_COMMAND: None
2025-04-08T11:00:20.405142136Z 
2025-04-08T11:00:20.460594835Z Some errors were found while checking and repairing the backup integrity!

I can’t figure out what the Tracebacks are trying to tell me. Maybe someone has some ideas? I also checked my HW and my drives are all fine. Nextcloud AIO is latest version v10.11.0 as well as Nextcloud itself Nextcloud Hub 10 (31.0.2)

This topic was automatically closed after 90 days. New replies are no longer allowed.