[Zope3-Users] KeyError: Surrogate

David Pratt fairwinds at eastlink.ca
Wed Apr 26 10:52:14 EDT 2006


Hi Bernd. This is a bit unsettling. I realize as a practical matter, 
folks want their sites to run so the recommendation for zserver. It 
would be good to know what it is causing this problem with twisted. 
Anyone know how widespread this is. Anyone else with this experience.

Regards,
David

Bernd Dorn wrote:
> 
> On 25.04.2006, at 19:38, ksmith99 wrote:
> 
>>
>> Hi All,
>>
>> I'm using Zope 3.2.0 with Python 2.4.1, this error is popping up and
>> crashing my zope. Does anyone know where I should start looking for
>> problems?
>>
> 
> i've had the same problem, seems that it has something to do with the 
> twisted server, because on zserver this does not happen
> 
> workaround: make a zserver instance mkzopeinstance -zserver option
> 
> 
> 
>> Thanks,
>>
>> Ksmith
>>
>>
>> 2006-04-22T20:53:59 ERROR SiteError Exception while getting
>> IExceptionSideEffects adapter
>> Traceback (most recent call last):
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py", 
>>
>> line 357, in handleException
>>     adapter = IExceptionSideEffects(exception, None)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/interface.py", 
>>
>> line 675, in __call__
>>     adapter = self.__adapt__(obj)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/interface.py", 
>>
>> line 742, in __adapt__
>>     adapter = hook(self, obj)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/twisted/python/components.py", 
>>
>> line 124, in _hook
>>     factory = lookup(declarations.providedBy(ob), iface)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 401, in lookup1
>>     return self.lookup((required,), provided, name, default)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 333, in lookup
>>     byname = s.get(provided)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 253, in get
>>     self.clean()
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 159, in clean
>>     base.unsubscribe(self)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 280, in unsubscribe
>>     raise KeyError(dependent)
>> KeyError: <Surrogate(<zope.interface.Provides object at 0x42340bac>)>
>> ------
>> 2006-04-22T22:08:59 ERROR SiteError
>> http://www.edwardmontgomeryfineart.com/artists/anne_blair_brown/ArtCollection/lunch_break/@@viewart/thumbnail 
>>
>> Traceback (most recent call last):
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/publisher/publish.py", 
>>
>> line 138, in publish
>>     result = publication.callObject(request, object)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py", 
>>
>> line 161, in callObject
>>     return mapply(ob, request.getPositionalArguments(), request)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/publisher/publish.py", 
>>
>> line 113, in mapply
>>     return debug_call(object, args)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/publisher/publish.py", 
>>
>> line 119, in debug_call
>>     return object(*args)
>>   File "/home/admin/myzope/z1/lib/python/gallerymaker/browser/photo.py",
>> line 76, in __call__
>>     image.contentType)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/security/checker.py", 
>>
>> line 475, in check
>>     self._checker2.check(object, name)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/securitypolicy/zopepolicy.py", 
>>
>> line 278, in checkPermission
>>     if not self.cached_decision(
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/securitypolicy/zopepolicy.py", 
>>
>> line 92, in cached_decision
>>     decision = self.cached_prinper(parent, principal, groups, permission)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/securitypolicy/zopepolicy.py", 
>>
>> line 138, in cached_prinper
>>     prinper = IPrincipalPermissionMap(parent, None)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/interface.py", 
>>
>> line 675, in __call__
>>     adapter = self.__adapt__(obj)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/interface.py", 
>>
>> line 742, in __adapt__
>>     adapter = hook(self, obj)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/twisted/python/components.py", 
>>
>> line 124, in _hook
>>     factory = lookup(declarations.providedBy(ob), iface)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 401, in lookup1
>>     return self.lookup((required,), provided, name, default)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 333, in lookup
>>     byname = s.get(provided)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 253, in get
>>     self.clean()
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 159, in clean
>>     base.unsubscribe(self)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 280, in unsubscribe
>>     raise KeyError(dependent)
>> KeyError: <Surrogate(<zope.interface.Provides object at 0x42d8608c>)>
>> ------
>> 2006-04-24T14:08:28 ERROR SiteError http://207.210.78.157:8080
>> Traceback (most recent call last):
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/publisher/publish.py", 
>>
>> line 132, in publish
>>     publication.beforeTraversal(request)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py", 
>>
>> line 82, in beforeTraversal
>>     p = prin_reg.authenticate(request)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/security/principalregistry.py", 
>>
>> line 38, in authenticate
>>     a = interfaces.ILoginPassword(request, None)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/interface.py", 
>>
>> line 675, in __call__
>>     adapter = self.__adapt__(obj)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/interface.py", 
>>
>> line 742, in __adapt__
>>     adapter = hook(self, obj)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/component/hooks.py", 
>>
>> line 96, in adapter_hook
>>     return siteinfo.adapter_hook(interface, object, name, default)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 413, in adapter_hook
>>     factory = self.lookup1(providedBy(object), interface, name)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 401, in lookup1
>>     return self.lookup((required,), provided, name, default)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 333, in lookup
>>     byname = s.get(provided)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 253, in get
>>     self.clean()
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 159, in clean
>>     base.unsubscribe(self)
>>   File
>> "/home/admin/downloads/Zope-3.2.0/build/lib.linux-i686-2.4/zope/interface/adapter.py", 
>>
>> line 280, in unsubscribe
>>     raise KeyError(dependent)
>> KeyError: <Surrogate(<zope.interface.Provides object at 0x4487120c>)>
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/KeyError%3A-Surrogate-t1506827.html#a4086718
>> Sent from the Zope3 - users forum at Nabble.com.
>>
>> _______________________________________________
>> Zope3-users mailing list
>> Zope3-users at zope.org
>> http://mail.zope.org/mailman/listinfo/zope3-users
> 
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
> 


More information about the Zope3-users mailing list