Support #5484
openSetting up ssh, remote hg not found
0%
Description
I'm currently working on getting Rhode Code CE setup with SSH and have followed the instructions on the following page: https://docs.rhodecode.com/RhodeCode-Enterprise/auth/ssh-connection.html
When I try and run "hg push" from the client I get the following error:
remote: bash: hg: command not found
abort: no suitable response from remote hg!
Installing mercurial on the machine removes this error, but then doesn't know where the repo is located on the server. Everything seems to work great over http. Did I miss a step, is there something missing from the docs, or is this a bug?
Thanks!
Nathan
Updated by Marcin Kuzminski [CTO] over 6 years ago
Hi,
Yes there seems to be a problem with setting binaries that are shipped with vcsserver.
Please edit vcsserver.ini and make sure this is set inside:
core.binary_dir = /home/YOUR_USER/.rccontrol/vcsserver-1/profile/bin
But this is odd, becuase the enable-module should have set it.
Updated by Nathan Warden over 6 years ago
Thanks for the quick response!
Unfortunately this doesn't seem to be the issue as this setting is correct. Just to be sure I copied the path from the vcsserver.ini and ran:
/home/rcuser/.rccontrol/vcsserver-1/profile/bin/hg --version
and got the appropriate version info.
Is it possible the setting isn't getting applied somehow?
Updated by Marcin Kuzminski [CTO] over 6 years ago
Hmm, something is odd then.
1) maybe there are some hooks on this repository?
2) did you tried to enable debug as in note after pt4 in https://docs.rhodecode.com/RhodeCode-Enterprise/auth/ssh-connection.html
Updated by Nathan Warden over 6 years ago
Thanks for your help Marcin. It turns out it was something dumb on my end. I had made it so I could ssh into the server as the my Rhode Code user (rcuser in my case). It seems this was conflicting with Rhode Code.