Redmine and mercurial-server

written by Domen Kožar, on Mar 11, 2010 5:19:00 PM.

I managed to put together Redmine as issuetracker/wiki/younameit and mercurial-server which manages multi-user access to mercurial repository through ssh.

Redmine installation: redmine:redmine /var/lib/redmine/
Mercurial-server installation: hg:hg /home/hg/
I have put redmine into group hg.

The issue

When you add repository lets say /home/hg/vim/ to redmine, it does not recognise it. Not until you ofcourse make repository read/writeable for hg group (chmod 760). Now comes punchline; $HOME directory must be executable in order for Redmine to read repository info. In my case, I had to do "chmod 710 /home/hg/" in order to redmine to work.

Note that if you change write permissions to home user in linux, pubic keys ssh authentication will not work anymore for security reasons.

Comments

  • Hi, could you please add a bit more details how you implemented this, and how it works? It seems you are using a local path /home/hg, so it's not clear to me why you need mercurial-server in the first place. Are you actually using this package: http://www.lshift.net/mercurial-server.html? Thanks, Roland

    Comment by Roland — Mar 18, 2010 3:14:54 PM | # - re

  • I see there is actually no complete tutorial through all process. When I come back from France, I will rewrite post as tutorial. Cheers!

    Comment by Domen Kožar — Mar 18, 2010 5:01:32 PM | # - re

  • To add redmine into hg group:
    gpasswd -a redmine hg
    (to take effect you should reboot)
    To change permissions on repository:
    chmod 0710 /home/hg/vim

    Comment by Vladimir Murzin — Jun 26, 2010 6:18:53 AM | # - re

  • No need to reboot — $ source /etc/profile

    Comment by Domen Kožar — Jun 26, 2010 2:59:21 PM | # - re

Leave a Reply