Project

General

Profile

Support #5484

Setting up ssh, remote hg not found

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

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06.07.2018
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

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

History

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

#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 https://docs.rhodecode.com/RhodeCode-Enterprise/auth/ssh-connection.html

#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