[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] netsync with unix-domain sockets
From: |
William Uther |
Subject: |
Re: [Monotone-devel] netsync with unix-domain sockets |
Date: |
Mon, 14 Jan 2008 13:12:08 +1100 |
On 14/01/2008, at 11:17 AM, Roland McGrath wrote:
Is there some reason you left the list out of your message?
Yeah - I found the same thing. The interesting part is that if you
send it through socat then it works... which is how the ssh+ux remote
scheme works - look in the default lua hooks for details on that.
I'd seen ssh+ux in there and that's what got me thinking about unix-
domain
sockets to begin with. How do you run a server for use with ssh+ux?
For me, ssh+ux://localhost/tmp/foobar with mtn serve --bind
local:///tmp/foobar
also just hangs.
Use the "--no-transport-auth" option on the server:
mtn serve --bind $HOME/mtnsock --no-transport-auth
(Hrm - I guess the other option would be to override the standard lua
hook to use transport auth with ssh+ux connections...)
But, if I leave that option off then I don't get a hang, I get an
error like this:
% mtn pull
mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to ssh+ux://localhost/Users/willu/mtnsock
mtn: finding items to synchronize:
mtn: error: protocol error while processing peer ssh+ux://localhost/
Users/willu/mtnsock: 'protocol version mismatch: wanted '6' got '237'
mtn: error: the remote side has a newer, incompatible version of
monotone'
and the '237' changes each time. The auth request is being
misinterpreted as the version information.
Cheers,
Will :-}
Re: [Monotone-devel] netsync with unix-domain sockets, Brian May, 2008/01/14