Project

General

Profile

Actions

Support #5484

open

Setting up ssh, remote hg not found

Added by Nathan Warden over 6 years ago. Updated over 6 years 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

Actions #1

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.

Actions #2

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?

Actions #3

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

Actions #4

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.

Actions #5

Updated by Nathan Warden over 6 years ago

Please feel free to close this.

Actions

Also available in: Atom PDF