hi continuing the persistent sessions battle... periodically, after zeo is running fine for a few days, this error occurs anytime an object within a plone site is accessed. i think (i will double check if this happens again) the temp_folder mount is broken and anytime request.SESSION is called, the error is returned. Traceback: ---------------- Site Error An error was encountered while publishing this resource. SystemError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 180, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 131, in publish * Module Zope.App.startup, line 204, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFCore.PortalContent, line 116, in __call__ * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.CMFCore.FSPageTemplate, line 191, in _exec * Module Products.CMFCore.FSPageTemplate, line 124, in pt_render * Module Products.PageTemplates.PageTemplate, line 96, in pt_render <FSPageTemplate at /Portals/example.org/www/document_view used for /Portals/example.org/www/index_html> * Module TAL.TALInterpreter, line 189, in __call__ * Module TAL.TALInterpreter, line 218, in interpret * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 663, in do_useMacro * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 408, in do_optTag_tal * Module TAL.TALInterpreter, line 393, in do_optTag * Module TAL.TALInterpreter, line 388, in no_tag * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 552, in do_insertTranslation * Module TAL.TALInterpreter, line 615, in translate * Module Products.PageTemplates.TALES, line 264, in translate * Module Products.PlacelessTranslationService.PlacelessTranslationService, line 113, in translate * Module Products.PlacelessTranslationService.PlacelessTranslationService, line 504, in translate * Module Products.PlacelessTranslationService.PlacelessTranslationService, line 416, in getCatalogsForTranslation * Module Products.PlacelessTranslationService.PlacelessTranslationService, line 541, in negotiate_language * Module Products.PlacelessTranslationService.Negotiator, line 261, in negotiate * Module Products.PlacelessTranslationService.Negotiator, line 266, in _negotiate * Module Products.PlacelessTranslationService.Negotiator, line 54, in getLangPrefs * Module Products.PlacelessTranslationService.Negotiator, line 172, in getAccepted * Module ZPublisher.HTTPRequest, line 1218, in __getattr__ * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 94, in getSessionData * Module Products.Sessions.SessionDataManager, line 183, in _getSessionDataObject SystemError: error return without exception set (Also, an error occurred while attempting to render the standard error message.) note: i've used a temporarystorage export from zeo instead of the standard local temporary storage as indicated in my prior post below. thanks, travis On Aug 2, 2004, at 3:14 PM, Travis Miller wrote:
problem solved. always google just a bit longer ;-) http://longsleep.org/projects/sessioncrumbler
the patch does appear in zope 2.7.1
thanks, travis
On Aug 2, 2004, at 2:44 PM, Travis Miller wrote:
hi,
my zeo setup is running like a top :-) ...until!
i would like my zeo clients to share the same session storage.
out of the box, zope has a temporary storage database (/temp_folder) for the session data (/temp_folder/session_data). the session data manager (/session_data_manager) is then configured to pull from the session data (/temp_folder/session_data).
my first inclination was to create another session data object (/session_folder/session_data) in the main database and to configure the session data manager to pull from it. (i've also tried using a separate zeo filestorage and mounting it. as expected, i saw the same results through out.)
however, when i do this, it seems as though only one zeo client is allowed to use the session. a simple python script that prints request.SESSION succeeds on one client, but fails with a key error on the other.
Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 7, in test-session - <PythonScript at /Portals/test-session> - Line 7 Module ZPublisher.HTTPRequest, line 1218, in __getattr__ Module ZPublisher.HTTPRequest, line 1178, in get Module Products.Sessions.SessionDataManager, line 94, in getSessionData Module Products.Sessions.SessionDataManager, line 181, in _getSessionDataObject Module Products.Transience.Transience, line 768, in new_or_existing Module Products.Transience.Transience, line 439, in __setitem__ KeyError: 1091449200
i have: python 2.3.4 Zope 2.7.1 ...compiled from source
this was all i could really find on zeo clients sharing sessions. it seems to support what i have attempted: http://www.zopelabs.com/cookbook/1061234337
what might i be missing? if sharing the session is a bad idea. where else could i store session like information for a script based application?
thanks for any help
thanks, travis
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )