Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-11-2009, 07:49 PM   #1
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Having trouble getting trac working with git.

I'm running Debian (lenny) & installed trac & trac-git via apt-get.

I definitely have git.
I definitely have trac.

I create my repo (git init, git add ., git commit), then I create the trac env with trac-admin.

All seems to go well until the confirmation of the trac initenv comes back with the message:

Warning: couldn't index the repository.

This can happen for a variety of reasons: wrong repository type,
no appropriate third party library for this repository type,
no actual repository at the specified repository path...
If I go to the project's web page, I see this error message:
Warning: Can't synchronize with the repository (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.
I'm not sure why it says it can't find git. If I "su - www-data", I can run git on the command line, so I would guess git is in www-data's path. To be sure, I changed the trac.ini file to contain the full path to git.

Also, I've tried various incarnations of the path the repository during the initenv step of trac-admin. I've tried the repo, the repo's .git dir & the repo.git. None seem to make any difference.

edited to add: I'm running trac behind apache with mod_python. I'll happily include any apache config files it helps solve the problem.

edited again to add:
git version
trac-admin 0.11.1
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)


Last edited by BrianK; 02-11-2009 at 09:23 PM.
Old 02-23-2009, 02:10 PM   #2
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Forgot I posted this. If anyone else has the same problem, it was a combination of a permissions issue (all dirs in the repo have to be writable by your web user) & I did have to have the full path to git in the trac.ini file.
1 members found this post helpful.
Old 04-12-2010, 11:20 AM   #3
LQ Newbie
Registered: May 2005
Location: Bournemouth
Distribution: Fedora
Posts: 15

Rep: Reputation: 1
Just had the same issue.
Resolved by giving exact path to GIT in the trac.ini as well.

Make sure you follow all the details in the install section:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why is git scm named 'git'? hottdogg Linux - General 5 02-03-2009 08:25 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 11:36 PM
Trac myfoot Linux - Newbie 2 08-19-2008 12:01 AM
Help Configure Trac! ks.sundarrajan Linux - Newbie 1 03-27-2008 12:39 AM
Subversion and Trac stopped working after update to Debian Testing grugli Debian 3 06-05-2006 12:25 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration