[Grok-dev] a mystery ZODB breaking dependency issue
Sebastian Ware
sebastian at urbantalk.se
Fri Feb 22 05:43:38 EST 2008
Martijn! Did you track this down? I have just experienced the same
error when upgrading a customer application from 0.10 to 0.11.1.
Basically:
-original ZODB data.fs file created with an application using Grok 0.10
-created new Grok project (0.11.1) and installed an upgraded version
of the application
-tested the application with a clean ZODB (all is fine)
-copied the original ZODB data.fs file
I get this error when I access both the application settings and the
application itself
http://localhost:8080/applications
http://localhost:8080/prestatics
2008-02-22T11:36:20 ERROR SiteError http://localhost:8080/applications
Traceback (most recent call last):
File "/Users/jhsware/buildout-eggs/tmpJv6Esb/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/
publish.py", line 133, in publish
File "/Users/jhsware/buildout-eggs/tmpMa5xD5/grok-0.11.1-py2.4.egg/
grok/publication.py", line 45, in callObject
File "/Users/jhsware/buildout-eggs/tmp6By-O_/
zope.app.publication-3.4.2-py2.4.egg/zope/app/publication/
zopepublication.py", line 167, in callObject
File "/Users/jhsware/buildout-eggs/tmpJv6Esb/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/
publish.py", line 108, in mapply
- __traceback_info__: <grok.admin.view.Applications object at
0x2e2dbd0>
File "/Users/jhsware/buildout-eggs/tmpJv6Esb/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/
publish.py", line 114, in debug_call
File "/Users/jhsware/buildout-eggs/tmpMa5xD5/grok-0.11.1-py2.4.egg/
grok/components.py", line 137, in __call__
File "/Users/jhsware/buildout-eggs/tmpMa5xD5/grok-0.11.1-py2.4.egg/
grok/components.py", line 141, in _render_template
File "/Users/jhsware/buildout-eggs/tmpMa5xD5/grok-0.11.1-py2.4.egg/
grok/components.py", line 334, in render
File "/Users/jhsware/buildout-eggs/tmpgrbq9U/
zope.pagetemplate-3.4.0a1-py2.4.egg/zope/pagetemplate/
pagetemplate.py", line 115, in pt_render
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 271, in __call__
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 891, in do_useMacro
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 855, in do_condition
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 745, in
do_insertStructure_tal
File "/Users/jhsware/buildout-eggs/tmpHF3RLb/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/tales.py", line 696, in evaluate
- /Users/jhsware/buildout-eggs/grok-0.11.1-py2.4.egg/grok/admin/
view_templates/grokadminmacros.pt
- Line 89, Column 10
- Expression: <PathExpr standard:u'context/@@messages'>
- Names:
{'args': (),
'context': <zope.app.folder.folder.Folder object at 0x22362f0>,
'default': <object object at 0x396558>,
'loop': {},
'nothing': None,
'options': {},
'repeat': {},
'request': <zope.publisher.browser.BrowserRequest instance URL=http://localhost:8080/applications
>,
'static': <grok.components.DirectoryResource object at
0x2e2dc50>,
'template': <grok.components.TrustedFilePageTemplate object at
0x2e7c250>,
'view': <grok.admin.view.Applications object at 0x2e2dbd0>}
File "/Users/jhsware/buildout-eggs/tmpHF3RLb/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/expressions.py", line 217, in __call__
File "/Users/jhsware/buildout-eggs/tmpHF3RLb/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/expressions.py", line 211, in _eval
File "/Users/jhsware/buildout-eggs/tmpMa5xD5/grok-0.11.1-py2.4.egg/
grok/components.py", line 137, in __call__
File "/Users/jhsware/buildout-eggs/tmpMa5xD5/grok-0.11.1-py2.4.egg/
grok/components.py", line 141, in _render_template
File "/Users/jhsware/buildout-eggs/tmpMa5xD5/grok-0.11.1-py2.4.egg/
grok/components.py", line 334, in render
File "/Users/jhsware/buildout-eggs/tmpgrbq9U/
zope.pagetemplate-3.4.0a1-py2.4.egg/zope/pagetemplate/
pagetemplate.py", line 115, in pt_render
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 271, in __call__
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/buildout-eggs/tmp5Oq2KR/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 822, in do_loop_tal
File "/Users/jhsware/buildout-eggs/tmpHF3RLb/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/tales.py", line 685, in setRepeat
File "/Users/jhsware/buildout-eggs/tmpHF3RLb/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/tales.py", line 110, in __init__
File "/Users/jhsware/buildout-eggs/tmp9iF8QT/z3c.flashmessage-1.0b2-
py2.4.egg/z3c/flashmessage/receiver.py", line 23, in receive
File "/Users/jhsware/buildout-eggs/tmp9iF8QT/z3c.flashmessage-1.0b2-
py2.4.egg/z3c/flashmessage/sources.py", line 38, in list
File "/Users/jhsware/buildout-eggs/tmp9iF8QT/z3c.flashmessage-1.0b2-
py2.4.egg/z3c/flashmessage/sources.py", line 52, in _storage
File "/Users/jhsware/buildout-eggs/tmpXw03mN/
zope.app.component-3.4.0b3-py2.4.egg/zope/app/component/hooks.py",
line 95, in adapter_hook
File "/Users/jhsware/buildout-eggs/zope.component-3.4.0-py2.4.egg/
zope/component/zcml.py", line 151, in factory
ob = original_factory(*args)
File "/Users/jhsware/buildout-eggs/tmpHIxuNL/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/session.py", line
326, in __init__
File "/Users/jhsware/buildout-eggs/tmpXw03mN/
zope.app.component-3.4.0b3-py2.4.egg/zope/app/component/hooks.py",
line 95, in adapter_hook
File "/Users/jhsware/buildout-eggs/zope.component-3.4.0-py2.4.egg/
zope/component/zcml.py", line 151, in factory
ob = original_factory(*args)
File "/Users/jhsware/buildout-eggs/tmpHIxuNL/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/session.py", line
66, in __new__
File "/Users/jhsware/buildout-eggs/tmpHIxuNL/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/http.py", line
120, in getClientId
File "/Users/jhsware/buildout-eggs/tmpHIxuNL/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/http.py", line
261, in setRequestId
AttributeError: 'CookieClientIdManager' object has no attribute
'cookieLifetime'
Mvh Sebastian
30 okt 2007 kl. 17.07 skrev Martijn Faassen:
> Hey,
>
> A few times I've seen old ZODB's break. When I go to http://localhost:8080
> , I get an exception as below (and a System Error).
>
> This just happened when I started using the trunk. I suspect it has
> to do with some version requirement somewhere that changed at some
> point, possibly now using an older version than before.
>
> We can't afford to break ZODBs between Grok versions, so we need to
> hunt this one down and fix it. The first step will be to reproduce
> this. I'll the very least create a copy of this symptomatic ZODB I
> have now (which has some custom application installed so I can't
> easily share it; we need a smaller example).
>
> Please help!
>
> Regards,
>
> Martijn
>
> ------
> 2007-10-30T17:03:21 ERROR SiteError http://localhost:8080
> Traceback (most recent call last):
> File "/home/faassen/buildout-eggs/zope.publisher-3.5.0a1.dev_r78838-
> py2.4.egg/zope/publisher/publish.py", line 130, in publish
> obj = request.traverse(obj)
> File "/home/faassen/buildout-eggs/zope.publisher-3.5.0a1.dev_r78838-
> py2.4.egg/zope/publisher/browser.py", line 513, in traverse
> ob = super(BrowserRequest, self).traverse(obj)
> File "/home/faassen/buildout-eggs/zope.publisher-3.5.0a1.dev_r78838-
> py2.4.egg/zope/publisher/http.py", line 453, in traverse
> ob = super(HTTPRequest, self).traverse(obj)
> File "/home/faassen/buildout-eggs/zope.publisher-3.5.0a1.dev_r78838-
> py2.4.egg/zope/publisher/base.py", line 252, in traverse
> publication.callTraversalHooks(self, obj)
> File "/home/faassen/buildout-eggs/zope.app.publication-3.4.2-
> py2.4.egg/zope/app/publication/zopepublication.py", line 129, in
> callTraversalHooks
> self._maybePlacefullyAuthenticate(request, ob)
> File "/home/faassen/buildout-eggs/zope.app.publication-3.4.2-
> py2.4.egg/zope/app/publication/zopepublication.py", line 116, in
> _maybePlacefullyAuthenticate
> principal = auth.authenticate(request)
> File "/home/faassen/buildout-eggs/zope.app.authentication-3.4.0a1-
> py2.4.egg/zope/app/authentication/authentication.py", line 72, in
> authenticate
> credentials = credplugin.extractCredentials(request)
> File "/home/faassen/buildout-eggs/zope.app.authentication-3.4.0a1-
> py2.4.egg/zope/app/authentication/session.py", line 189, in
> extractCredentials
> session = ISession(request, None)
> File "/home/faassen/buildout-eggs/zope.app.component-3.4.0b3-
> py2.4.egg/zope/app/component/hooks.py", line 95, in adapter_hook
> return siteinfo.adapter_hook(interface, object, name, default)
> File "/home/faassen/buildout-eggs/zope.component-3.4.0-py2.4.egg/
> zope/component/zcml.py", line 151, in factory
> ob = original_factory(*args)
> File "/home/faassen/buildout-eggs/zope.app.session-3.4.0a1-
> py2.4.egg/zope/app/session/session.py", line 326, in __init__
> self.client_id = str(IClientId(request))
> File "/home/faassen/buildout-eggs/zope.app.component-3.4.0b3-
> py2.4.egg/zope/app/component/hooks.py", line 95, in adapter_hook
> return siteinfo.adapter_hook(interface, object, name, default)
> File "/home/faassen/buildout-eggs/zope.component-3.4.0-py2.4.egg/
> zope/component/zcml.py", line 151, in factory
> ob = original_factory(*args)
> File "/home/faassen/buildout-eggs/zope.app.session-3.4.0a1-
> py2.4.egg/zope/app/session/session.py", line 66, in __new__
> return str.__new__(
> File "/home/faassen/buildout-eggs/zope.app.session-3.4.0a1-
> py2.4.egg/zope/app/session/http.py", line 120, in getClientId
> self.setRequestId(request, sid)
> File "/home/faassen/buildout-eggs/zope.app.session-3.4.0a1-
> py2.4.egg/zope/app/session/http.py", line 261, in setRequestId
> if self.cookieLifetime is not None:
> AttributeError: 'CookieClientIdManager' object has no attribute
> 'cookieLifetime'
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list