Skip to content

Instantly share code, notes, and snippets.

@candlerb
Created September 22, 2015 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save candlerb/df0543b43a4ca70891bc to your computer and use it in GitHub Desktop.
Save candlerb/df0543b43a4ca70891bc to your computer and use it in GitHub Desktop.
[zenoss@portal ~]$ zenrelationscan -f
[2015-09-22 11:02:32] Initializing zenrelationscan version 1.0.1 (detailed log at /opt/zenoss/log/toolbox/zenrelationscan.log)
Traceback (most recent call last):
File "/opt/zenoss/bin/zenrelationscan", line 8, in <module>
load_entry_point('zenoss.toolbox==0.8.0', 'console_scripts', 'zenrelationscan')()
File "/opt/zenoss/lib/python2.7/site-packages/zenoss.toolbox-0.8.0-py2.7.egg/zenoss/toolbox/zenrelationscan.py", line 258, in main
dmd = ZenScriptBase(noopts=True, connect=True).dmd
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 41, in __init__
self.connect()
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 47, in connect
self.getDataRoot()
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 116, in getDataRoot
self.dataroot = getObjByPath(self.app, self.options.dataroot)
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 228, in getObjByPath
base = base.getPhysicalRoot()
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)
ZODB.POSException.POSKeyError: 0x01
[zenoss@portal ~]$ findposkeyerror -f
[2015-09-22 11:02:43] Initializing findposkeyerror version 1.8.1 (detailed log at /opt/zenoss/log/toolbox/findposkeyerror.log)
Traceback (most recent call last):
File "/opt/zenoss/bin/findposkeyerror", line 8, in <module>
load_entry_point('zenoss.toolbox==0.8.0', 'console_scripts', 'findposkeyerror')()
File "/opt/zenoss/lib/python2.7/site-packages/zenoss.toolbox-0.8.0-py2.7.egg/zenoss/toolbox/findposkeyerror.py", line 546, in main
dmd = ZenScriptBase(noopts=True, connect=True).dmd
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 41, in __init__
self.connect()
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 47, in connect
self.getDataRoot()
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 116, in getDataRoot
self.dataroot = getObjByPath(self.app, self.options.dataroot)
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 228, in getObjByPath
base = base.getPhysicalRoot()
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)
ZODB.POSException.POSKeyError: 0x01
[zenoss@portal ~]$ zodbscan
[2015-09-22 11:02:51] Initializing zodbscan version 1.0.3 (detailed log at /opt/zenoss/log/toolbox/zodbscan.log)
[2015-09-22 11:02:51] Examining 4 items in the 'zodb' database:
[2015-09-22 11:02:51] Scanning [ ] 0% Traceback (most recent call last):
File "/opt/zenoss/bin/zodbscan", line 8, in <module>
load_entry_point('zenoss.toolbox==0.8.0', 'console_scripts', 'zodbscan')()
File "/opt/zenoss/lib/python2.7/site-packages/zenoss.toolbox-0.8.0-py2.7.egg/zenoss/toolbox/zodbscan.py", line 402, in main
PKEReporter(zodb_name).run(log, number_of_issues)
File "/opt/zenoss/lib/python2.7/site-packages/zenoss.toolbox-0.8.0-py2.7.egg/zenoss/toolbox/zodbscan.py", line 361, in run
reported, scanned, total = self.verify(oid, log, number_of_issues)
File "/opt/zenoss/lib/python2.7/site-packages/zenoss.toolbox-0.8.0-py2.7.egg/zenoss/toolbox/zodbscan.py", line 335, in verify
self.report(oid, path, log)
File "/opt/zenoss/lib/python2.7/site-packages/zenoss.toolbox-0.8.0-py2.7.egg/zenoss/toolbox/zodbscan.py", line 271, in report
parent_oid = ancestors[-2]
IndexError: tuple index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment