Support #5484

Setting up ssh, remote hg not found

Added by Nathan Warden over 1 year ago. Updated over 1 year ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Commit Number:
Affected Version:


I'm currently working on getting Rhode Code CE setup with SSH and have followed the instructions on the following page:

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?



#1 Updated by Marcin Kuzminski [staff] over 1 year ago


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.

#2 Updated by Nathan Warden over 1 year 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?

#3 Updated by Marcin Kuzminski [staff] over 1 year 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

#4 Updated by Nathan Warden over 1 year 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.

#5 Updated by Nathan Warden over 1 year ago

Please feel free to close this.

Also available in: Atom PDF