On Tue, Feb 24, 2015 at 1:08 PM, Tim Dunphy <[email protected]> wrote:
> 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')
>
> conf: Error
> (No Trac environment found at /var/www/trac/conf [Errno 2] No such file or
> directory: '/var/www/trac/conf/VERSION')
>
>
> db: Error
> (No Trac environment found at /var/www/trac/db [Errno 2] No such file or
> directory: '/var/www/trac/db/VERSION')
>
> deploy: Error
> (No Trac environment found at /var/www/trac/deploy [Errno 2] No such file
> or directory: '/var/www/trac/deploy/VERSION')
>
>
> htdocs: Error
> (No Trac environment found at /var/www/trac/htdocs [Errno 2] No such file
> or directory: '/var/www/trac/htdocs/VERSION')
>
> log: Error
> (No Trac environment found at /var/www/trac/log [Errno 2] No such file or
> directory: '/var/www/trac/log/VERSION')
>
> plugins: Error
> (No Trac environment found at /var/www/trac/plugins [Errno 2] No such file
> or directory: '/var/www/trac/plugins/VERSION')
>
> 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.
>
> Thanks for any advice or help you can give!
>
> Tim
>
>
You could try:
<Location "/trac">
SetEnv TRAC_ENV_PARENT_DIR "/var/www"
</Location>
However, I believe that /var/www will need to be a directory containing
only Trac environment directories. So you may need to move your Trac
environment to a location such as /var/www/trac/envs/<project-name>, in
which you you don't need to modify your directive that uses TRAC_ENV_PARENT_DIR
(however you will need to modify your directive that uses TRAC_ENV_DIR if
you switch back to that configuration).
--
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.