vorta icon indicating copy to clipboard operation
vorta copied to clipboard

Linking Repository (again) shows invalid information

Open 21Kingshill opened this issue 3 years ago • 12 comments

Description

I assume a bug here.

I linked an existing Borg backup in Vorta.

  • The Archive list is shown with empty size information (which is a known behaviour)

  • Refreshing the oldest entries (2nd of Feb) returns for all entries on this day a size of 4kB _1

  • looking into the target directory I can see all entries from that day with the expected size (a few GB):

_2

  • comparing any 4k entry with another 4k entry doesn't show any content: _3 --> Log entry

However, comparing any 4k entry with a newer archive entry works as expected.

Reproduction

  • [X] I tried to reproduce the issue.
  • [X] I was able to reproduce the issue.

OS

macOS Ventura 13.3

Version of Vorta

0.8.10

What did you install Vorta with?

Binary

Version of Borg

1.2.3

Logs

2023-02-23 22:00:55,635 - vorta.i18n - DEBUG - Loading translation succeeded for ['de-DE', 'en-DE'].
2023-02-23 22:00:55,638 - vorta.scheduler - WARNING - Failed to connect to DBUS interface to detect sleep/resume events
2023-02-23 22:00:55,707 - root - DEBUG - Expected error parsing file in .ssh: known_hosts.old (You can safely ignore this)
Traceback (most recent call last):
  File "utils.py", line 195, in get_private_keys
  File "paramiko/pkey.py", line 232, in from_private_key_file
  File "paramiko/rsakey.py", line 63, in __init__
  File "paramiko/rsakey.py", line 186, in _from_private_key_file
  File "paramiko/pkey.py", line 305, in _read_private_key_file
  File "paramiko/pkey.py", line 323, in _read_private_key
paramiko.ssh_exception.SSHException: not a valid RSA private key file
2023-02-23 22:00:55,707 - root - DEBUG - Expected error parsing file in .ssh: known_hosts.old (You can safely ignore this)
Traceback (most recent call last):
  File "utils.py", line 195, in get_private_keys
  File "paramiko/pkey.py", line 232, in from_private_key_file
  File "paramiko/ecdsakey.py", line 126, in __init__
  File "paramiko/ecdsakey.py", line 277, in _from_private_key_file
  File "paramiko/pkey.py", line 305, in _read_private_key_file
  File "paramiko/pkey.py", line 323, in _read_private_key
paramiko.ssh_exception.SSHException: not a valid EC private key file
2023-02-23 22:00:55,708 - root - DEBUG - Expected error parsing file in .ssh: known_hosts.old (You can safely ignore this)
Traceback (most recent call last):
  File "utils.py", line 195, in get_private_keys
  File "paramiko/pkey.py", line 232, in from_private_key_file
  File "paramiko/ed25519key.py", line 58, in __init__
  File "paramiko/pkey.py", line 323, in _read_private_key
paramiko.ssh_exception.SSHException: not a valid OPENSSH private key file
2023-02-23 22:00:55,708 - root - DEBUG - Expected error parsing file in .ssh: known_hosts (You can safely ignore this)
Traceback (most recent call last):
  File "utils.py", line 195, in get_private_keys
  File "paramiko/pkey.py", line 232, in from_private_key_file
  File "paramiko/rsakey.py", line 63, in __init__
  File "paramiko/rsakey.py", line 186, in _from_private_key_file
  File "paramiko/pkey.py", line 305, in _read_private_key_file
  File "paramiko/pkey.py", line 323, in _read_private_key
paramiko.ssh_exception.SSHException: not a valid RSA private key file
2023-02-23 22:00:55,708 - root - DEBUG - Expected error parsing file in .ssh: known_hosts (You can safely ignore this)
Traceback (most recent call last):
  File "utils.py", line 195, in get_private_keys
  File "paramiko/pkey.py", line 232, in from_private_key_file
  File "paramiko/ecdsakey.py", line 126, in __init__
  File "paramiko/ecdsakey.py", line 277, in _from_private_key_file
  File "paramiko/pkey.py", line 305, in _read_private_key_file
  File "paramiko/pkey.py", line 323, in _read_private_key
paramiko.ssh_exception.SSHException: not a valid EC private key file
2023-02-23 22:00:55,709 - root - DEBUG - Expected error parsing file in .ssh: known_hosts (You can safely ignore this)
Traceback (most recent call last):
  File "utils.py", line 195, in get_private_keys
  File "paramiko/pkey.py", line 232, in from_private_key_file
  File "paramiko/ed25519key.py", line 58, in __init__
  File "paramiko/pkey.py", line 323, in _read_private_key
paramiko.ssh_exception.SSHException: not a valid OPENSSH private key file
2023-02-23 22:00:55,752 - vorta.views.source_tab - DEBUG - Added item number 0 from 1
2023-02-23 22:00:55,907 - root - INFO - Using DarwinNetworkStatus NetworkStatusMonitor implementation.
2023-02-23 22:00:56,017 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2023-02-23 22:00:56,017 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2023-02-23 22:00:56,018 - vorta.borg.borg_job - INFO - Running command /Applications/Vorta.app/Contents/Resources/borg-dir/borg.exe --version
2023-02-23 22:00:56,659 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2023-02-23 22:00:56,659 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2023-02-23 22:00:56,666 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2023-02-23 22:00:56,667 - vorta.scheduler - DEBUG - Scheduler for profile 1 is disabled.
2023-02-23 22:00:56,668 - vorta.scheduler - INFO - Setting timer for profile 2
2023-02-23 22:00:56,669 - vorta.scheduler - DEBUG - Scheduling next run for 2023-02-23 23:49:02.013428
2023-02-23 22:01:07,374 - vorta.keyring.abc - DEBUG - No module named 'secretstorage'
2023-02-23 22:01:07,374 - vorta.keyring.abc - DEBUG - Using VortaDarwinKeyring
2023-02-23 22:01:07,374 - vorta.borg.borg_job - DEBUG - Using VortaDarwinKeyring keyring to store passwords.
2023-02-23 22:01:07,402 - vorta.keyring.darwin - DEBUG - Retrieved password for repo /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene
2023-02-23 22:01:07,409 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2023-02-23 22:01:07,410 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2023-02-23 22:01:07,411 - vorta.borg.borg_job - INFO - Running command /Applications/Vorta.app/Contents/Resources/borg-dir/borg.exe info --log-json --json /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene::Toms-MBP.local-2023-02-02-091949
2023-02-23 22:01:15,934 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2023-02-23 22:01:15,935 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2023-02-23 22:01:15,936 - vorta.scheduler - INFO - Setting timer for profile 2
2023-02-23 22:01:15,937 - vorta.scheduler - DEBUG - Scheduling next run for 2023-02-23 23:49:02.013428
2023-02-23 22:01:25,453 - vorta.keyring.abc - DEBUG - No module named 'secretstorage'
2023-02-23 22:01:25,453 - vorta.keyring.abc - DEBUG - Using VortaDarwinKeyring
2023-02-23 22:01:25,454 - vorta.borg.borg_job - DEBUG - Using VortaDarwinKeyring keyring to store passwords.
2023-02-23 22:01:25,460 - vorta.keyring.darwin - DEBUG - Retrieved password for repo /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene
2023-02-23 22:01:25,483 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2023-02-23 22:01:25,484 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2023-02-23 22:01:25,487 - vorta.borg.borg_job - INFO - Running command /Applications/Vorta.app/Contents/Resources/borg-dir/borg.exe diff --info --log-json --json-lines /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene::Toms-MBP.local-2023-02-02-091949 Toms-MBP.local-2023-02-02-143015
2023-02-23 22:01:35,414 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2023-02-23 22:01:35,414 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2023-02-23 22:01:35,415 - vorta.scheduler - INFO - Setting timer for profile 2
2023-02-23 22:01:35,415 - vorta.scheduler - DEBUG - Scheduling next run for 2023-02-23 23:49:02.013428

21Kingshill avatar Feb 23 '23 21:02 21Kingshill

Thank you for you bug report! This is an odd behaviour indeed. Regarding your statement about the target directory, I don't think that borg creates a new file or a new folder for each archive. Can you provide the output of

borg info --log-json --json /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene::Toms-MBP.local-2023-02-02-091949

,

borg info --log-json --json /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene::Toms-MBP.local-2023-02-02-143015

and

borg diff --info --log-json --json-lines /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene::Toms-MBP.local-2023-02-02-091949 Toms-MBP.local-2023-02-02-143015

?

real-yfprojects avatar Feb 25 '23 18:02 real-yfprojects

Thanks for your reply.

I'm not sure, what exactly you mean by "provide the output of" that files.

  • The second screenshot provided above, shows the Finder window
  • Files are stored on GoogleDrive (I do not use the google app, but CloudMounter to mount google as a share
  • I'm not 100% able to identify the corresponding file from the log entry (e.g. 09:19:49 could be more than one file)
  • Due to the sensitive information within the files I can't send them around. Maybe I need to reproduce the issue by using any other random files.

21Kingshill avatar Feb 25 '23 21:02 21Kingshill

I'm not sure, what exactly you mean by "provide the output of" that files.

I am interested in the out put of these commands when being run in a cmd with borg on the PATH. This will help identify whether the issue is rooted in the borg backed or in vorta itself.

real-yfprojects avatar Feb 25 '23 21:02 real-yfprojects

Stupid me. I didn't look closely and thought that was a log entry. However, I'm not able to run that in the terminal since I can't find "borg". There is "Varta.app" available only. Did I point to the wrong installation, maybe?

21Kingshill avatar Feb 26 '23 08:02 21Kingshill

There is "Varta.app" available only. Did I point to the wrong installation, maybe?

I am not a MacOS user and I don't know how MacOS application bundles work exactly. But I think they can be treated like directories. Try running /Applications/Vorta.app/Contents/Resources/borg-dir/borg.exe.

real-yfprojects avatar Feb 26 '23 13:02 real-yfprojects

There is a borg.exe in the container as you mentioned. But I'm not aware of a way executing an *.exe file under MacOS (I tried, but MacOS tells me there is noch such command)

In case searching for the root cause is too complex, I might close the issue. Please advise.

21Kingshill avatar Feb 26 '23 15:02 21Kingshill

I think vorta just runs it borg any other executable. I will refer you to @m3nu. He is the MacOS guy.

real-yfprojects avatar Feb 27 '23 20:02 real-yfprojects

borg.exe is just due to historic reasons. It's built over at the Borg project, not here. No relation to Windows.

m3nu avatar Feb 27 '23 21:02 m3nu

borg.exe is just due to historic reasons. It's built over at the Borg project, not here. No relation to Windows.

Thanks for clarification. What I tried to say is that I'm not able to get the information that real-yfprojects suggested: borg info --log-json --json /Users/tom/.CMVolumes/CM_GoogleDrive/Vorta_Eigene::Toms-MBP.local-2023-02-02-091949

Pointing to the path of borg.exe (/Applications/Vorta.app/Contents/Resources/borg-dir/borg.exe) returns error "no such command"

21Kingshill avatar Feb 28 '23 07:02 21Kingshill

Maybe you didn't install Vorta in this path? Works fine here:

 $ brew install vorta
...
==> Installing Cask vorta
==> Moving App 'Vorta.app' to '/Applications/Vorta.app'
🍺  vorta was successfully installed!

$ /Applications/Vorta.app/Contents/Resources/borg-dir/borg.exe --version
borg.exe 1.2.3

m3nu avatar Feb 28 '23 08:02 m3nu

I used the DMG file from here: https://github.com/borgbase/vorta/releases/download/v0.8.10/vorta-0.8.10.dmg, no brew.

The VORTA app is in the application folder: image

21Kingshill avatar Feb 28 '23 20:02 21Kingshill

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 01 '23 16:05 stale[bot]