lynix47 at googlemail
Apr 25, 2012, 10:45 AM
Post #1 of 1
"Premature end of script header" and exceptions (no suexec issue)
I've set up a Trac 0.11.7 instance on a Debian Squeeze server using
Apache2 and mod_fcgid.
Pages load quickly, and everything seems fine from the user point of
view, but I keep getting the following error messages in the Apache
> [Wed Apr 25 18:55:43 2012] [warn] [client 184.108.40.206] mod_fcgid: read data timeout in 40 seconds
> [Wed Apr 25 18:55:43 2012] [error] [client 220.127.116.11] Premature end of script headers: trac.fcgi
> Unhandled exception in thread started by <bound method Connection.run of <trac.web._fcgi.Connection object at 0x8a8b1cc>>
> Traceback (most recent call last):
> File "/usr/lib/python2.6/dist-packages/trac/web/_fcgi.py", line 661, in run
> except (select.error, socket.error), e:
> AttributeError: 'NoneType' object has no attribute 'error'
The Trac log only contains deprecation warnings for the Enscript
Apache vhost config looks like this:
> <VirtualHost 18.104.22.168:80>
> ServerName domain.org
> ServerAlias www.domain.org
> DocumentRoot /home/webX/trac/htdocs
> Alias /chrom/common /usr/share/pyshared/trac/htdocs
> Alias /chrome/site /home/webX/trac/htdocs
> Alias /robots.txt /home/webX/trac/htdocs/robots.txt
> Alias /favicon.ico /home/webX/trac/htdocs/favicon.ico
> <Directory "/usr/share/pyshared/trac/htdocs">
> Order allow,deny
> Allow from all
> <Directory /home/webX/trac/htdocs>
> Order allow,deny
> Allow from all
> ScriptAlias / /home/webX/trac/fcgi/trac.fcgi/
> <Location "/login">
> AuthType Basic
> AuthName "Trac"
> AuthUserFile "/home/webX/trac/passwd.htaccess"
> Require valid-user
> CustomLog /var/log/apache2/domain.org.access.log combined
> ErrorLog /var/log/apache2/domain.org.error.log
And the deployed trac.fcgi looks like this:
> # -*- coding: utf-8 -*-
> # Copyright (C) 2003-2009 Edgewall Software
> # Copyright (C) 2003-2004 Jonas Borgström <jonas [at] edgewall>
> # All rights reserved.
> # This software is licensed as described in the file COPYING, which
> # you should have received as part of this distribution. The terms
> # are also available at http://trac.edgewall.org/wiki/TracLicense.
> # This software consists of voluntary contributions made by many
> # individuals. For the exact contribution history, see the revision
> # history and logs, available at http://trac.edgewall.org/log/.
> # Author: Jonas Borgström <jonas [at] edgewall>
> import os
> os.environ['TRAC_ENV'] = '/home/webX/trac'
> egg_cache = os.path.join(os.environ['TRAC_ENV'], '.egg-cache')
> import pkg_resources
> from trac.web import fcgi_frontend
> except SystemExit:
> except Exception, e:
> print 'Content-Type: text/plain\r\n\r\n',
> print 'Oops...'
> print 'Trac detected an internal error:'
> print e
> import traceback
> import StringIO
> tb = StringIO.StringIO()
> print tb.getvalue()
Any ideas what could be the cause?
I already searched the net but found only topics tracing the issues down
to the use of the Apache suexec module, which is disabled in my setup.
I know 0.11 is not the current stable version, but the Squeeze standard
repos do not provide any newer one.
Thanks for any suggestions, and please ask for any additional
information you might need.
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.