Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback when borg is not installed on remote machine #56

Closed
rumpelsepp opened this issue Jun 17, 2015 · 1 comment
Closed

Traceback when borg is not installed on remote machine #56

rumpelsepp opened this issue Jun 17, 2015 · 1 comment
Assignees

Comments

@rumpelsepp
Copy link
Contributor

I tried to init a borg repo via ssh on a remote machine. I forgot to install borg there; the command failed with a traceback. An error message would be prettier:

zsh:1: command not found: borg
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/borg/archiver.py", line 857, in main
    exit_code = archiver.run(sys.argv[1:])
  File "/usr/lib/python3.4/site-packages/borg/archiver.py", line 813, in run
    return args.func(args)
  File "/usr/lib/python3.4/site-packages/borg/archiver.py", line 62, in do_init
    repository = self.open_repository(args.repository, create=True, exclusive=True)
  File "/usr/lib/python3.4/site-packages/borg/archiver.py", line 35, in open_repository
    repository = RemoteRepository(location, create=create)
  File "/usr/lib/python3.4/site-packages/borg/remote.py", line 144, in __init__
    version = self.call('negotiate', 1)
  File "/usr/lib/python3.4/site-packages/borg/remote.py", line 153, in call
    for resp in self.call_many(cmd, [args], **kw):
  File "/usr/lib/python3.4/site-packages/borg/remote.py", line 203, in call_many
    raise ConnectionClosed()
borg.remote.ConnectionClosed
borg: Error: Connection closed by remote host
@ThomasWaldmann ThomasWaldmann self-assigned this Jun 18, 2015
@ThomasWaldmann
Copy link
Member

fixed by 2743ab1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants