> -----Original Message-----
> From: [email protected] On Behalf Of Tim Dunphy
> Sent: 24 February 2015 21:08
> 
> Hi all,
> 
>  I have a slight conundrum I was hoping someone could help me with. I'm a
> little new to trac administration. This is only the second time I've ever
> been asked to set one up.
> 
> Well I was able to get a basic trac setup working using mod_fastcgid. And
> when I went to the /trac url on the new server I've been able to see the trac
> user interface.
> 
> And that was with this directive set in my apache vhost:
> 
>   <Location "/trac">
>      SetEnv TRAC_ENV_DIR "/var/www/trac"
>    </Location>
> 
> But there are a number of SVN repositories that our developers need to be
> able to use with trac. So I rsync'ed the directory of SVN repos into the
> /var/www/trac folder.
> 
> Then I commented out the above apache Location directive, and replaced it
> with this:
> 
>   <Location "/trac">
>       SetEnv TRAC_ENV_PARENT_DIR "/var/www/trac"
>    </Location>
> 
> And when I realoaded the page, I saw a bunch of messages telling me to
> upgrade the SVN repos. Which I did, for each one. And now I can see links to
> each SVN repo on the webpage sitting at the /trac URL.
> 
> But now, when I go to the /trac URL I see a list of links to each SVN repos,
> but the usual trac web interface is not there. It's just a plain white page
> with links to each repo. And I am seeing the following errors on the page:
> 
> cgi-bin: Error
> (No Trac environment found at /var/www/trac/cgi-bin [Errno 2] No such file or
> directory: '/var/www/trac/cgi-bin/VERSION')

<snip error list>

> templates: Error
> (No Trac environment found at /var/www/trac/templates [Errno 2] No such file
> or directory: '/var/www/trac/templates/VERSION')
> 
> And if I go to this URL:
> 
> /trac/wiki
> 
> I'm seeing the error:
> Environment not found
> Moving apache back from TRAC_ENV_PARENT_DIR to TRAC_ENV_DIR does allow me to
> see the regular trac interace.
> So my question is, is there any way for me to restore trac functionality,
> with all the UI elements one would expect using the TRAC_ENV_PARENT_DIR?
> What's the easiest way to use a directory full of SVN repos as your trac
> directory? Trac should already work with SVN. I've already installed the trac
> python bindings. But I have yet to test this out.

You appear confused about how trac works with source code (SCC, not just 
subversion these days).

You must always start with a valid trac "environment" (the folder where trac 
stores all its working data).  If you want to link to SCC then trac needs 
appropriate bindings (which you say you have) and a pointer to the svn 
"repositories" (folders where svn stores its data).  Depending on your version 
of Trac you configure this in the trac.ini or via the Admin interface (and you 
may need to enable the right optional components).

You cannot just point the Trac app at a subversion folder and expect it to 
work, the data is just not the right stuff!

Now it depends on how you want to use trac with these repositories.  Recent 
versions of Trac support multiple repos from just one trac environment (this 
works well if your repos are closely related as one "project") but I tend to 
have a 1-trac-to-1-svn relationship.  This does make "overview" reporting more 
difficult though.

If you give us more info about your local setup (name and versions of OS, trac, 
subversion etc) and an idea of your use cases, we can give more specific 
advice, otherwise please read the documentation [1].

[1] http://trac.edgewall.org/wiki/TracRepositoryAdmin

~ Mark C

> Thanks for any advice or help you can give!
> Tim


-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to