adding a repository

13 views
Skip to first unread message

sweatje

unread,
Aug 23, 2012, 10:03:20 AM8/23/12
to mtr...@googlegroups.com
Hello,

Wanted to avoid the noob questions, but I seem to be stuck.  I successfully (as far as I know) updated to a recent version of mtrack last week and added a new project via web admin.  I am trying to add a new svn repository for this project and I get errors every time I try.  The web interface gives me an unable to create repo error and when I try using bin/modify.php as root it echos some html to the command line that says I need to authenticate before using the command.

Hopefully there is something blindingly obvious that I have overlooked you can point out.

Regards,
Jason

Wez Furlong

unread,
Aug 23, 2012, 12:11:52 PM8/23/12
to jason...@gmail.com, mtr...@googlegroups.com
Hi Jason,

I'd avoid using bin/modify.php; it shouldn't be needed any more with the newer UI.

Do you see any errors in your web server error log?

My gut is telling me that this is likely a permissions issue, and it might possibly be related to mixing the old way of adding repos via modify.php and the new way via the web UI... depending on how old your installation was prior to upgrading.

Take a look in your var dir and check the permissions; it should all be read+write to the web server user.

--Wez.

--
The mtrack software development tracker
To post to this group, send email to mtr...@googlegroups.com
To unsubscribe, send email to mtrack+un...@googlegroups.com
For more options: http://groups.google.com/group/mtrack?hl=en
#mtrack on the freenode IRC network

sweatje

unread,
Aug 23, 2012, 12:48:22 PM8/23/12
to mtr...@googlegroups.com, jason...@gmail.com
svnadmin: Can't open file '/root/.subversion/servers': Permission denied
looks suspicious :)

was also curious, there did not appear to be a location to specify the location of the svn repository in the web interface.  Is this supposed to be specified after adding it?

Regards,
Jason

sweatje

unread,
Aug 23, 2012, 1:37:52 PM8/23/12
to mtr...@googlegroups.com, jason...@gmail.com
Well, I am quite certain I have probably done it wrong.  I hacked in some "HOME=/var/www ... before all of the svn bin commands in my config.ini, then I move the directory it created in /var/mtrack/repos/Proj/reponame and replaced it with a symlink to the /var/svn/reponame directory and then I updated the repos table row for the repository and put the file system path to the svn repository in the repopath field.

After all this, the repository is now showing in the web interface, so hopefully I am off to the races.


Regards,
Jason

On Thursday, August 23, 2012 11:11:52 AM UTC-5, Wez Furlong wrote:

Wez Furlong

unread,
Aug 25, 2012, 1:58:42 PM8/25/12
to jason...@gmail.com, mtr...@googlegroups.com
On Aug 23, 2012, at 9:48 AM, sweatje wrote:

svnadmin: Can't open file '/root/.subversion/servers': Permission denied
looks suspicious :)

Ah, interesting.

was also curious, there did not appear to be a location to specify the location of the svn repository in the web interface.  Is this supposed to be specified after adding it?

When I moved things around to make it easy to create repos via the UI, I hid that option because it made it very easy to screw up and run into (ironically!) permission problems and issues with the commit hooks.

The repo creation flow runs svnadmin to set up the repo and attach the correct commit hooks.

From your follow on email it sounds like you replaced with with your own repo; was that a pre-existing repo that you wanted to import or just a fresh one you wanted to set up?

--Wez.

sweatje

unread,
Aug 25, 2012, 4:36:47 PM8/25/12
to mtr...@googlegroups.com
Hi Wez,

It was a pre-existing subversion repository I wanted to start using mtrack with.

I am thinking I may be approaching this wrong from the get go.  I have one project I aleady had setup wtih mtrack and working.  I wanted to make a second mtract instance with it's own website, but creating a separate /var/mtrack was not possible.  Is seems like to accomplish that I should have made a new /opt/mtrack and /var/mtrack directories for the separate project and would have achieved what I wanted.

Regards,
Jason

P.S. there is a typo on your mtrack wiki features page plannning (three n)
Reply all
Reply to author
Forward
0 new messages