Bugzilla – Bug 1199080
Vorta fails to read borg archive and make new snapshot
Last modified: 2022-09-22 21:03:55 UTC
Vorta can be connected to Borg Repo and the backup runs through seemingly normally, but is not completed.
The list of archives is not displayed. Refresh runs dead.
On the command line with borg there are no problems. So the problem is with vorta.
Upstream Bugreport: https://github.com/borgbase/vorta/issues/1222
It works fine with vorta 0.8.7, but it's not available for Leap 15.4
Not sure if this is the same problem, but I just ran vorta on Leap 15.4 and had this output in the console:
2022-09-02 00:53:27,743 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg list --info --log-json --json [my borg repo]
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
File "/usr/lib/python3.6/site-packages/vorta/borg/jobs_manager.py", line 57, in run
File "/usr/lib/python3.6/site-packages/vorta/borg/borg_job.py", line 298, in run
File "/usr/lib/python3.6/site-packages/vorta/borg/list_repo.py", line 52, in process_result
AttributeError: type object 'datetime.datetime' has no attribute 'fromisoformat'
And indeed, datetime.datetime.fromisoformat is new in Python 3.7: https://docs.python.org/3.7/library/datetime.html#datetime.datetime.fromisoformat
Leap 15.4 uses Python 3.6 as the default Python (3) runtime, so this seems to be a dependency/packaging error.
I guess the fix would be to make vorta depend on python39 (the next higher Python version in the main repos) and make sure it is run using *that* version instead of the default python3 alternative? Or, if it is easier and fixes the issue, we could update vorta to 0.8.7. I haven't tried that yet.
Any second opinion on this?
A workaround is to install Python 3.9 (Package "python39") and run vorta with this version:
PYTHONPATH=/usr/lib/python3.6/site-packages/ python3.9 /usr/bin/vorta