Skip to content
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

Error during backup if a directory is used by another program. #2191

Open
2 tasks
Satlinker opened this issue Jan 17, 2025 · 0 comments
Open
2 tasks

Error during backup if a directory is used by another program. #2191

Satlinker opened this issue Jan 17, 2025 · 0 comments

Comments

@Satlinker
Copy link

Satlinker commented Jan 17, 2025

Description

Hi, Brave-Browser writes often and a lot into its config-file. If Vorta makes a backup of it at the same time, the Borg cache is no longer recognized and you have to delete it. Is a backup not stopped when a directory is in use?

Reproduction

  • I tried to reproduce the issue.
  • I was able to reproduce the issue.

OS

Kubuntu 24.10

Version of Vorta

Vorta 0.9.1

What did you install Vorta with?

Homebrew

Version of Borg

Borg 1.4.0

Logs

17.01.25 04:33	vorta	2025-01-17 04:33:56,256 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
17.01.25 04:33	vorta	2025-01-17 04:33:56,258 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
17.01.25 04:33	vorta	2025-01-17 04:33:56,261 - vorta.scheduler - INFO - Preparation for backup successful.
17.01.25 04:33	vorta	2025-01-17 04:33:56,262 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
17.01.25 04:33	vorta	2025-01-17 04:33:56,262 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
17.01.25 04:33	vorta	2025-01-17 04:33:56,266 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg create --list --progress --info --log-json --json --filter=AM -C auto,zlib,6 /media/pi/USB-Stick/Backups/Borg_LOQ_home::PC-configbravesoftware-2025-01-17-043356 /home/pi/.config/BraveSoftware
17.01.25 04:33	vorta	2025-01-17 04:33:56,500 - vorta.borg.borg_job - ERROR - Local Exception
17.01.25 04:33	vorta	2025-01-17 04:33:56,502 - vorta.borg.borg_job - ERROR - Traceback (most recent call last):
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/archiver.py", line 5391, in main
17.01.25 04:33	vorta	    exit_code = archiver.run(args)
17.01.25 04:33	vorta	                ^^^^^^^^^^^^^^^^^^
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/archiver.py", line 5309, in run
17.01.25 04:33	vorta	    rc = func(args)
17.01.25 04:33	vorta	         ^^^^^^^^^^
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/archiver.py", line 182, in wrapper
17.01.25 04:33	vorta	    assert_secure(repository, kwargs['manifest'], self.lock_wait)
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/cache.py", line 208, in assert_secure
17.01.25 04:33	vorta	    sm.assert_secure(manifest, manifest.key, lock_wait=lock_wait)
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/cache.py", line 173, in assert_secure
17.01.25 04:33	vorta	    with cache_config:
17.01.25 04:33	vorta	         ^^^^^^^^^^^^
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/cache.py", line 249, in __enter__
17.01.25 04:33	vorta	    self.open()
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/cache.py", line 272, in open
17.01.25 04:33	vorta	    self.load()
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/cache.py", line 278, in load
17.01.25 04:33	vorta	    self._check_upgrade(self.config_path)
17.01.25 04:33	vorta	  File "/usr/lib/python3/dist-packages/borg/cache.py", line 337, in _check_upgrade
17.01.25 04:33	vorta	    raise Exception('%s does not look like a Borg cache.' % config_path) from None
17.01.25 04:33	vorta	Exception: /home/pi/.cache/borg/505adc22e5ef9eba13e6a06c4baac52eb57168ec7cb8855c319a812057b90d1e/config does not look like a Borg cache.
17.01.25 04:33	vorta	Platform: Linux PC 6.11.0-13-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Sat Nov 30 23:51:51 UTC 2024 x86_64
17.01.25 04:33	vorta	Linux: Unknown Linux
17.01.25 04:33	vorta	Borg: 1.4.0  Python: CPython 3.12.7 msgpack: 1.0.3 fuse: pyfuse3 3.3.0 [pyfuse3,llfuse]
17.01.25 04:33	vorta	PID: 5405  CWD: /home/pi
17.01.25 04:33	vorta	sys.argv: ['/usr/bin/borg', 'create', '--list', '--progress', '--info', '--log-json', '--json', '--filter=AM', '-C', 'auto,zlib,6', '/media/pi/USB-Stick/Backups/Borg_LOQ_home::PC-configbravesoftware-2025-01-17-043356', '/home/pi/.config/BraveSoftware']
17.01.25 04:33	vorta	SSH_ORIGINAL_COMMAND: None
17.01.25 04:33	vorta	2025-01-17 04:33:56,654 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
17.01.25 04:33	vorta	2025-01-17 04:33:56,654 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
17.01.25 04:33	vorta	2025-01-17 04:33:59,235 - vorta.notifications - DEBUG - notification not suppressed
17.01.25 04:33	vorta	2025-01-17 04:33:59,252 - vorta.scheduler - ERROR - Error during backup creation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant