Check your permissions, I had the same issue and had to do chmod 0775 on
that file. Also make sure the owner is the www-data user or whatever you
run apache under.

Christian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 9:27 AM
To: [email protected]
Subject: [Trac] install problems

Hi,

I have followed the instructions on the "TracOnFedoraCore" page, but I
get errors when I try to get it up and running.  When I test it with the
stand alone server (tracd) it works nicely.  However, when I try to
access it through Apache, I get the following error:

Oops...

Trac detected an internal error:

[Errno 2] No such file or directory: '/srv/trac/VERSION'

Traceback (most recent call last):
  File "/var/www/cgi-bin/trac.cgi", line 20, in ?
    cgi_frontend.run()
  File "/usr/lib/python2.4/site-packages/trac/web/cgi_frontend.py", line
123, in run
    env = get_environment(req, os.environ, threaded=False)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 335, in
get_environment
    return _open_environment(env_path, threaded)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 44, in
_open_environment
    return open_environment(env_path)
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 374, in
open_environment
    env = Environment(env_path)
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 81, in
__init__
    self.verify()
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 129, in
verify
    fd = open(os.path.join(self.path, 'VERSION'), 'r')
IOError: [Errno 2] No such file or directory: '/srv/trac/VERSION'


I installed using yum, so all dependencies and everything should be in
place.  I have added the line to load the mod_python module in the
Apache configuration file (httpd.conf)

My trac.conf file looks like this:

<LocationMatch /cgi-bin/trac\.f?cgi>
    SetEnv TRAC_ENV /srv/trac
</LocationMatch>
<IfModule mod_python.c>
<Location /434CanadaInc>
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /srv/trac
    PythonOption TracUriRoot /434CanadaInc
    PythonPath "sys.path + ['/opt/trac']"
</Location>
</IfModule>


Any help here would be greatly appreciated.

Thanks.
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to