[Borgbackup] recommended check option
Boris Kirkorowicz
bkborg at kirk.de
Wed May 10 06:31:07 EDT 2023
Hi,
first, I tried with one of the smaller repos that were not affected:
> # borg check --repository-only /mnt/rs1219a/usrlocal/
> Failed to create/acquire the lock /mnt/rs1219a/usrlocal/lock (timeout).
It is the same with all repos. The repos are not encrypted. So I wonder
what is meant with the failing lock. All I found was break-lock, and so
I tried
> # borg break-lock /mnt/rs1219a/usrlocal/
> # borg -v check --repository-only /mnt/rs1219a/usrlocal/
> Starting repository check
> Local Exception
> Traceback (most recent call last):
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 5213, in main
> exit_code = archiver.run(args)
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 5144, in run
> return set_ec(func(args))
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 183, in wrapper
> return method(self, args, repository=repository, **kwargs)
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 343, in do_check
> if not repository.check(repair=args.repair, save_space=args.save_space, max_duration=args.max_duration):
> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1026, in check
> self.save_config(self.path, self.config)
> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 332, in save_config
> secure_erase(old_config_path, avoid_collateral_damage=True)
> File "/usr/lib64/python3.10/site-packages/borg/helpers/fs.py", line 199, in secure_erase
> with open(path, 'r+b') as fd:
> OSError: [Errno 5] Input/output error: '/mnt/rs1219a/usrlocal/config.old'
>
> Platform: Linux sfo2205 6.1.7-1-default #1 SMP PREEMPT_DYNAMIC Wed Jan 18 11:12:34 UTC 2023 (872045c) x86_64
> Linux: Unknown Linux
> Borg: 1.2.4 Python: CPython 3.10.10 msgpack: 1.0.4 fuse: pyfuse3 3.2.2 [pyfuse3,llfuse]
> PID: 18561 CWD: /root
> sys.argv: ['/usr/bin/borg', '-v', 'check', '--repository-only', '/mnt/rs1219a/usrlocal/']
> SSH_ORIGINAL_COMMAND: None
I guess I need some assistance here.
Am 09.05.23 um 10:07 schrieb Boris Kirkorowicz:
> Hi,
> the backup job running since January has finished now.
>
> I split the data to multiple repos. Two of the repos ended with rc=1:
>> terminating with warning status, rc 1
>
> I guess this is due to an interruption of the IP connect to the backup
> disks yesterday:
>
>> [...]
>> /home/boris/public_html/.directory: read: [Errno 107] Transport endpoint is not connected
>> Local Exception
>> Traceback (most recent call last):
>> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 183, in wrapper
>> return method(self, args, repository=repository, **kwargs)
>> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 675, in do_create
>> create_inner(archive, cache, fso)
>> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 629, in create_inner
>> archive.save(comment=args.comment, timestamp=args.timestamp)
>> File "/usr/lib64/python3.10/site-packages/borg/archive.py", line 613, in save
>> self.items_buffer.flush(flush=True)
>> File "/usr/lib64/python3.10/site-packages/borg/archive.py", line 385, in flush
>> self.chunks.append(self.write_chunk(chunk))
>> File "/usr/lib64/python3.10/site-packages/borg/archive.py", line 401, in write_chunk
>> id_, _, _ = self.cache.add_chunk(self.key.id_hash(chunk), chunk, self.stats, wait=False)
>> File "/usr/lib64/python3.10/site-packages/borg/cache.py", line 951, in add_chunk
>> self.repository.put(id, data, wait=wait)
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1230, in put
>> segment, offset = self.io.write_put(id, data)
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1643, in write_put
>> fd.write(b''.join((crc, header, id, data)))
>> File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 174, in write
>> self.f.write(data)
>> OSError: [Errno 107] Transport endpoint is not connected
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>> File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 194, in close
>> self.sync()
>> File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 182, in sync
>> self.f.flush()
>> OSError: [Errno 107] Transport endpoint is not connected
>>
>> During handling of the above exception, another exception occurred:
>>
>> OSError: [Errno 107] Transport endpoint is not connected
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 5213, in main
>> exit_code = archiver.run(args)
>> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 5144, in run
>> return set_ec(func(args))
>> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 168, in wrapper
>> with repository:
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 214, in __exit__
>> self.close()
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 476, in close
>> self.io.close()
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1313, in close
>> self.close_segment()
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1468, in close_segment
>> fd.close()
>> File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 196, in close
>> self.f.close()
>> OSError: [Errno 107] Transport endpoint is not connected
>>
>> Platform: Linux sfo2205 6.1.7-1-default #1 SMP PREEMPT_DYNAMIC Wed Jan 18 11:12:34 UTC 2023 (872045c) x86_64
>> Linux: Unknown Linux
>> Borg: 1.2.4 Python: CPython 3.10.10 msgpack: 1.0.4 fuse: pyfuse3 3.2.2 [pyfuse3,llfuse]
>> PID: 29494 CWD: /root
>> sys.argv: ['/usr/bin/borg', 'create', '-v', '--stats', '--show-rc', '-C', 'lzma,6', '/mnt/rs1219a/Boris::{now:%Y-%m-%d_%H-%M}', '/home/boris']
>> SSH_ORIGINAL_COMMAND: None
>>
>> terminating with error status, rc 2
>> Exception ignored in: <function Repository.__del__ at 0x7f8a1b505630>
>> Traceback (most recent call last):
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 189, in __del__
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 476, in close
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1314, in close
>> File "/usr/lib64/python3.10/site-packages/borg/lrucache.py", line 50, in clear
>> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1320, in _close_fd
>> OSError: [Errno 107] Transport endpoint is not connected
>> 2023-05-08_14-13-19: Datensicherung Nr. 3 mit borgbackup beendet (2) mit RC: 2
>
>
> Now I wonder what is to do best. First thing might be
>
> borg check /mnt/rs1219a/Boris
>
> but there are some options mentioned in the docs that I do not
> understand, resp. their meaning. What is the recommended procedure here?
>
>
>
>
--
Mit freundlichem Gruß Best regards
Kirkorowicz
More information about the Borgbackup
mailing list