[Borgbackup] FileExistsError re nonce.tmp / nonce

Matthias Böttcher matthias.boettcher at gmail.com
Mon Oct 5 04:51:20 EDT 2020


Hello Michael,

I guess you have mounted /mnt/synology/ as cifs on a Synology NAS.
Please check the SMB-Settings on the NAS, especially the version
settings of the protocol. I can't give you detailed information,
because I'm not using a Synology NAS.

HTH
Matthias Böttcher

Am Sa., 3. Okt. 2020 um 21:42 Uhr schrieb Michael Siepmann via
Borgbackup <borgbackup at python.org>:
>
> I'd appreciate any help anyone can offer on this error I'm getting when trying to do a backup - with a script that was previously working fine. I'll paste the relevant part of the log below, but the main error seems to be this:
>
> FileExistsError: [Errno 17] File exists: '/mnt/synology/Qubes-personal/nonce.tmp' -> '/mnt/synology/Qubes-personal/nonce'
>
> I tried deleting nonce and nonce.tmp before running the backup, but I still got this error. Here's the full log excerpt:
>
> ===
>
> Creating archive at "/mnt/synology/Qubes-personal::{hostname}-{now:%Y-%m-%d_T%H:%M}"
> Local Exception
> Traceback (most recent call last):
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 4529, in main
>     exit_code = archiver.run(args)
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 4461, in run
>     return set_ec(func(args))
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 166, in wrapper
>     return method(self, args, repository=repository, **kwargs)
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 574, in do_create
>     create_inner(archive, cache)
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 537, in create_inner
>     read_special=args.read_special, dry_run=dry_run, st=st)
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 651, in _process
>     read_special=read_special, dry_run=dry_run)
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 651, in _process
>     read_special=read_special, dry_run=dry_run)
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 651, in _process
>     read_special=read_special, dry_run=dry_run)
>   [Previous line repeated 1 more time]
>   File "/usr/lib64/python3.7/site-packages/borg/archiver.py", line 625, in _process
>     status = archive.process_file(path, st, cache)
>   File "/usr/lib64/python3.7/site-packages/borg/archive.py", line 1071, in process_file
>     self.chunk_file(item, cache, self.stats, backup_io_iter(self.chunker.chunkify(fd, fh)))
>   File "/usr/lib64/python3.7/site-packages/borg/archive.py", line 999, in chunk_file
>     item.chunks.append(chunk_processor(data))
>   File "/usr/lib64/python3.7/site-packages/borg/archive.py", line 987, in chunk_processor
>     chunk_entry = cache.add_chunk(self.key.id_hash(data), data, stats, wait=False)
>   File "/usr/lib64/python3.7/site-packages/borg/cache.py", line 897, in add_chunk
>     data = self.key.encrypt(chunk)
>   File "/usr/lib64/python3.7/site-packages/borg/crypto/key.py", line 370, in encrypt
>     self.nonce_manager.ensure_reservation(num_aes_blocks(len(data)))
>   File "/usr/lib64/python3.7/site-packages/borg/crypto/nonces.py", line 85, in ensure_reservation
>     self.commit_repo_nonce_reservation(reservation_end, repo_free_nonce)
>   File "/usr/lib64/python3.7/site-packages/borg/crypto/nonces.py", line 48, in commit_repo_nonce_reservation
>     self.repository.commit_nonce_reservation(next_unreserved, start_nonce)
>   File "/usr/lib64/python3.7/site-packages/borg/repository.py", line 346, in commit_nonce_reservation
>     fd.write(bin_to_hex(next_unreserved.to_bytes(8, byteorder='big')))
>   File "/usr/lib64/python3.7/site-packages/borg/platform/base.py", line 176, in __exit__
>     os.replace(self.tmppath, self.path)
> FileExistsError: [Errno 17] File exists: '/mnt/synology/Qubes-personal/nonce.tmp' -> '/mnt/synology/Qubes-personal/nonce'
>
> Platform: Linux personal 4.19.132-1.pvops.qubes.x86_64 #1 SMP Tue Jul 14 03:42:21 UTC 2020 x86_64
> Linux: Fedora 30 Thirty
> Borg: 1.1.11  Python: CPython 3.7.7 msgpack: 0.5.6
> PID: 25754  CWD: /home/user/Apps/ScriptsByMMS
> sys.argv: ['/usr/bin/borg', 'create', '-v', '--stats', '--compression', 'zlib,5', '/mnt/synology/Qubes-personal::{hostname}-{now:%Y-%m-%d_T%H:%M}', '/home', '--exclude', '/home/*/.cache', '--exclude', '/home/*/.local/share/Trash', '--exclude', '/home/user/Downloads/NOT backed up', '--exclude', '/home/user/Seafile/mra
> y', '--exclude', '/home/user/Seafile/snowdrift-design']
> SSH_ORIGINAL_COMMAND: None
>
> ===
>
> Thank you,
>
> Michael Siepmann
>
> --
>
> Michael Siepmann, Ph.D.
> The Tech Design Psychologist™
> Shaping technology to help people flourish™
> 303-835-0501   TechDesignPsych.com   OpenPGP: 6D65A4F7
>
>
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup


More information about the Borgbackup mailing list