Hi all, I'm still bothered with the misbehaving ZopeTime object. If you could give me further debugging tips i would be very thankful. The story: I upgraded to 2.6.1 and ZWiki-0.16 and everthing worked well. After a certain time i get ZopeTime errors, the server is running from the beginning. I reproduced these errors with a brandnew installation of 2.6.1 and as the only product ZWiki. As an example of several errors take this one: http://openspirit.homelinux.net/noowiki/IssueTracker The issue tracker needs a catalog. With a clean catalog there are no errors, but with a fresh built one i get this error: Traceback (innermost last): * Module ZPublisher.Publish, line 102, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 43, in call_object * Module Products.ZWiki.ZWikiPage, line 221, in __call__ * Module Products.ZWiki.ZWikiPage, line 233, in _render * Module Products.ZWiki.ZWikiPage, line 416, in render_stxprelinkdtmlhtml * Module OFS.DTMLDocument, line 134, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 120, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_In, line 705, in renderwob * Module DocumentTemplate.DT_Let, line 75, in render * Module DocumentTemplate.DT_Util, line 204, in eval __traceback_info__: _ * Module <string>, line 2, in f NameError: global name 'ZopeTime' is not defined ----- So i logged some objects in ZWikiPage.py and other places. Maybe you can give me a hint if there are correct values. * Module ZPublisher.Publish, line 102, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 43, in call_object 2003-03-18T10:51:45 TRACE(-300) Publisher--call_object: The wiki DTML document --> OK. Publisher--call_object: args (<Folder instance at 93d0d70>, <HTTPRequest, URL=http://openspirit.homelinux.net/noowiki/IssueTracker>, ZServerHTTPResponse('')) --> OK? --> REQUEST object is also ok. * Module Products.ZWiki.ZWikiPage, line 221, in __call__ __call__-client <Folder instance at b54ba20> --> OK? --> REQUEST, RESPONSE seem to be ok. __call__-kw {} --> ?? no kw? * Module Products.ZWiki.ZWikiPage, line 233, in _render same as in __call__ * Module Products.ZWiki.ZWikiPage, line 416, in render_stxprelinkdtmlhtml in apply: client: is the wiki page raw text REQ, RESP, kw same as above --> Is this ok? * Module OFS.DTMLDocument, line 134, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 120, in __call__ self: <dtml-if "error_typ... (standard_error_msg) --> I guess this is due to the error now! kw: {'document_id': 'standard_error_message', 'error_type': 'NameError', 'error_message': '', 'error_log_url': 'http://openspirit.homelinux.net/error_log/showEntry?id=1047981994.230.471187...', 'error_tb': "<p>Traceback (innermost last):\r\n<ul>\n\n<li> Module ZPublisher.Publish, line 102, in publish</li>\n\n<li> Module ZPublisher.mapply, line 88, in mapply</li>\n\n<li> (...) [...] __traceback_info__: _ * Module <string>, line 2, in f As Dieter told me already to check if the DTML-Doc is called correctly, i'd like to check this. How can i do this? Which debugging info and tools are useful in this case? Any help is much appreciated! Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
Florian Konnertz wrote at 2003-3-18 10:35 +0100:
I'm still bothered with the misbehaving ZopeTime object. If you could give me further debugging tips i would be very thankful. ... As an example of several errors take this one: http://openspirit.homelinux.net/noowiki/IssueTracker The issue tracker needs a catalog. With a clean catalog there are no errors, but with a fresh built one i get this error:
Traceback (innermost last):
.... * Module Products.ZWiki.ZWikiPage, line 416, in render_stxprelinkdtmlhtml * Module OFS.DTMLDocument, line 134, in __call__
Again, it looks as if this DTMLDocument" were called without the necessary positional arguments. Look at line 416 of ZWikiPage and check the call there. DTML objects (usually) require 2 positional arguments (called "client" and "REQUEST"). "client" is necessary to find basic infrastructure such as "ZopeTime". Dieter
Dieter Maurer wrote:
Florian Konnertz wrote at 2003-3-18 10:35 +0100:
I'm still bothered with the misbehaving ZopeTime object. If you could give me further debugging tips i would be very thankful. ... As an example of several errors take this one: http://openspirit.homelinux.net/noowiki/IssueTracker The issue tracker needs a catalog. With a clean catalog there are no errors, but with a fresh built one i get this error:
Traceback (innermost last):
.... * Module Products.ZWiki.ZWikiPage, line 416, in render_stxprelinkdtmlhtml * Module OFS.DTMLDocument, line 134, in __call__
Again, it looks as if this DTMLDocument" were called without the necessary positional arguments.
Look at line 416 of ZWikiPage and check the call there. The log of the client object shows the raw text of the wiki page. This looks fine for me. Can you guess if it's ok? (Compared to other client objects?)
DTML objects (usually) require 2 positional arguments (called "client" and "REQUEST"). "client" is necessary to find basic infrastructure such as "ZopeTime".
I understand. AFAICS both objects exists correctly. What am i missing? Maybe you have another hint, Dieter - Which furtherdebugging measures could i do? Florian German users: this is also on http://www.dzug.org/ZWiki/DTMLDocument._5f_5fcall_5f_5f -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
Florian Konnertz wrote at 2003-3-19 10:37 +0100:
Dieter Maurer wrote: ...
Look at line 416 of ZWikiPage and check the call there. The log of the client object shows the raw text of the wiki page. This looks fine for me. Can you guess if it's ok? (Compared to other client objects?)
Sometimes, communication is really difficult.... You seem to be a fan of logs. I am a fan of looking at code and debugging. What code do you see around line 416 of "ZwikiPage.py"?
.... AFAICS both objects exists correctly. What am i missing? Maybe you have another hint, Dieter - Which furtherdebugging measures could i do?
I cannot when I say look at code and you reply with a log... I know that "ZopeTime" is defined by the application object (that is the root of your WebSite). When a DTML object cannot find "ZopeTime", then the DTML namespace is somehow cut such that is contains not element which can acquire the root. Somewhere, "client" was not passed. I cannot tell you where... Dieter
Hi Dieter, Dieter Maurer wrote:
Florian Konnertz wrote at 2003-3-19 10:37 +0100:
Dieter Maurer wrote: ...
Look at line 416 of ZWikiPage and check the call there. The log of the client object shows the raw text of the wiki page. This looks fine for me. Can you guess if it's ok? (Compared to other client objects?)
Sometimes, communication is really difficult.... ...hmmm
You seem to be a fan of logs. :-) Far sure! I've got already 300terabytes only zope logs ;-)
I am a fan of looking at code and debugging.
Ok, cool, i'm becoming the same :)
What code do you see around line 416 of "ZwikiPage.py"?
.... AFAICS both objects exists correctly. What am i missing? Maybe you have another hint, Dieter - Which furtherdebugging measures could i do?
I cannot when I say look at code and you reply with a log...
I know that "ZopeTime" is defined by the application object (that is the root of your WebSite).
When a DTML object cannot find "ZopeTime", then the DTML namespace is somehow cut such that is contains not element which can acquire the root. Somewhere, "client" was not passed.
Ok, these words helped me understand... - "the namespace is cut" - I see.
I cannot tell you where...
Yep, ok - I know what you mean. Thanks for your patience! ... The solution was quite easy... (see the other postings) - But i still wonder why it worked the first days on that zope instance - I don't remember having changed the default settings, (maybe my colleague was it?) Best wishes , Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
I've seen this before if Anonymous does not have the permission "Access contents information" at the root of your Zope installation. It's easy to try it out at least. -- JZ Florian Konnertz wrote:
Hi all,
I'm still bothered with the misbehaving ZopeTime object. If you could give me further debugging tips i would be very thankful.
The story: I upgraded to 2.6.1 and ZWiki-0.16 and everthing worked well. After a certain time i get ZopeTime errors, the server is running from the beginning. I reproduced these errors with a brandnew installation of 2.6.1 and as the only product ZWiki.
As an example of several errors take this one: http://openspirit.homelinux.net/noowiki/IssueTracker The issue tracker needs a catalog. With a clean catalog there are no errors, but with a fresh built one i get this error:
Traceback (innermost last):
* Module ZPublisher.Publish, line 102, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 43, in call_object * Module Products.ZWiki.ZWikiPage, line 221, in __call__ * Module Products.ZWiki.ZWikiPage, line 233, in _render * Module Products.ZWiki.ZWikiPage, line 416, in render_stxprelinkdtmlhtml * Module OFS.DTMLDocument, line 134, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 120, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_In, line 705, in renderwob * Module DocumentTemplate.DT_Let, line 75, in render * Module DocumentTemplate.DT_Util, line 204, in eval __traceback_info__: _ * Module <string>, line 2, in f
NameError: global name 'ZopeTime' is not defined
-----
So i logged some objects in ZWikiPage.py and other places. Maybe you can give me a hint if there are correct values.
* Module ZPublisher.Publish, line 102, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 43, in call_object 2003-03-18T10:51:45 TRACE(-300) Publisher--call_object: The wiki DTML document --> OK. Publisher--call_object: args (<Folder instance at 93d0d70>, <HTTPRequest, URL=http://openspirit.homelinux.net/noowiki/IssueTracker>, ZServerHTTPResponse('')) --> OK? --> REQUEST object is also ok.
* Module Products.ZWiki.ZWikiPage, line 221, in __call__ __call__-client <Folder instance at b54ba20> --> OK? --> REQUEST, RESPONSE seem to be ok. __call__-kw {} --> ?? no kw?
* Module Products.ZWiki.ZWikiPage, line 233, in _render same as in __call__
* Module Products.ZWiki.ZWikiPage, line 416, in render_stxprelinkdtmlhtml in apply: client: is the wiki page raw text REQ, RESP, kw same as above --> Is this ok?
* Module OFS.DTMLDocument, line 134, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLMethod, line 120, in __call__ self: <dtml-if "error_typ... (standard_error_msg) --> I guess this is due to the error now!
kw: {'document_id': 'standard_error_message', 'error_type': 'NameError', 'error_message': '', 'error_log_url': 'http://openspirit.homelinux.net/error_log/showEntry?id=1047981994.230.471187...', 'error_tb': "<p>Traceback (innermost last):\r\n<ul>\n\n<li> Module ZPublisher.Publish, line 102, in publish</li>\n\n<li> Module ZPublisher.mapply, line 88, in mapply</li>\n\n<li> (...)
[...] __traceback_info__: _ * Module <string>, line 2, in f
As Dieter told me already to check if the DTML-Doc is called correctly, i'd like to check this. How can i do this? Which debugging info and tools are useful in this case?
Any help is much appreciated!
Florian
John Ziniti wrote:
Florian Konnertz wrote:
Hi all,
I'm still bothered with the misbehaving ZopeTime object. If you could give me further debugging tips i would be very thankful.
NameError: global name 'ZopeTime' is not defined
I've seen this before if Anonymous does not have the permission "Access contents information" at the root of your Zope installation. It's easy to try it out at least.
You are my hero, John!! That's great! Unbelievable! Absolut fantastic! Insane! BTW, to give Authenticated the aci permission was sufficient in my case. Cheers, Florian P.S. Remember: If you're in my town one day, come over to my house, i'll pay you a beer! -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage Improved ZWiki about all topics, especially consciousness research and wisdom traditions
I credit this fix to my colleague Ross Lazarus. I'm just re-iterating an old anecdote I heard from him about a year ago. Glad it helped, Florian! Does anyone know why this has to be the case? Florian Konnertz wrote:
John Ziniti wrote:
Florian Konnertz wrote:
Hi all,
I'm still bothered with the misbehaving ZopeTime object. If you could give me further debugging tips i would be very thankful.
NameError: global name 'ZopeTime' is not defined
I've seen this before if Anonymous does not have the permission "Access contents information" at the root of your Zope installation. It's easy to try it out at least.
You are my hero, John!!
That's great! Unbelievable!
Absolut fantastic!
Insane!
BTW, to give Authenticated the aci permission was sufficient in my case.
Cheers, Florian
P.S. Remember: If you're in my town one day, come over to my house, i'll pay you a beer!
participants (3)
-
Dieter Maurer -
Florian Konnertz -
John Ziniti