Feb 27, 2014 12:25 AM
POSKeyError - unable to delete a device
-
Like (0)
Type: <class 'ZODB.POSException.POSKeyError'>
Value: 0x01efd4
Traceback (most recent call last):
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 126, in publish
request, bind=1)
File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 46, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/opt/zenoss/lib/python/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
return self.im_func(im_self, *args, **kw)
File "/opt/zenoss/Products/ZenWidgets/FileGzipper.py", line 82, in __call__
return original(self, __instance, *args, **keywords)
File "/opt/zenoss/lib/python/Products/Five/browser/pagetemplatefile.py", line 59, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 132, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations
File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 240, in __call__
interpreter()
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 266, in __call__
self.interpret(self.program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret
handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 883, in do_useMacro
self.interpret(macro)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret
handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 941, in do_defineSlot
self.interpret(slot)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret
handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 528, in do_optTag_tal
self.do_optTag(stuff)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 513, in do_optTag
return self.no_tag(start, program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 508, in no_tag
self.interpret(program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret
handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 615, in do_insertText_tal
text = self.engine.evaluateText(stuff[0])
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 225, in evaluateText
text = self.evaluate(expr)
File "/opt/zenoss/lib/python/zope/tales/tales.py", line 696, in evaluate
return expression(self)
File "/opt/zenoss/lib/python/zope/tales/expressions.py", line 217, in __call__
return self._eval(econtext)
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 155, in _eval
return render(ob, econtext.vars)
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 117, in render
ob = ob()
File "/opt/zenoss/Products/ZenUI3/browser/pages.py", line 53, in getComponentTree
tree = router.getComponentTree(uid)
File "/opt/zenoss/Products/Zuul/routers/device.py", line 168, in getComponentTree
data = facade.getComponentTree(uid)
File "/opt/zenoss/Products/Zuul/facades/devicefacade.py", line 210, in getComponentTree
for brain in dev.componentSearch():
File "/opt/zenoss/lib/python/ZODB/Connection.py", line 860, in setstate
self._setstate(obj)
File "/opt/zenoss/lib/python/ZODB/Connection.py", line 901, in _setstate
p, serial = self._storage.load(obj._p_oid, '')
File "/opt/zenoss/lib/python/relstorage/storage.py", line 476, in load
raise POSKeyError(oid)
POSKeyError: 0x01efd4
There is a device which is dummy with its existence in Zenoss. it is not polling or serving any reports.
Can someone advise on this error, how to debug, or remove the device
any help will be appriciated.
having the same issue.
I tried to follow along in http://plonechix.blogspot.ca/2009/12/definitive-guide-to-poskeyerror.html but didn't get very far.
Have you made any ground on this issue?
Looks like I was just able to solve my problem. Hopefully this works for you too
check this out: http://wiki.zenoss.org/PosKey_Error_Fixture
Download the FindPosKeyError.py file from: https://github.com/hackeys/zenoss
I had to comment out line 17: "from ZenPacks.zenoss.AdvancedSearch.SearchManager import SearchManager, SEARCH_MANAGER_ID"
as when I tried to run the file, I was getting a traceback.
Once I commented out that line, I ran: ./FindPosKeyError /zport/dmd/Devices/Network/Router
your path will probably be different than mine. It just shortens the amount of devices the script has to go through to speed things up
I then ran: ./FindPosKeyError --fixrels /zport/dmd/Devices/Network/Router
reloaded the Infrastructure tab and was able to delete the offending device.
hope that works for you!
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||