Edgewall Software

Opened 13 years ago

Last modified 13 years ago

#10380 closed defect

error:Premature end of script headers: trac.fcgi — at Version 1

Reported by: zhaohu0829@… Owned by: Jonas Borgström
Priority: highest Milestone:
Component: web frontend Version: 0.12
Severity: minor Keywords:
Cc: jonas@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Thijs Triemstra)

i start the trac with the fcgi, the error will be occure when view a ticket with a big description.but not occure start with standalone!

my trac.fcgi is:

try:
    import os
    import pkg_resources
    if 'TRAC_ENV' not in os.environ and \
       'TRAC_ENV_PARENT_DIR' not in os.environ:
        os.environ['TRAC_ENV'] = '/home/trac'
    if 'PYTHON_EGG_CACHE' not in os.environ:
        if 'TRAC_ENV' in os.environ:
            egg_cache = os.path.join(os.environ['TRAC_ENV'], '.egg-cache')
        elif 'TRAC_ENV_PARENT_DIR' in os.environ:
            egg_cache = os.path.join(os.environ['TRAC_ENV_PARENT_DIR'], 
                                     '.egg-cache')
        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()

Change History (1)

comment:1 by Thijs Triemstra, 13 years ago

Description: modified (diff)
Keywords: ticket description is big the error was occure but not occure start with stando removed
Note: See TracTickets for help on using tickets.