muxserver_listen bind(): No such file or directory

Bug #288260 reported by Joey Stanford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned
Launchpad itself
New
Undecided
Unassigned

Bug Description

joey@c14n:~/.bazaar/plugins$ bzr branch -Dhpss lp:bzr-upload
muxserver_listen bind(): No such file or directory
bzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required)
HPSS calls: 1 <bzrlib.smart.medium.SmartSSHClientMedium object at 0x1cf6690>

0.049 encoding stdout as sys.stdout encoding 'UTF-8'
0.050 bzr arguments: [u'branch', u'-Dhpss', u'lp:bzr-upload']
0.050 looking for plugins in /home/joey/.bazaar/plugins
0.139 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.139 Plugin name __init__ already loaded
0.140 Plugin name __init__ already loaded
0.140 Plugin name stats already loaded
0.179 encoding stdout as sys.stdout encoding 'UTF-8'
0.408 hpss: Built a new medium: SmartSSHClientMedium
0.417 hpss call: 'BzrDir.open', '~bzr-upload-devs/bzr-upload/trunk/'
0.417 (to bzr+ssh://bazaar.launchpad.net/%7Ebzr-upload-devs/bzr-upload/trunk/)
0.491 ssh implementation is OpenSSH
1.345 decoder state: buf[:10]='', state_accept=_state_accept_expecting_protocol_version
1.356 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 849, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 795, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 495, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 953, in run
    from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 888, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 766, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 808, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1766, in open
    return self._open(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 2642, in _open
    return remote.RemoteBzrDir(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 70, in __init__
    response = self._client.call('BzrDir.open', path)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 122, in call
    result, protocol = self.call_expecting_body(method, *args)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 135, in call_expecting_body
    method, args, expect_response_body=True)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 83, in _call_and_read_response
    expect_body=expect_response_body)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 258, in read_response_tuple
    self._wait_for_response_args()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 224, in _wait_for_response_args
    self._read_more()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/message.py", line 247, in _read_more
    "(and try -Dhpss if further diagnosis is required)")
ConnectionReset: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required)

1.357 return code 3
[31707] 2008-10-23 18:34:44.551 INFO: HPSS calls: 1 <bzrlib.smart.medium.SmartSSHClientMedium object at 0x1cf6690>

Tags: lp-code
Revision history for this message
Joey Stanford (joey) wrote :

joey@c14n:~$ bzr version
Bazaar (bzr) 1.9dev
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/joey/.bazaar
  Bazaar log file: /home/joey/.bzr.log

Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Revision history for this message
John A Meinel (jameinel) wrote :

This looks more like a bug on the Launchpad side.

Specifically it looks like the ssh/sftp server is failing with the muxserver_listen bind(): No such file or directory error, and the local client is just dying with a ConnectionClosed.

Off-hand I would say that 'bzr-upload' either hasn't defined a development focus, or has it pointing at something non-existant. Not really sure.

Revision history for this message
Andrew Bennetts (spiv) wrote :

My guess: the OpenSSH client is trying to use a shared SSH connection (ControlMaster?) but the shared connection isn't there. A quick google for muxserver_listen suggests that's likely, it's part of OpenSSH's "ssh session multiplexing support". You can probably confirm this by trying "sftp bazaar.launchpad.net".

So the real bug here is that OpenSSH's error messages suck. :)

There's a minor bzr bug here too, which is that our error message sucks a bit too: that's already reported as bug 238776.

Revision history for this message
Joey Stanford (joey) wrote : Re: [Bug 288260] Re: muxserver_listen bind(): No such file or directory

joey@c14n:~$ sftp bazaar.launchpad.net
Connecting to bazaar.launchpad.net...
muxserver_listen bind(): No such file or directory
Couldn't read packet: Connection reset by peer

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 288260] Re: muxserver_listen bind(): No such file or directory

On Fri, 2008-10-24 at 06:56 +0000, Joey Stanford wrote:
> joey@c14n:~$ sftp bazaar.launchpad.net
> Connecting to bazaar.launchpad.net...
> muxserver_listen bind(): No such file or directory
> Couldn't read packet: Connection reset by peer

check for stale master control sessions in ~/.ssh/, and if you don't
have auto enabled you might want to start one :)

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Joey Stanford (joey) wrote : Re: [Bug 288260] Re: muxserver_listen bind(): No such file or directory

aha!

So I had auto enabled but the control session was in /home/joey/tmp.
I had accidentally deleted the tmp dir yesterday.

J

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 288260] Re: muxserver_listen bind(): No such file or directory

On Fri, 2008-10-24 at 08:17 +0000, Joey Stanford wrote:
> aha!
>
> So I had auto enabled but the control session was in /home/joey/tmp.
> I had accidentally deleted the tmp dir yesterday.

Ta-da!

Should we close the bug?

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Joey Stanford (joey) wrote : Re: [Bug 288260] Re: muxserver_listen bind(): No such file or directory

Is there a way to provide a better bzr message back so when a user
like me encounters this there is some guidance as to where to look?

Revision history for this message
Andrew Bennetts (spiv) wrote :

The best bzr can do is give a slightly clearer description of its error. bzr can't realistically do anything about the way OpenSSH reports this failure as "muxserver_listen bind(): No such file or directory".

There's already a bug for improving bzr's error message in this case (bug 238776). If that gets fixed in the way I've proposed in <https://bugs.edge.launchpad.net/bzr/+bug/238776/comments/2> then you will see something like this instead:

$ bzr branch lp:bzr-upload
muxserver_listen bind(): No such file or directory
bzr: ERROR: Failed to establish SSH connection to <email address hidden>

Possibly that last line could also say "(using /usr/bin/ssh)", if you think that would help?

I think it is worth filing a bug on OpenSSH. I'm sure its error message could be improved, and it's really the right place to do it — the tool establishing the SSH connection is the only one with enough information to explain why establishing the connection failed.

Revision history for this message
Joey Stanford (joey) wrote :

The resolution to
https://bugs.edge.launchpad.net/bzr/+bug/238776/comments/2 will meet
my needs. If the msg was displayed then I would have been able to
recognize it was something to do with ssh and continue
troubleshooting.

Revision history for this message
Andrew Bennetts (spiv) wrote :

Ok. I'll mark this as a duplicate of bug 238776 then.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.