PermissionError: [Errno 13] Permission denied: b'/mnt/nas_backup/temp/bupindex-qgiuwhik/pending' -> b'/mnt/nas_backup/temp/bupindex'
sudo mount -t cifs "//[address]/backup" "/mnt/nas_backup" -o credentials="[creds]",iocharset=utf8cd /mnt/nas_backup/sudo bup -d temp initsudo touch foo barsudo bup -d temp index fooIndexing: 1, done (135 paths/s).sudo bup -d temp index barIndexing: 1, done (146 paths/s)bup: merging indexes (8/8), done.Traceback (most recent call last):File "<frozen runpy>", line 198, in _run_module_as_mainFile "<frozen runpy>", line 88, in _run_codeFile "/usr/lib/bup/bup/main.py", line 417, in <module>main()File "/usr/lib/bup/bup/main.py", line 414, in mainwrap_main(lambda : run_subcmd(cmd_module, subcmd))File "/usr/lib/bup/bup/compat.py", line 98, in wrap_mainsys.exit(main())^^^^^^File "/usr/lib/bup/bup/main.py", line 414, in <lambda>wrap_main(lambda : run_subcmd(cmd_module, subcmd))^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/lib/bup/bup/main.py", line 409, in run_subcmdrun_module_cmd(module, args)File "/usr/lib/bup/bup/main.py", line 323, in run_module_cmdimport_and_run_main(module, args)File "/usr/lib/bup/bup/main.py", line 287, in import_and_run_mainmodule.main(args)File "/usr/lib/bup/bup/cmd/index.py", line 283, in mainupdate_index(rp, excluded_paths, exclude_rxs, indexfile,File "/usr/lib/bup/bup/cmd/index.py", line 196, in update_indexmi.close()File "/usr/lib/bup/bup/index.py", line 586, in closewith self.cleanup:File "/usr/lib/python3.11/contextlib.py", line 589, in __exit__raise exc_details[1]File "/usr/lib/python3.11/contextlib.py", line 574, in __exit__if cb(*exc_details):^^^^^^^^^^^^^^^^File "/usr/lib/bup/bup/helpers.py", line 772, in __exit__os.rename(self.tmp_path, self.path)PermissionError: [Errno 13] Permission denied: b'/mnt/nas_backup/temp/bupindex-qgiuwhik/pending' -> b'/mnt/nas_backup/temp/bupindex'
Matthew Rankine <mat...@mrankine.com> writes:
> I'm getting a permissions error on merging indexes when the bup directory
> is on a CIFS mount.
>
> PermissionError: [Errno 13] Permission denied:
> b'/mnt/nas_backup/temp/bupindex-qgiuwhik/pending' ->
> b'/mnt/nas_backup/temp/bupindex'
Hmm, I'm not sure if this is exactly the same, but I suspect it might
be. I think we've seen any number of similar errors with CIFS over the
years. Might try searching the list archives.
In any case, I'm all in favor of fixing the problem if we can, but I
don't use CIFS and haven't taken a lot of time to delve.