Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#3638 closed defect (fixed)

malformed header from script when using showpath with trac 0.11-2 from Ubuntu Hardy (CGI)

Reported by: r.v.engelen@… Owned by: Jason Winnebeck
Priority: normal Component: ShowPathPlugin
Severity: normal Keywords: cgi
Cc: Trac Release: 0.11

Description

After I put ShowPath.py in my projects plugins directory, I receive a 500-error containing the foolowing:

malformed header from script. Bad header=[('START', (QName(u'a'), Attrs: trac.cgi 

Attachments (0)

Change History (5)

comment:1 Changed 16 years ago by Jason Winnebeck

Status: newassigned

I'm not familiar with the CGI form for Trac, so I'm not sure what that error means or what would cause it. Is there an error printed out to the Trac log? I searched quickly on that error and it means the CGI script died before sending the HTTP header. I'm not sure what can cause that in Trac -- if it can happen because of an exception while processing. If so, it ought to be in Trac's log or your webserver's log.

comment:2 Changed 16 years ago by anonymous

I'm running Trac with Apache 2.2 + mod_wsgi (python 2.5, Trac 0.11stable-r7581 ). If I acitvate ShowPathPlugin my Apache Error Log is flooded with this messages:

[Sat Oct 11 01:40:33 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'NewBie', (None, -1, -1))]
[Sat Oct 11 01:43:12 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 01:46:06 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 01:46:17 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 01:46:49 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'Press.de', (None, -1, -1))]
[Sat Oct 11 01:47:32 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/packages')])), (None, -1, -1)), ('TEXT', u'packages', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'avm-firewall-cgi', (None, -1, -1))]
[Sat Oct 11 01:48:03 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help')])), (None, -1, -1)), ('TEXT', u'help', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos')])), (None, -1, -1)), ('TEXT', u'howtos', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos/common')])), (None, -1, -1)), ('TEXT', u'common', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'install', (None, -1, -1))]
[Sat Oct 11 01:50:46 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 01:50:52 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 01:51:34 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'FAQ.de', (None, -1, -1))]
[Sat Oct 11 01:52:12 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/packages')])), (None, -1, -1)), ('TEXT', u'packages', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/packages/callmonitor')])), (None, -1, -1)), ('TEXT', u'callmonitor', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'listeners', (None, -1, -1))]
[Sat Oct 11 01:52:45 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'Download.de', (None, -1, -1))]
[Sat Oct 11 01:53:27 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'InterWiki', (None, -1, -1))]
[Sat Oct 11 01:54:04 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'Press.en', (None, -1, -1))]
[Sat Oct 11 01:58:45 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 01:59:18 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'TracGuide', (None, -1, -1))]
[Sat Oct 11 01:59:32 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'TracInstall', (None, -1, -1))]
[Sat Oct 11 02:00:04 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'TracIni', (None, -1, -1))]
[Sat Oct 11 02:02:12 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/packages')])), (None, -1, -1)), ('TEXT', u'packages', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'usb-root', (None, -1, -1))]
[Sat Oct 11 02:02:52 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'Download.de', (None, -1, -1))]
[Sat Oct 11 02:03:22 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 02:03:30 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'Download.de', (None, -1, -1))]
[Sat Oct 11 02:03:46 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help')])), (None, -1, -1)), ('TEXT', u'help', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos')])), (None, -1, -1)), ('TEXT', u'howtos', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos/common')])), (None, -1, -1)), ('TEXT', u'common', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'install', (None, -1, -1))]
[Sat Oct 11 02:06:32 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 02:06:58 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 02:11:33 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'packages', (None, -1, -1))]
[Sat Oct 11 02:11:41 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/packages')])), (None, -1, -1)), ('TEXT', u'packages', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'mediaserver', (None, -1, -1))]
[Sat Oct 11 02:12:04 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'packages', (None, -1, -1))]
[Sat Oct 11 02:12:12 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/packages')])), (None, -1, -1)), ('TEXT', u'packages', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'bridge-utils', (None, -1, -1))]
[Sat Oct 11 02:12:54 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help')])), (None, -1, -1)), ('TEXT', u'help', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos')])), (None, -1, -1)), ('TEXT', u'howtos', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos/common')])), (None, -1, -1)), ('TEXT', u'common', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'install', (None, -1, -1))]
[Sat Oct 11 02:15:06 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help')])), (None, -1, -1)), ('TEXT', u'help', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos')])), (None, -1, -1)), ('TEXT', u'howtos', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/help/howtos/development')])), (None, -1, -1)), ('TEXT', u'development', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'freetz_make', (None, -1, -1))]
[Sat Oct 11 02:24:51 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 02:36:48 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 02:40:38 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'WikiStart.de', (None, -1, -1))]
[Sat Oct 11 02:42:21 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', u'TracBrowser', (None, -1, -1))]
[Sat Oct 11 02:52:56 2008] [error] [('START', (QName(u'a'), Attrs([(QName(u'href'), u'/wiki/WikiStart')])), (None, -1, -1)), ('TEXT', 'Start Page', (None, -1, -1)), ('END', QName(u'a'), (None, -1, -1)), ('TEXT', u' / ', (None, -1, -1)), ('TEXT', 'WikiStart.de', (None, -1, -1))]

No errors can be found in trac log.

comment:3 Changed 16 years ago by Jason Winnebeck

Keywords: cgi added
Summary: malformed header from script when using showpath with trac 0.11-2 from Ubuntu Hardymalformed header from script when using showpath with trac 0.11-2 from Ubuntu Hardy (CGI)

OK, at first, I was getting confused because I didn't know what these error messages were. I also was thrown off that it wasn't working -- I assume so at least because it says it gets a 500 error.

I actually left in a debugging print that printed out the content of the context navigation that is output by the plugin. This doesn't affect running in Trac standalone (tracd) or in Apache with mod_python. I could see how it would affect CGI, since if I recall correctly, the output from the process is what is returned to the browser, so I can understand the error.

comment:4 Changed 16 years ago by Jason Winnebeck

Resolution: fixed
Status: assignedclosed

(In [4474]) Removed debugging print, which seems to be crashing Trac when run under CGI. I'm 90% sure that this closes #3638

comment:5 Changed 16 years ago by anonymous

For me the errors have gone.

Thank you for your quick response.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jason Winnebeck.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.