Skip to content

If .ssh/config present backups don't start #732

@cerebrux

Description

@cerebrux

Describe the bug
The Vorta Backup does not work if there is a config file with settings in .ssh/

To Reproduce
Steps to reproduce the behavior:

  1. Go to Vorta
  2. Click on Backup now
  3. See error : ERROR: Connection closed by remote host. Is borg working on server ?

Then to workaround it do:

  1. Move or remove your config eg. mv .ssh/config .ssh/myconfig-backup
  2. Go to Vorta
  3. Click on Backup now
  4. Backups now working

Desktop (please complete the following information):

  • OS: Ubuntu 20.10
  • Vorta version: v0.7.1
  • Borg version: 1.1.13
  • Installed from: Ubuntu Software (flatpak-system)

Additional context
When the error occurs, logs are displaying :

vorta.borg.borg_thread - INFO - Running command /app/bin/borg create --list --progress --info --log-json --json --filter=AM -C lz4  /home/user/yolo
vorta.borg.borg_thread - WARNING - Remote: Bad owner or permissions on /home/user/.ssh/config
vorta.borg.borg_thread - ERROR - Connection closed by remote host. Is borg working on the server?

When I apply the workaround, logs are displaying:

vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords.
asyncio - DEBUG - Using selector: EpollSelector
root - DEBUG - Found 1 passwords matching repo URL.
vorta.borg.borg_thread - INFO - Running command /app/bin/borg create --list --progress --info --log-json --json --filter=AM -C lz4 [....] /home/user/yolo
vorta.borg.borg_thread - INFO - Creating archive at "[....]"
vorta.borg.borg_thread - INFO - Remote: Storage quota [....]

I'm not sure, but it seems related to #526

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:lowNice to have feature, minor improvement to functionality or usabilitytype:enhancementImprovement of an existing function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions