Trac 500 errors

apps

#1

Hey, I followed natmaster’s guide but I think a few things have changed since he wrote it. For instance, in my install, a $HOME/packages/lib/python2.3 directory was never created. All I have is $HOME/packages/lib/python and it has no site-packages directory :-(.
(I changed the PYTHONPATH to reflect the directory change)

I also keep getting 500 errors. I tried running index.fcgi from a shell and I got this:

[laurel]$ exec ./index.fcgi
Status: 500
Content-Type: text/plain

Oops…

Trac detected an internal error:

unsubscriptable object
Traceback (most recent call last):
File “/home/comply/packages/lib/python/trac/web/fcgi_frontend.py”, line 40, in _handler
dispatch_request(req.path_info, req, env)
File “/home/comply/packages/lib/python/trac/web/main.py”, line 128, in dispatch_request
base_url = absolute_url(req)
File “/home/comply/packages/lib/python/trac/web/api.py”, line 265, in absolute_url
return urlparse.urlunparse((scheme, host, path, None, None, None))
File “/usr/lib/python2.3/urlparse.py”, line 125, in urlunparse
return urlunsplit((scheme, netloc, url, query, fragment))
File “/usr/lib/python2.3/urlparse.py”, line 128, in urlunsplit
if netloc or (scheme and scheme in uses_netloc and url[:2] != ‘//’):
TypeError: unsubscriptable object
Content-Type: text/plain

Oops…

Trac detected an internal error:

0

Traceback (most recent call last):
File “/home/comply/packages/share/trac/cgi-bin/trac.fcgi”, line 20, in ?
fcgi_frontend.run()
File “/home/comply/packages/lib/python/trac/web/fcgi_frontend.py”, line 28, in run
_fcgi.Server(_handler).run()
File “/home/comply/packages/lib/python/trac/web/_fcgi.py”, line 1049, in run
sock = self._setupSocket()
File “/home/comply/packages/lib/python/trac/web/_fcgi.py”, line 994, in _setupSocket
req.run()
File “/home/comply/packages/lib/python/trac/web/_fcgi.py”, line 580, in run
self._end(appStatus, protocolStatus)
File “/home/comply/packages/lib/python/trac/web/_fcgi.py”, line 606, in _end
sys.exit(appStatus)
SystemExit: 0

[laurel]$

Does anyone what’s going on?


#2

UPDATE: I had the trac index.fcgi in $MYSITE/trac/index.fcgi. I moved it to $MYSITE/index.fcgi. It worked. What the hell? Now how do I move it back to where I had it and still have it work?