[Zope] Zope hangs
Nico Grubert
nicogrubert at gmail.com
Thu Oct 2 04:13:39 EDT 2008
> These entries should not be the one that cause your problems
> (they are not computationally expensive).
> Do you see other entries as well?
Thank you very much for your answer, Dieter.
There are 2 entries from in the DeadlockDebugger's output that may block
all other threads.
Here is the full output of both entries:
1.
---------------------------------------------------------------------------
Thread 1098918208 (GET
/VirtualHostBase/http/intra:80/intranet/VirtualHostRoot/projects/index_DE):
File
"/usr/local/Zope-2.10.5/lib/python/ZServer/PubCore/ZServerPublisher.py",
line 25, in __init__
response=b)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
401, in publish_module
environ, debug, request, response)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
202, in publish_module_standard
response = publish(request, module_name, after_list, debug=debug)
File
"/zope/intranet/Products/PlacelessTranslationService/PatchStringIO.py",
line 51, in new_publish
x = Publish.old_publish(request, module_name, after_list, debug)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
119, in publish
request, bind=1)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/mapply.py", line
88, in mapply
if debug is not None: return debug(object,args,context)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
42, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
313, in __call__
return self._bindAndExec(args, kw, None)
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
350, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PythonScripts/PythonScript.py",
line 327, in _exec
result = f(*args, **kw)
File "Script (Python)", line 20, in index_html
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
313, in __call__
return self._bindAndExec(args, kw, None)
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
350, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZopePageTemplate.py",
line 330, in _exec
result = self.pt_render(extra_context=bound_names)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZopePageTemplate.py",
line 426, in pt_render
result = PageTemplate.pt_render(self, source, extra_context)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/PageTemplate.py",
line 89, in pt_render
return super(PageTemplate, self).pt_render(c, source=source)
File
"/usr/local/Zope-2.10.5/lib/python/zope/pagetemplate/pagetemplate.py",
line 117, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 271, in __call__
self.interpret(self.program)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 891, in do_useMacro
self.interpret(macro)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 949, in do_defineSlot
self.interpret(slot)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 534, in do_optTag_tal
self.no_tag(stuff[-2], stuff[-1])
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 516, in no_tag
self.interpret(program)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 586, in do_setLocal_tal
self.engine.setLocal(name, self.engine.evaluateValue(expr))
File "/usr/local/Zope-2.10.5/lib/python/zope/tales/tales.py", line
696, in evaluate
return expression(self)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZRPythonExpr.py",
line 49, in __call__
return eval(self._code, vars, {})
File "PythonExpr", line 1, in <expression>
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
313, in __call__
return self._bindAndExec(args, kw, None)
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
350, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PythonScripts/PythonScript.py",
line 327, in _exec
result = f(*args, **kw)
File "Script (Python)", line 11, in getBoxes_lokal
File "/zope/intranet/Products/Silva/Folder.py", line 718, in
get_public_tree
self._get_public_tree_helper(l, 0, depth)
File "/zope/intranet/Products/Silva/Folder.py", line 768, in
_get_public_tree_helper
if self.service_toc_filter.filter(item):
File "/zope/intranet/Products/Silva/tocfilter.py", line 36, in filter
return False
File "/zope/intranet/Products/Silva/tocfilter.py", line 19, in
hideFromTOC
return context.service_metadata.getMetadataValue(
File "/zope/intranet/Products/SilvaMetadata/MetadataTool.py", line
180, in getMetadataValue
return binding.get(set_id, element_id)
File "/zope/intranet/Products/SilvaMetadata/Binding.py", line 301, in get
return data.get(element_id)
File "/zope/intranet/Products/SilvaMetadata/Binding.py", line 500, in
_getData
return data
File "/zope/intranet/Products/SilvaMetadata/Element.py", line 207, in
getDefault
return self.field.get_value('default', content=content)
File "/zope/intranet/Products/Formulator/Field.py", line 142, in
get_value
return value
File "/zope/intranet/Products/Formulator/TALESField.py", line 44, in
__call__
return getEngine().getContext(kw).evaluate(expr)
File "/usr/local/Zope-2.10.5/lib/python/zope/tales/tales.py", line
696, in evaluate
return expression(self)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZRPythonExpr.py",
line 49, in __call__
return eval(self._code, vars, {})
File "PythonExpr", line 1, in <expression>
File "/zope/intranet/Products/Silva/Security.py", line 272, in
sec_get_creator_info
return self.sec_get_member(self.getOwner().getId())
File "/usr/local/Zope-2.10.5/lib/python/AccessControl/Owned.py", line
104, in getOwner
return user
File "/zope/intranet/Products/LDAPUserFolder/LDAPUserFolder.py", line
740, in getUserById
return user
File "/zope/intranet/Products/LDAPUserFolder/LDAPUserFolder.py", line
720, in getUserByAttr
return user_obj
File "/zope/intranet/Products/LDAPUserFolder/LDAPUserFolder.py", line
313, in _lookupuserbyattr
return roles, dn, user_attrs, groups
File "/zope/intranet/Products/LDAPUserFolder/LDAPDelegate.py", line
403, in search
return result
File "/zope/intranet/Products/LDAPUserFolder/LDAPDelegate.py", line
193, in connect
return conn
File "/zope/intranet/Products/LDAPUserFolder/SharedResource.py", line
114, in __call__
self._lock.release()
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py",
line 759, in simple_bind_s
return SimpleLDAPObject.simple_bind_s(self,*args,**kwargs)
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py",
line 176, in simple_bind_s
return self.result(msgid,all=1,timeout=self.timeout)
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py",
line 169, in simple_bind
return
self._ldap_call(self._l.simple_bind,who,cred,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls))
File "/usr/local/lib/python2.4/site-packages/ldap/ldapobject.py",
line 104, in _ldap_call
return result
---------------------------------------------------------------------------
2.
---------------------------------------------------------------------------
Thread 1115703616 (GET
/VirtualHostBase/http/intra:80/intranet/VirtualHostRoot/projects/index_DE):
File
"/usr/local/Zope-2.10.5/lib/python/ZServer/PubCore/ZServerPublisher.py",
line 25, in __init__
response=b)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
401, in publish_module
environ, debug, request, response)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
202, in publish_module_standard
response = publish(request, module_name, after_list, debug=debug)
File
"/zope/intranet/Products/PlacelessTranslationService/PatchStringIO.py",
line 51, in new_publish
x = Publish.old_publish(request, module_name, after_list, debug)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
119, in publish
request, bind=1)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/mapply.py", line
88, in mapply
if debug is not None: return debug(object,args,context)
File "/usr/local/Zope-2.10.5/lib/python/ZPublisher/Publish.py", line
42, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
313, in __call__
return self._bindAndExec(args, kw, None)
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
350, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PythonScripts/PythonScript.py",
line 327, in _exec
result = f(*args, **kw)
File "Script (Python)", line 20, in index_html
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
313, in __call__
return self._bindAndExec(args, kw, None)
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
350, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZopePageTemplate.py",
line 330, in _exec
result = self.pt_render(extra_context=bound_names)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZopePageTemplate.py",
line 426, in pt_render
result = PageTemplate.pt_render(self, source, extra_context)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/PageTemplate.py",
line 89, in pt_render
return super(PageTemplate, self).pt_render(c, source=source)
File
"/usr/local/Zope-2.10.5/lib/python/zope/pagetemplate/pagetemplate.py",
line 117, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 271, in __call__
self.interpret(self.program)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 891, in do_useMacro
self.interpret(macro)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 949, in do_defineSlot
self.interpret(slot)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 534, in do_optTag_tal
self.no_tag(stuff[-2], stuff[-1])
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 516, in no_tag
self.interpret(program)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/local/Zope-2.10.5/lib/python/zope/tal/talinterpreter.py",
line 586, in do_setLocal_tal
self.engine.setLocal(name, self.engine.evaluateValue(expr))
File "/usr/local/Zope-2.10.5/lib/python/zope/tales/tales.py", line
696, in evaluate
return expression(self)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZRPythonExpr.py",
line 49, in __call__
return eval(self._code, vars, {})
File "PythonExpr", line 1, in <expression>
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
313, in __call__
return self._bindAndExec(args, kw, None)
File
"/usr/local/Zope-2.10.5/lib/python/Shared/DC/Scripts/Bindings.py", line
350, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PythonScripts/PythonScript.py",
line 327, in _exec
result = f(*args, **kw)
File "/zope/intranet/Products/Silva/Folder.py", line 719, in
get_public_tree
return l
File "/zope/intranet/Products/Silva/Folder.py", line 776, in
_get_public_tree_helper
l.append((indent, item))
File "/zope/intranet/Products/Silva/tocfilter.py", line 36, in filter
return False
File "/zope/intranet/Products/Silva/tocfilter.py", line 19, in
hideFromTOC
return context.service_metadata.getMetadataValue(
File "/zope/intranet/Products/SilvaMetadata/MetadataTool.py", line
180, in getMetadataValue
return binding.get(set_id, element_id)
File "/zope/intranet/Products/SilvaMetadata/Binding.py", line 301, in get
return data.get(element_id)
File "/zope/intranet/Products/SilvaMetadata/Binding.py", line 500, in
_getData
return data
File "/zope/intranet/Products/SilvaMetadata/Element.py", line 207, in
getDefault
return self.field.get_value('default', content=content)
File "/zope/intranet/Products/Formulator/Field.py", line 142, in
get_value
return value
File "/zope/intranet/Products/Formulator/TALESField.py", line 44, in
__call__
return getEngine().getContext(kw).evaluate(expr)
File "/usr/local/Zope-2.10.5/lib/python/zope/tales/tales.py", line
696, in evaluate
return expression(self)
File
"/usr/local/Zope-2.10.5/lib/python/Products/PageTemplates/ZRPythonExpr.py",
line 49, in __call__
return eval(self._code, vars, {})
File "PythonExpr", line 1, in <expression>
File "/zope/intranet/Products/Silva/Security.py", line 272, in
sec_get_creator_info
return self.sec_get_member(self.getOwner().getId())
File "/zope/intranet/Products/Silva/Security.py", line 227, in
sec_get_member
return self.service_members.get_cached_member(userid)
File "/zope/intranet/Products/Silva/SimpleMembership.py", line 193,
in get_cached_member
return cloneMember(self.get_member(userid)).__of__(self)
File "/zope/intranet/Products/Silva/Membership.py", line 184, in
cloneMember
editor=member.editor())
File "/zope/intranet/Products/Silva/SimpleMembership.py", line 111,
in editor
return getattr(self, '_editor', self.default_editor())
File "/zope/intranet/Products/Silva/SimpleMembership.py", line 118,
in default_editor
return 'kupu'
File "/zope/intranet/Products/FileSystemSite/DirectoryView.py", line
426, in __of__
return res
File "/zope/intranet/Products/FileSystemSite/DirectoryView.py", line
177, in getContents
return self.data, self.objects
File "/zope/intranet/Products/FileSystemSite/DirectoryView.py", line
156, in _changed
return 0
---------------------------------------------------------------------------
After I called the URL that is shown in those 2 threads
(/VirtualHostBase/http/intra:80/intranet/VirtualHostRoot/projects/index_DE)
these entry will not disappear from the DeadlockDebugger's output.
Maybe they cause the busy loop.
I reaööy don't know which part excactly cause the loop since there are
some Silva-CMS-specific calls.
Regards
Nico
More information about the Zope
mailing list