WebFaction
Community site: login faq

I have set up a private mercurial repository on my webfaction server and my own domain. I'm rather new to CVS and mercurial, but followed all steps in the webfaction manual to the letter. Everything seems fine, the repository is initialized and can be visited on my website using the username and password.

However, if I attempt to clone the repository either from TortoiseHg or directly from an SSH session, I get the following error:

warning: certificate for mer.cortime.dk can't be verified (Python too old)
http authorization required
realm: MyHgWebDir"

It asks for user name and password, which fails. What am I doing wrong?

Cheers!

asked 09 Jan '12, 06:13

Thøger Jensen
112
accept rate: 0%

edited 09 Jan '12, 06:14


Try changing your default python in your .bash_profile. You can create an alias as described here http://docs.webfaction.com/software/python.html?highlight=python%20alias#creating-a-python-alias

The system default is python 2.4. But we have 2.4 to 3.2 installed on the server so you could try using python 2.7 for example.

permanent link

answered 09 Jan '12, 15:09

bmeyer71 ♦♦
1.5k3613
accept rate: 33%

After tons of scouting I finally got it solved by combining the official tutorial with you advice + some from here: http://forum.webfaction.com/viewtopic.php?id=1469 On the server-side, it was about adding hg to the PATH´variable, via .bashrc and .bash_profile. On the TortoiseHg-side, I had to add the following to the mercurial.ini file: [ui] remotecmd = ~/bin/hg It works now. Perhaps the official doc should be updated to reflect the behavior of the newer mercurial releases? :-)

(09 Jan '12, 19:07) Thøger Jensen

Glad to hear you got it working. Thank you for posting the solution to the community. I have added a note for our documentation team to update the docs with this fix.

(09 Jan '12, 19:55) johns

I just found out this fix also applies to Kubuntu. Here, "[ui] remotecmd = ~/bin/hg" needs to be set the first time a clone is performed, and then added to the .hgrc file in the repo. Of course, a server-side alias could probably be set up just as easily in the bashrc file :-)

(11 Jan '12, 06:20) Thøger Jensen
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×27
×14
×1

question asked: 09 Jan '12, 06:13

question was seen: 4,564 times

last updated: 11 Jan '12, 06:20

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM