[Trac] problems running Trac on Suse (TypeError)
Jonas Bähr
jonas.baehr at web.de
Mon Aug 29 14:09:48 CDT 2005
Hi,
I've got a problem running Trac-0.8.4 on a Suse-9.1 server.
This is the Server-config:
Alias /trac "/home/httpd/vhosts/icaptain.org/trac/htdocs/"
<Location "/cgi-bin/trac.cgi">
SetEnv TRAC_ENV "/home/httpd/vhosts/icaptain.org/var/tracenv"
</Location>
trac-admin works like it should but when I try to access /cgi-bin/trac.cgi on
the webserver I get this error: 500:
================
Server error!
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: trac.cgi
If you think this is a server error, please contact the webmaster.
Error 500
icaptain.org
Mon Aug 29 19:32:23 2005
Apache/2.0.49 (Linux/SuSE)
================
Since Apache's error-log doesn't show anything I tryed to run the script via
commandline to get some more information (after exporting TRAC_ENV):
==================================
$> python ../trac/cgi-bin/trac.cgi
Status: 500
Content-Type: text/plain
Oops...
Trac detected an internal error:
unsupported operand type(s) for +: 'NoneType' and 'str'
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/core.py", line 531, in cgi_start
real_cgi_start()
File "/usr/lib/python2.3/site-packages/trac/core.py", line 526, in
real_cgi_start
dispatch_request(path_info, args, req, env)
File "/usr/lib/python2.3/site-packages/trac/core.py", line 441, in
dispatch_request
module.run()
File "/usr/lib/python2.3/site-packages/trac/Module.py", line 36, in run
core.populate_hdf(self.req.hdf, self.env, self.db, self.req)
File "/usr/lib/python2.3/site-packages/trac/core.py", line 220, in
populate_hdf
hdf.setValue('trac.href.wiki', env.href.wiki())
File "/usr/lib/python2.3/site-packages/trac/Href.py", line 148, in wiki
return href_join(self.base, 'wiki')
File "/usr/lib/python2.3/site-packages/trac/util.py", line 123, in href_join
u1 = rstrip(u1, '/') + '/' + lstrip(u2, '/')
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
==================================
Some google'ing for this problem didn't helped either. The only tipps I got
where to set the env-var CC to 'gcc'. In /usr/lib/python2.3/config/Makefile
CC is set to "gcc -pthread"
This is my first installation of trac so I'm not very experienced with this
software. But it looks like an excelent project-management which I want to
use for an open-source commander for MacOS-X
Any help would be appreciated.
thanks,
Jonas
PS: On the 26th of june 2005 this problem was already on the trac mailing-list
- unfortunately without any replys...
--
Try Krusader...
http://krusader.sf.net - twinpanel filemanager for KDE
More information about the Trac
mailing list