TurnKey Linux Virtual Appliance Library

Redmine Appliance and HG

I've started up the Redmine appliance, redmine loads up fine.

Now it's time to move my existing hg repository into the turnkey instance.  I don't see any way to create a new hg repo from the web interface, so I ssh in, cd to /srv/repos/hg, mkdir, and hg init MyProj.  At this point I can load http://192.168.150.176:8080/MyProj, so I'm almost in business.

C:\dev\MyProj>hg push
pushing to http://192.168.150.176:8080/MyProj/
searching for changes
remote: Permission denied: .hg/store/lock
 
I added
[web]
push_ssl=False
allow_push=*
 
to the .hg/hgrc file in the turnkey instance, still no dice.  Not sure where to go from here.

The first few google

The first few google hits http://www.selenic.com/pipermail/mercurial/2007-July/013607.html point towards the files being owned by root, and therefore can't be modified, but the helloworld repository that comes with turnkey is also owned by root (all files/folders).

Jeremy's picture

I'm not familiar with Redmine

But it may be worth checking group permissions/membership.

Webmin can be quite handy for playing around with permissions, fine tuning etc. Permissions can be checked and altered from the file manager, just click on the folder in the right pane and click the Info button.

Sorry, I'm not really sure

Sorry, I'm not really sure what I'm looking for, or what I should do when I find it.

I'm in Webmin, https://192.168.150.176:12321/ and I don't see any panes, or anything that has a folder icon.

Also this actually doesn't have anything to do with redmine, other than that I'm using the redmine appliance.

Jeremy's picture

Sorry if I confused you

I was suggesting that if you want to try changing the permissions I think that the Webmin UI is an easy way to do it (rather than the commandline). I wasn't suggesting that it had anything to do with Redmine specificly, just an easy way to check and change file/folder permissions.

In Webmin under Tools (top bar), you should find File Manager (in the drop down). If you browse to the folder(s) you are after, select it in the right pane and click the Info button you will see the permissions (and be able to adjust them if you wish).

It may not be all that helpful but I thought it may be possiblle that although the other folder is owned by root, it may have another group membership and/or some other permissions that allow read/write access? Or maybe theres something completely different going on...

Thanks, I'll try that when I

Thanks, I'll try that when I get to work tomorrow.  I guess my point is that the VM as-is doesn't "just work," which is the whole point of "turnkey."  Even just cloning and then trying to push to the helloworld repo doesn't work, so some extra configuration is necessary somewhere, but it's not obvious from any documentation I've seen on the site.

Jeremy's picture

Yes good point

I think you are right, ideally all of the TKL appliances should be "ready to go" (or as much as possible). If there are additional configuration required it should be documented IMO and reported as a bug if it is possible for it to be generically preconfigured.

OTOH there is still a possibility that there is something that we are unaware of and have missed. We really need someone else who has experience with this appliance to share their expertise. Also your investigations will help confirm that it is even a permissions issue (it could be something else - not sure what but it could be). Regardless, any idiosyncrasies or specific processes should be documented.

The thing to keep in mind though, is that TKL is run by 2 (very busy) devs and a few volunteers so things like this happen. Unlike a commercial application which you pay money for it to "just work" (which it may or may not do), FOSS (Free Open Source Software) projects/products such as TKL rely on the community to fill in the blanks. That way the quality and quantity of products and services is being constantly refined and improved.

Jeremy's picture

Have a look at this thread

Have a look at this thread over here and see if it helps you out at all. It is specifically about SVN in Redmine but perhaps it is relevant? Hopefully its of some use?

Redmine/RCS and HG

Works for me:

https://<appliance>:12320/

 

cd /srv/repos/hg
./mkrepo <repository name>
 
mkrepo source:
 
#! /bin/sh
mkdir $1
(cd $1;hg init)
chown www-data $1/.hg/store $1/.hg
cp helloworld/.hg/hgrc $1/.hg
vi $1/.hg/hgrc
 
Totally insecure, but if you're on a NAT or inside a company and you're secure and you trust everyone that can get access to the box, you're golden.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)