Trac "500 - Internal Server Error" for Help/Guide

Bug #199306 reported by Christoph
10
Affects Status Importance Assigned to Milestone
trac (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

We are running here a trac 0.10.4-2 on Gusty 7.10 with lighttpd 1.4.18-1ubuntu1.1. An "apt-get update" and an "apt-get dist-upgrade" were used to insure an up to date system.
The URL https://example.com/trac/wiki/TracGuide should give somthing like here http://trac.lighttpd.net/trac/wiki/TracGuide.
Instead we get an "500 - Internal Server Error", whether or not we have our plugins enabled. We took the trac instance and the lighttpd.conf from an FreeBSD 6.3 with lighttpd 1.4.18_1. where it worked. Paths were adjusted of course. I create a new instance to be sure that it is not just the instance, but it is the same with a new instance.

The trac log on debug says:

2008-03-07 00:04:57,362 Trac[macros] ERROR: Failed to load wiki macro TracGuideToc.py ()
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/wiki/macros.py", line 448, in get_macros
    yield name
GeneratorExit

There is this file:
 ls -lah /usr/share/trac/wiki-macros/TracGuideToc.py*
-rw-r--r-- 1 root root 1.8K 2007-04-20 15:41 /usr/share/trac/wiki-macros/TracGuideToc.py
-rw-r--r-- 1 root root 2.1K 2008-03-03 15:04 /usr/share/trac/wiki-macros/TracGuideToc.pyc

Even moving it into the trac/wiki-macros/ dir, did not help.

The lighttpd log in debug mode:

2008-03-07 00:18:15: (request.c.294) fd: 8 request-len: 619
GET /trac/wiki/TracGuide HTTP/1.1
User-Agent: Browser
Host: example.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: de,en;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Cookie2: $Version=1
Cache-Control: no-cache
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers

2008-03-07 00:18:15: (response.c.205) -- splitting Request-URI
2008-03-07 00:18:15: (response.c.206) Request-URI : /trac/wiki/TracGuide
2008-03-07 00:18:15: (response.c.207) URI-scheme : https
2008-03-07 00:18:15: (response.c.208) URI-authority: example.com
2008-03-07 00:18:15: (response.c.209) URI-path : /trac/wiki/TracGuide
2008-03-07 00:18:15: (response.c.210) URI-query :
2008-03-07 00:18:15: (response.c.260) -- sanatising URI
2008-03-07 00:18:15: (response.c.261) URI-path : /trac/wiki/TracGuide
2008-03-07 00:18:15: (mod_access.c.135) -- mod_access_uri_handler called
2008-03-07 00:18:15: (mod_fastcgi.c.3553) handling it in mod_fastcgi
2008-03-07 00:18:15: (response.c.375) -- before doc_root
2008-03-07 00:18:15: (response.c.376) Doc-Root : /var/www/
2008-03-07 00:18:15: (response.c.377) Rel-Path : /trac
2008-03-07 00:18:15: (response.c.378) Path :
2008-03-07 00:18:15: (response.c.426) -- after doc_root
2008-03-07 00:18:15: (response.c.427) Doc-Root : /var/www/
2008-03-07 00:18:15: (response.c.428) Rel-Path : /trac
2008-03-07 00:18:15: (response.c.429) Path : /var/www/trac
2008-03-07 00:18:15: (response.c.446) -- logical -> physical
2008-03-07 00:18:15: (response.c.447) Doc-Root : /var/www/
2008-03-07 00:18:15: (response.c.448) Rel-Path : /trac
2008-03-07 00:18:15: (response.c.449) Path : /var/www/trac
2008-03-07 00:18:16: (mod_fastcgi.c.2480) unexpected end-of-file (perhaps the fastcgi process died): pid: 7036 socket: unix:/tmp/trac-fastcgi.sock-3
2008-03-07 00:18:16: (mod_fastcgi.c.3272) response not received, request sent: 1142 on socket: unix:/tmp/trac-fastcgi.sock-3 for /trac , closing connection
2008-03-07 00:18:16: (response.c.114) Response-Header:
HTTP/1.1 500 Internal Server Error
Content-Type: text/html
Content-Length: 369
Date: Thu, 06 Mar 2008 23:18:16 GMT
Server: lighttpd/1.4.18

2008-03-07 00:18:16: (request.c.294) fd: 8 request-len: 515
GET /favicon.ico HTTP/1.1
User-Agent: Browser
Host: example.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: de,en;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Authorization: Basic Y2hyaXN0b3A6RFdpZTk5RmFsdGVyLg==
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers

2008-03-07 00:18:16: (response.c.205) -- splitting Request-URI
2008-03-07 00:18:16: (response.c.206) Request-URI : /favicon.ico
2008-03-07 00:18:16: (response.c.207) URI-scheme : https
2008-03-07 00:18:16: (response.c.208) URI-authority: example.com
2008-03-07 00:18:16: (response.c.209) URI-path : /favicon.ico
2008-03-07 00:18:16: (response.c.210) URI-query :
2008-03-07 00:18:16: (response.c.260) -- sanatising URI
2008-03-07 00:18:16: (response.c.261) URI-path : /favicon.ico
2008-03-07 00:18:16: (mod_access.c.135) -- mod_access_uri_handler called
2008-03-07 00:18:16: (response.c.375) -- before doc_root
2008-03-07 00:18:16: (response.c.376) Doc-Root : /var/www/
2008-03-07 00:18:16: (response.c.377) Rel-Path : /favicon.ico
2008-03-07 00:18:16: (response.c.378) Path :
2008-03-07 00:18:16: (response.c.426) -- after doc_root
2008-03-07 00:18:16: (response.c.427) Doc-Root : /var/www/
2008-03-07 00:18:16: (response.c.428) Rel-Path : /favicon.ico
2008-03-07 00:18:16: (response.c.429) Path : /var/www/favicon.ico
2008-03-07 00:18:16: (response.c.446) -- logical -> physical
2008-03-07 00:18:16: (response.c.447) Doc-Root : /var/www/
2008-03-07 00:18:16: (response.c.448) Rel-Path : /favicon.ico
2008-03-07 00:18:16: (response.c.449) Path : /var/www/favicon.ico
2008-03-07 00:18:16: (response.c.466) -- handling physical path
2008-03-07 00:18:16: (response.c.467) Path : /var/www/favicon.ico
2008-03-07 00:18:16: (response.c.474) -- file found
2008-03-07 00:18:16: (response.c.475) Path : /var/www/favicon.ico
2008-03-07 00:18:16: (response.c.613) -- handling subrequest
2008-03-07 00:18:16: (response.c.614) Path : /var/www/favicon.ico
2008-03-07 00:18:16: (mod_access.c.135) -- mod_access_uri_handler called
2008-03-07 00:18:16: (mod_staticfile.c.394) -- handling file as static file
2008-03-07 00:18:16: (response.c.625) -- subrequest finished
2008-03-07 00:18:16: (response.c.114) Response-Header:
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 1718
Date: Thu, 06 Mar 2008 23:18:16 GMT
Server: lighttpd/1.4.18

Revision history for this message
jremerson (jremerson) wrote :

Hi Christoph,

It would be a help if you could send in the configuration files for lighthttpd, and trac, so that we can look through them and find out what is going on.

Thanks,
James.

Revision history for this message
Christoph (christop) wrote :

Our trac.ini

Revision history for this message
Christoph (christop) wrote :

Our lighttpd.conf

Revision history for this message
Tim Hatch (timhatch) wrote :

Should be fixed by upstream r6801, which will be included in version 0.10.5

Changed in trac:
status: Incomplete → Fix Committed
Revision history for this message
phaidros (phaidros) wrote :

Is there a chance that 0.10.5 or 0.11.x will make it to hardy?

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - the Jaunty Jackalope.

If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions for "How to request new packages" at https://help.ubuntu.com/community/UbuntuBackports#request-new-packages

Changed in trac (Ubuntu):
importance: Undecided → Medium
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.