bzr+ssh to pre-1.6 server fails with AttributeError: 'NoneType' object has no attribute 'close' in close_ssh_proc
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Bazaar | Status tracked in Trunk | |||||
2.2 |
Fix Released
|
Critical
|
Unassigned | |||
Trunk |
Fix Released
|
High
|
Andrew Bennetts |
Bug Description
This happens with 2.2 and bzr.dev. 2.1.x and earlier are fine.
$ BZR_REMOTE_
andrew@localhost's password:
/home/andrew/
module = __import_
Unable to load plugin 'builddeb' from '/home/
[...more unloadable plugins elided, they aren't relevant...]
Server does not understand Bazaar network protocol 3, reconnecting. (Upgrade the server to avoid this.)
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
return self._operation
File "/home/
self.cleanups, self.func, *args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
b = Branch.
File "/home/
possible_
File "/home/
return BzrDir.
File "/home/
result = BzrDir.
File "/home/
return format.
File "/home/
return self._open(
File "/home/
return remote.
File "/home/
self.
File "/home/
self.
File "/home/
response = self._call(
File "/home/
return self._client.
File "/home/
result, protocol = self.call_
File "/home/
method, args, expect_
File "/home/
self.
File "/home/
self.
File "/home/
_close_
File "/home/
for func in [proc.stdin.close, proc.stdout.close, proc.wait]:
AttributeError: 'NoneType' object has no attribute 'close'
bzr 2.3.0dev1 on python 2.6.6 (Linux-
arguments: ['/home/
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.utf8'
plugins:
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
Transferred: 0kB (0.1kB/s r:0kB w:0kB)
HPSS calls: 1 (0 vfs) SmartSSHClientM
Related branches
- John A Meinel: Approve
-
Diff: 66 lines (+28/-6)2 files modifiedNEWS (+7/-2)
bzrlib/transport/ssh.py (+21/-4)
A workaround is to use sftp:// rather than bzr+ssh://. If that's not possible, you can install lp:~spiv/+junk/bzr_ssh_v2_hack as a bzr plugin (i.e. 'bzr branch lp:~spiv/+junk/bzr_ssh_v2_hack ~/.bazaar/ plugins/ bzr_ssh_ v2_hack) .