borgbase / vorta

Desktop Backup Client for Borg Backup
https://vorta.borgbase.com
GNU General Public License v3.0
1.93k stars 127 forks source link

Cannot init new repository - ERROR - Connection closed by remote host. Is borg working on the server? #1997

Open chodaprog opened 2 months ago

chodaprog commented 2 months ago

Description

I’m trying to init a new repo, but keep getting this error « ERROR : Connection closed by remote host ». I checked your website : https://docs.borgbase.com/faq/#all-connections-to-a-borgbase-repo-fail-with-an-error-immediately

if I use ssh -v XXXXXX@XXXXXX.repo.borgbase.com, everything works like a charm, including passing the password prompt.

I’ve tried to regenerate many times the ssh key, or create new repos, without success. My SSH pub key has been added to the « SSH keys » tab in borgbase, and full access permission granted to this very ssh key.

I’m using vorta v0.91, on a MacOS 13.6.1.

ERRORS

In Vorta vorta

Steps to reproduce

  1. Clear all SSH keys and existing repositories on borgbase.com
  2. Generate new ssh key on my computer id_rsa_borg
  3. Add new SSH key to borgbase.com/ssh and paste the content of id_rsa_borg.pub to the field
  4. Create a new repo in borgbase.com
  5. Grant full access to the newly added SSH keyto this repo
  6. Copy the repo's address (format ssh://XXXXXX@XXXXXX.repo.borgbase.com/./repo)
  7. In Vorta, click on the "+" to add a new repo, paste the repo's address
  8. Paste a new password for the repo and stroke "Add"

Reproduction

OS

MacOS 13.6.1

Version of Vorta

0.91

What did you install Vorta with?

Distribution package

Version of Borg

1.2.7

Logs

2024-05-01 13:12:03,172 - vorta.keyring.abc - DEBUG - No module named 'secretstorage'
2024-05-01 13:12:03,172 - vorta.keyring.abc - DEBUG - Using VortaDarwinKeyring
2024-05-01 13:12:03,172 - vorta.borg.borg_job - DEBUG - Using VortaDarwinKeyring keyring to store passwords.
2024-05-01 13:12:03,174 - vorta.keyring.darwin - DEBUG - Retrieved password for repo ssh://XXXXXXXX@XXXXXXXX.repo.borgbase.com/./repo
2024-05-01 13:12:03,174 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2024-05-01 13:12:03,175 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2024-05-01 13:12:03,176 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2024-05-01 13:12:03,185 - vorta.borg.borg_job - INFO - Running command /Applications/Vorta.app/Contents/Resources/borg-dir/borg.exe init --info --log-json --encryption=repokey-blake2 ssh://XXXXXXXX@XXXXXXXX.repo.borgbase.com/./repo
2024-05-01 13:12:04,761 - vorta.borg.borg_job - WARNING - Remote: ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directory
2024-05-01 13:12:04,764 - vorta.borg.borg_job - ERROR - Connection closed by remote host. Is borg working on the server?
2024-05-01 13:12:04,920 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2024-05-01 13:12:04,923 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
spiccinini commented 1 month ago

I am having the same issue but with flatpak in linux. From the logs:

2024-05-20 21:20:40,480 - vorta.borg.borg_job - WARNING - Remote: ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
2024-05-20 21:20:40,486 - vorta.borg.borg_job - ERROR - Connection closed by remote host. Is borg working on the server?

Versions:

flatpak list
Name                               Application ID                                 Version           Branch               Installation
Vorta                              com.borgbase.Vorta                             v0.9.1            stable               user
Mesa                               org.freedesktop.Platform.GL.default            24.0.6            23.08                user
Mesa (Extra)                       org.freedesktop.Platform.GL.default            24.0.6            23.08-extra          user
Intel                              org.freedesktop.Platform.VAAPI.Intel                             23.08                user
Breeze GTK theme                   org.gtk.Gtk3theme.Breeze                       6.0.4             3.22                 user
KDE Application Platform           org.kde.Platform                                                 6.6                  user

The vorta installed from the archlinux packages (0.9.1-4) is working without errors with the same profile/server so it is an issue from the flatpack version in my case.