Submitted by : simon at: 2003-10-26T21:31:43+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

*Summary: This is a combination of #270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken, #226 on freebsd, python/zope may crash repeatably when browsing diffs or saving certain pages and [IssueNo0345 an error occurred while attempting to render the standard error message]?.*

Hi,

Just installed Python 2.1.x, Zope 2.6.0, and Zwiki 0.12.0rc1 on a FreeBSD? 4.7-STABLE server. Zope 2.6.0 appears to work fine, but Zwiki has several pages that aren't working and just generate a Site Error page.

These pages work:

FrontPage ZWiki AnnoyingQuote HelpPage WikiWikiWeb

These pages are broken:

RecentChanges? SearchPage? UserOptions?

The non-working pages all give a Document Template Parse Error. Here's the one from RecentChanges?:

    * Module ZPublisher.Publish, line 150, in publish_module
    * Module ZPublisher.Publish, line 114, in publish
    * Module Zope, line 171, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 98, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 39, in call_object
    * Module Products.ZWiki.ZWikiPage, line 210, in __call__
    * Module Products.ZWiki.ZWikiPage, line 222, in _render
    * Module Products.ZWiki.ZWikiPage, line 393, in render_stxprelinkdtmlhtml
    * Module Products.ZWiki.ZWikiPage, line 341, in cook
    * Module DocumentTemplate.DT_String, line 170, in parse
    * Module DocumentTemplate.DT_String, line 223, in parse_block
    * Module DocumentTemplate.DT_String, line 170, in parse
    * Module DocumentTemplate.DT_String, line 239, in parse_block
    * Module DocumentTemplate.DT_String, line 58, in parse_error
    Document Template Parse Error

Hoping this is a simple fix, as "broken by default" and no obvious mention of things to fix in the installation guide isn't helpful. :(

Regards and best wishes,

Justin Clift (justin@postgresql.org)


2002/11/01 15:32 GMT (via web):
I think this is a duplicate bug of #270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken (dtml pages like UserOptions? don't render with zope 2.6b1).

Try to replace DocumentClass?.py with http://cvs.zope.org/Zope/lib/python/StructuredText/DocumentClass.py

-- PieterB


2002/11/01 16:00 GMT (via web):

Replacing DocumentClass?.py with the CVS version didn't help, so tried the solution in #270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken of:

Workaround: at SOFTWARE_HOME/lib/python/StructuredText/DocumentClass.py line 297, move the doc_literal below the doc_sgml and restart zope.

This let the RecentChanges? and SearchPage? work, however the UserOptions? page now just does a redirection loop with the browser requesting a page from the server over and over.

It appears to be a partial fix, but not 100%. :-/

Regards and best wishes,

Justin Clift (justin@postgresql.org)


SimonMichael, 2002/11/01 18:23 GMT (via web):
Thanks.. I'll hold off 0.12 final until we clarify this.


2002/11/01 18:39 GMT (via web):
Pieter: using DocumentClass?.py from zope cvs wouldn't help because it hasn't been fixed there yet.

Justin: so you've worked around #270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken, fixing most dtml pages; let's figure out your UserOptions? problem. What version of zwiki was installed when you created this wiki ? Ie is this the latest UserOptions? page or an old version ? Try replacing it with UserOptions? from a new wiki to make sure. What browser are you using ? Does a different one work any better ?


2002/11/01 22:25 GMT (via web):

That's cool. This is all a brand new setup as of yesterday.

The only version of Zwiki that's touched this Zope installation (a completely new Zope installation of version 2.6.0) is Zwiki 0.12.0rc1.

The Wiki was added before the DocumentClass?.py file was updated and the server restarted.

If needed (as this is purely a development box) the whole Zope installation can be deleted and recreated from the start, and Zwiki installed from there, etc.

The browsers tested thus far (from a Windows NT client) are Netscape 4.79, Mozilla 1.2 alpha, and IE 5.5 SP2. Identical behaviour from them all in regards to the ZWiki pages. Everything works except for the UserOptions? page.

Hope this helps.

Regards and best wishes,

Justin Clift (justin@postgresql.org)


2002/11/01 22:29 GMT (via web):
Ok, thought it was fixed in the HEAD. I can reproduce this on a vanilla Zope 2.6CVS, zwiki012rc1.

When I click on UserOptions? using IE6 I get a "Action cancelled".

Using Lynx it gives a Alert!: Unexpected network read error; connection aborted. Can't Access `http://wikihost/zwiki/UserOptions' Alert!: Unable to access document.

Zope will restart itself in I get the following entry in my logfile:

200211-01T23:28:28 ERROR(200) zdaemon Process 42078 terminated by signal SIGSEGV(11), wait status: 11

-- PieterB


2002/11/01 22:44 GMT (via web):

Have tried the UserOptions? code from the zwiki.org site. That has the same problem.

However, started deleting bits from the code to see at what point it would work, and then used this approach to find exactly what section of code is causing the break.

If the timezone code is deleted from the UserOptions? page, it appears to work:

 Time zone: 
 <dtml-let 
 now=ZopeTime
 timezones="(
 'GMT-1130',
 'GMT-1100',
 'GMT-1030',
 'GMT-1000',
 'GMT-0930',
 'GMT-0900',
 'GMT-0830',
 'GMT-0800',
 'GMT-0730',
 'GMT-0700',
 'GMT-0630',
 'GMT-0600',
 'GMT-0530',
 'GMT-0500',
 'GMT-0430',
 'GMT-0400',
 'GMT-0330',
 'GMT-0300',
 'GMT-0230',
 'GMT-0200',
 'GMT-0130',
 'GMT-0100',
 'GMT',
 'GMT+0100',
 'GMT+0130',
 'GMT+0200',
 'GMT+0230',
 'GMT+0300',
 'GMT+0330',
 'GMT+0400',
 'GMT+0430',
 'GMT+0500',
 'GMT+0530',
 'GMT+0600',
 'GMT+0630',
 'GMT+0700',
 'GMT+0730',
 'GMT+0800',
 'GMT+0830',
 'GMT+0900',
 'GMT+0930',
 'GMT+1000',
 'GMT+1030',
 'GMT+1100',
 'GMT+1130',
 )"
 userzone="((REQUEST.get('zwiki_timezone',None) in timezones) and zwiki_timezone) or 'GMT'"
 >
 Your local time is 
 <select name="zwiki_timezone" tabindex=5>
 <dtml-in timezones prefix=x>
 <option value="&dtml-x_sequence_item;"
 <dtml-if "userzone == x_sequence_item">selected</dtml-if>
 >
 <dtml-var "now.toZone(x_sequence_item).ISO()"> (&dtml-x_sequence_item;)
 </dtml-in>
 </select>
 (localizes page modification times)
 </dtml-let>

Hope that helps.

:-)

Regards and best wishes,

Justin Clift (justin@postgresql.org)


2002/11/01 23:05 GMT (via web):
Justin, Great!

I can confirm that on Zope26CVS as well! I think the long <dtml-let gives a stack overflow on FreeBSD?.

Have you tried the patch on #226 on freebsd, python/zope may crash repeatably when browsing diffs or saving certain pages (I'm currently trying, but I must figure out how to create a port in another directory, because i'm testing on a production environment ;)

-- PieterB


2002/11/01 23:21 GMT (via web):
Ok, original zwiki.012rc1 UserOptions? works fine with patched Python 2.1.3 (#226 on freebsd, python/zope may crash repeatably when browsing diffs or saving certain pages)

-- PieterB


SimonMichael, 2002/11/01 23:45 GMT (via web):
Good to hear. But help me keep things straight:

The doc_literal thing is #270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken and applies to DTML pages in general. That was the first part of the problem reported here. Ok, no need to mention that further.

The second part was "the UserOptions? page now just does a redirection loop with the browser requesting a page from the server over and over.". Justin was this somehow caused by your zope server crashing ? Ie is it the problem Pieter observed (#226 on freebsd, python/zope may crash repeatably when browsing diffs or saving certain pages, or perhaps #162 browsing diffs & some other things cause zope to crash with Aieee! error code 11 (SIGSEGV)) ?


2002/11/02 00:45 GMT (via web):

Ok, reinstalled Python 2.1.3 from source, including Bob Finch's patch in #226 on freebsd, python/zope may crash repeatably when browsing diffs or saving certain pages, then reinstalled Zope 2.6.0 from source, adjusting the doc_literal thing as per #270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken.

These two in combination allow people to view all the pages, including the UserOptions? page.

It looks like the Python 2.1.3 problem may be FreeBSD? specfic, although the Zope 2.6.0 problem isn't and probably should be mentioned in the Zwiki installation instructions.

Looking into this further, when trying to submit data through the UserOptions? page (just adding the username "Justin" and the email address of "justin@postgresql.org" to the page) it errors out with:

    * Module ZPublisher.Publish, line 150, in publish_module
    * Module ZPublisher.Publish, line 114, in publish
    * Module Zope, line 171, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 98, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 39, in call_object
    * Module Products.ZWiki.ZWikiPage, line 210, in __call__
    * Module Products.ZWiki.ZWikiPage, line 222, in _render
    * Module Products.ZWiki.ZWikiPage, line 398, in render_stxprelinkdtmlhtml
    * Module OFS.DTMLDocument, line 131, in __call__
    * Module DocumentTemplate.DT_String, line 474, in __call__
    * Module DocumentTemplate.DT_Let, line 76, in render
    * Module DocumentTemplate.DT_Let, line 75, in render
    * Module DocumentTemplate.DT_Util, line 201, in eval
      __traceback_info__: ZopeTime
    * Module <string>, line 2, in f
    * Module DateTime.DateTime, line 1441, in rfc822
    NameError

Not sure if this is specific to something I'm doing, or related to the above.

Regards and best wishes,

Justin Clift (justin@postgresql.org)


SimonMichael, 2002/11/02 05:37 GMT (via web):
There seem to be problems with DateTime?.py in zope 2.6.0. I wonder if using the latest version from cvs helps at all.


2002/11/02 08:18 GMT (via web):
Yep, using the Zope 2.6 branch from CVS does work.

Justin: see [IssueNo0345 an error occurred while attempting to render the standard error message]? "localzone Name Error when clicking full/simple/minimal or subscribing with zope 2.6"

-- PieterB


2002/11/02 08:49 GMT (via web):

Yep, that definitely works.

Looks like everything is fixed now.

How are you all going to reflect this in the Zwiki 0.12.0 (final release) version? Extra tips for the installation guide or something?

:-)

Regards and best wishes,

Justin Clift


Simon Michael, 2002/11/02 14:59 GMT (via mail):
Replied on GeneralDiscussion..


SimonMichael, 2002/11/02 15:20 GMT (via web):
So this is #270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken, #226 on freebsd, python/zope may crash repeatably when browsing diffs or saving certain pages and [IssueNo0345 an error occurred while attempting to render the standard error message]?; added a summary at the top and removed this from KnownIssues for clarity. Maybe those issues should reference this one for it's useful details.

PieterB, 2003/01/09 12:52 GMT (via web):
See also: [with zope 2.6.0, dtml pages like UserOptions?, RecentChanges?, SearchPage? are broken]