Bug 1199080 - Vorta fails to read borg archive and make new snapshot
Vorta fails to read borg archive and make new snapshot
Status: NEW
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: Other
Leap 15.4
x86-64 openSUSE Leap 15.4
: P5 - None : Normal (vote)
: ---
Assigned To: Antonio Larrosa
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-05-02 12:09 UTC by Cruiz
Modified: 2022-09-22 21:03 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
frederik+suse: needinfo?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cruiz 2022-05-02 12:09: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.
Comment 1 Cruiz 2022-05-07 08:47:38 UTC
Upstream Bugreport: https://github.com/borgbase/vorta/issues/1222
Comment 2 Iakov Karpov 2022-07-17 12:42:14 UTC
It works fine with vorta 0.8.7, but it's not available for Leap 15.4
Comment 3 Frederik Möllers 2022-09-01 23:09:35 UTC
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
    self.run()
  File "/usr/lib/python3.6/site-packages/vorta/borg/jobs_manager.py", line 57, in run
    job.run()
  File "/usr/lib/python3.6/site-packages/vorta/borg/borg_job.py", line 298, in run
    self.process_result(result)
  File "/usr/lib/python3.6/site-packages/vorta/borg/list_repo.py", line 52, in process_result
    'time': dt.fromisoformat(archive['time'])
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?
Comment 4 Frederik Möllers 2022-09-22 21:03:55 UTC
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