Hi all, 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 error log: > [Wed Apr 25 18:55:43 2012] [warn] [client 66.249.71.169] mod_fcgid: read data > timeout in 40 seconds > [Wed Apr 25 18:55:43 2012] [error] [client 66.249.71.169] 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 highlighter. Apache vhost config looks like this: > <VirtualHost 1.2.3.4: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> > <Directory /home/webX/trac/htdocs> > Order allow,deny > Allow from all > </Directory> > > ScriptAlias / /home/webX/trac/fcgi/trac.fcgi/ > > <Location "/login"> > AuthType Basic > AuthName "Trac" > AuthUserFile "/home/webX/trac/passwd.htaccess" > Require valid-user > </Location> > > CustomLog /var/log/apache2/domain.org.access.log combined > ErrorLog /var/log/apache2/domain.org.error.log > </VirtualHost> And the deployed trac.fcgi looks like this: > > #!/usr/bin/python > # -*- coding: utf-8 -*- > # > # Copyright (C) 2003-2009 Edgewall Software > # Copyright (C) 2003-2004 Jonas Borgström <[email protected]> > # 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 <[email protected]> > > try: > import os > os.environ['TRAC_ENV'] = '/home/webX/trac' > egg_cache = os.path.join(os.environ['TRAC_ENV'], '.egg-cache') > import pkg_resources > pkg_resources.set_extraction_path(egg_cache) > from trac.web import fcgi_frontend > fcgi_frontend.run() > except SystemExit: > raise > except Exception, e: > print 'Content-Type: text/plain\r\n\r\n', > print 'Oops...' > print > print 'Trac detected an internal error:' > print > print e > print > import traceback > import StringIO > tb = StringIO.StringIO() > traceback.print_exc(file=tb) > 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. Regards, Alex -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
