1845: bazaar bzr+ssh is not working

bom****@bombc****** (Google Code) (Is this you? Claim this profile.)
July 24, 2011
What version are you running?
1.5

What's the URL of the page containing the problem?
/admin/db/scmtools/repository/add/

What steps will reproduce the problem?
1.I am trying to add a bzr+ssh repository. The first time I tried, it asked me to accept the key of the server; I'm using an address like bzr+ssh://localhost/bzr/project/trunk
2.Then it failed with "Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist."


What is the expected output? What do you see instead?
It should add the repository or do whatever it does.

What operating system are you using? What browser?
centos 5.5, Chrome

Please provide any additional information below.
2010-10-07 09:58:39,424 - DEBUG - BZRTool: Attempting ssh connection with host: localhost, username: user
2010-10-07 09:58:39,426 - DEBUG - starting thread (client mode): 0x800c97d0L
2010-10-07 09:58:39,433 - INFO - Connected (version 2.0, client OpenSSH_5.2)
2010-10-07 09:58:39,435 - DEBUG - kex algos:['diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] server encrypt:['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] client mac:['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', 'zlib@openssh.com'] server compress:['none', 'zlib@openssh.com'] client lang:[''] server lang:[''] kex follows?False
2010-10-07 09:58:39,435 - DEBUG - Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
2010-10-07 09:58:39,436 - DEBUG - using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
2010-10-07 09:58:39,556 - DEBUG - Switch to new keys ...
2010-10-07 09:58:39,594 - DEBUG - userauth is OK
2010-10-07 09:58:39,601 - INFO - Authentication (password) successful!
2010-10-07 09:58:39,698 - DEBUG - EOF in transport thread

is what I see in the debug logs.
david
#1 david
  • +Component-SCMTools
chipx86
#2 chipx86
Some work went into Bazaar and SSH. Can you test with 1.5.3?
  • +NeedInfo
  • +Component-SSH
#3 bom****@bombc****** (Google Code) (Is this you? Claim this profile.)
I will try it again and see what happens.
#4 bom****@bombc****** (Google Code) (Is this you? Claim this profile.)
Now I simply get:

[Errno 2] No such file or directory

But my path is correct:

bzr+ssh://localhost/bzr/project/trunk

and I can't find any documentation to indicate what I'm doing wrong. The debug logs contain nothing useful (looks the same as before). However, the connection closed thing no longer happens.
chipx86
#5 chipx86
That sounds like an error invoking rbssh. A path-related problem.

How did you perform the upgrade?

Can you run rbssh from a terminal?
#6 bom****@bombc****** (Google Code) (Is this you? Claim this profile.)
I can run rbssh - what would be the command line?

Oh, I see, it's in /usr/local/bin; maybe apache can't find it?

I upgraded by deleting the old installation and reinstalling.
david
#7 david
Please check your apache path configuration and make sure that /usr/local/bin is in the exec path.
david
#8 david
  • -NeedInfo
    +Incomplete