Comment #2 on issue 2108 by ews...@gmail.com: Cannot run rbssh: No such file or directory; /usr/local/bin not in env path
http://code.google.com/p/reviewboard/issues/detail?id=2108

I had a similar problem with reviewboard errors on adding a private GIT repository. I'd see rbssh errors in httpd's error_log such as:


[Mon Aug 06 15:13:20 2012] [error] ERROR:root:Git: Failed to find valid repository ssh://g...@github.com/<ourname>/Common.git: Traceback (most recent call last):
[Mon Aug 06 15:13:20 2012] [error]   File "/usr/bin/rbssh", line 5, in ?
[Mon Aug 06 15:13:20 2012] [error] from pkg_resources import load_entry_point [Mon Aug 06 15:13:20 2012] [error] File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/pkg_resources.py", line 2603, in ?
[Mon Aug 06 15:13:20 2012] [error]     working_set.require(__requires__)
[Mon Aug 06 15:13:20 2012] [error] File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/pkg_resources.py", line 666, in require [Mon Aug 06 15:13:20 2012] [error] needed = self.resolve(parse_requirements(requirements)) [Mon Aug 06 15:13:20 2012] [error] File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/pkg_resources.py", line 565, in resolve [Mon Aug 06 15:13:20 2012] [error] raise DistributionNotFound(req) # XXX put more info here [Mon Aug 06 15:13:20 2012] [error] pkg_resources.DistributionNotFound: Django==1.3.2 [Mon Aug 06 15:13:20 2012] [error] fatal: The remote end hung up unexpectedly
[Mon Aug 06 15:13:20 2012] [error]

at first we thought it was an SSH problem, but a peek at the above error log and the above post reminded me that we have a Python 2.4.3 install on this CENTOS 5 machine, and a recently installed Python 2.7 install after which I installed setuptools, easy_install Reviewboard, etc.... And thus there was an rbssh at /usr/bin/rbssh which was invoking Python 2.4 (hence the python 2.4 calls, should have been 2.7) and another at /usr/local/bin/rbssh which was invoking Python 2.7. So I linked the /usr/local/bin/rbssh to /usr/bin/rbssh (first mv /usr/bin/rbssh to /usr/bin/rbssh.py2.4), and git repository was now being added no problem.

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to