[darcs-devel] [issue2051] ssh connection failure makes darcs say remote repo does not exist

Guillaume Hoffmann bugs at darcs.net
Wed Mar 16 14:32:45 UTC 2011


New submission from Guillaume Hoffmann <guillaumh at gmail.com>:

If the ssh key of the server or client machine has changed, any ssh
connection will fail, with a message like (if server key changes):

----8<----
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
----8<----


or (client key change):

----8<----
Permission denied (publickey).
----8<----

The problem is that darcs does not let the user know about this, it just
tries to get the remote _darcs/format (and fails), then the remote
_darcs/inventory (and fails). The user sees this:

----8<----
darcs get user at server:/srv/code/gtk2hs --debug
Starting work on get...
Disabling progress reports...
ssh user at server darcs transfer-mode --repodir /srv/code/gtk2hs/
Failed to start ssh connection:
    fd:9: hGetLine: end of file
Severing ssh failed connection to
user at server:/srv/code/gtk2hs/_darcs/prefs/motd
NOTE: the server may be running a version of darcs prior to 2.0.0.

Installing darcs 2 on the server will speed up ssh-based commands.

Disabling progress reports...
scp -q user at server:/srv/code/gtk2hs/_darcs/prefs/motd ./darcs1936 ; #
AsIs AsIs AsIs
Leaving progress reports off.
(scp) failed to fetch: user at server:/srv/code/gtk2hs/_darcs/prefs/motd
Beginning identifying repository user at server:/srv/code/gtk2hs
Disabling progress reports...
Disabling progress reports...
scp -q user at server:/srv/code/gtk2hs/_darcs/format ./darcs1936 ; # AsIs
AsIs AsIs
Leaving progress reports off.
(scp) failed to fetch: user at server:/srv/code/gtk2hs/_darcs/format
Disabling progress reports...
Disabling progress reports...
scp -q user at server:/srv/code/gtk2hs/_darcs/inventory ./darcs1936 ; #
AsIs AsIs AsIs
Leaving progress reports off.
(scp) failed to fetch: user at server:/srv/code/gtk2hs/_darcs/inventory
Done identifying repository user at server:/srv/code/gtk2hs

darcs failed:  Not a repository: user at server:/srv/code/gtk2hs ((scp)
failed to fetch: user at server:/srv/code/gtk2hs/_darcs/inventory)
andy at andy:/test/Download$ 
----8<----

Darcs should instead stop as soon as it "Failed to start ssh connection".

----------
messages: 13825
nosy: gh
priority: bug
status: unknown
title: ssh connection failure makes darcs say remote repo does not exist
topic: SSH

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2051>
__________________________________


More information about the darcs-devel mailing list