Trac stopped working after I added Test project

80 views
Skip to first unread message

Mohamed Lrhazi

unread,
Feb 26, 2012, 10:00:27 PM2/26/12
to trac-...@googlegroups.com
Hello,

I had a trac environment working fine with a single project called SecureSurveyTool
I added a new project I called "Test" to play around with Commit Ticket Updater... after I figured it out, I moved the Test project site directory out of my Trac parent dir.....

Now, whenever I go the projects homepage, where I expect to see a link to my only remaining SecureSurveyTool project, I get:

Internal Error

TracError: IOError: [Errno 2] No such file or directory: '/opt/trac/Test/VERSION'

I did try restarting apache many time...

If I restore the Test directory, then go to the home page, I get my normal trac site for Test project, instead of links to my two projects.

If I use 
I was using apache with mod_python, then switched to mod_wsgi, but it did not change anything to my problem.

am using Trac version: 0.12.3, on RedHat ent 5.7

My current apache config is: 

# cat /etc/httpd/conf.d/trac.conf
WSGIScriptAlias /projects /opt/trac/trac.wsgi

<Directory /opt/trac>
  WSGIApplicationGroup %{GLOBAL}
  Options Indexes FollowSymLinks
  Order allow,deny
  Allow from all
</Directory>

<LocationMatch "/projects/[^/]+/login">
 SSLRequireSSL
   AuthType Basic
   AuthName "Project Management"
   AuthUserFile /etc/webauth/.htpasswd
   AuthGroupFile /etc/webauth/.htgroup
#   Require valid-user
   Require group ARC
</LocationMatch>

# cat /opt/trac/trac.wsgi
import sys
sys.stdout = sys.stderr

import os
os.environ['TRAC_ENV_PARENT_DIR'] = '/opt/trac'
os.environ['PYTHON_EGG_CACHE'] = '/opt/trac/eggs'
import trac.web.main
application = trac.web.main.dispatch_request

Questions:
- Where does it find reference to my Test project, even after I remove the Test directory?
- Can I enable Trac debugging at the apache level, as opposed to per project level?

Thanks a lot,
Mohamed.




Mohamed Lrhazi

unread,
Feb 27, 2012, 10:35:35 AM2/27/12
to trac-...@googlegroups.com
I figured it out! Why o why does it remember Test project at all... I had it in my own shell environment!!!

# env|grep Test
REPOS=/opt/csvn/data/repositories/Test
TRAC_ENV=/opt/trac/Test
# unset TRAC_ENV
# unset REPOS
# /etc/init.d/httpd restart

Thanks,
Mohamed.
Reply all
Reply to author
Forward
0 new messages