TECHZEN Zenoss User Community ARCHIVE  

RESOLVED: UI throws ZODB.POSException.POSKeyError while findposkeyerror comes u ...

Subject: RESOLVED: UI throws ZODB.POSException.POSKeyError while findposkeyerror comes up empty
Author: [Not Specified]
Posted: 2015-02-24 10:23

Hi

I am running the Zenoss Core VM 4.2.3 VM (additional HD and memory i think )

Today i manged to essentially lock me out completely; everything i can do is
input login credentials, immediately after that i get the following traceback:

#############traceback###########
Type:
Value: 0x12156d

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 to step into published object.
File "/opt/zenoss/Products/ZenUtils/patches/pasmonkey.py", line 153, in login
pas_instance.updateCredentials(request, response, login, password)
File "/opt/zenoss/lib/python/Products/PluggableAuthService/PluggableAuthService.py", line 1100, in updateCredentials
updater.updateCredentials(request, response, login, new_password)
File "/opt/zenoss/lib/python/Products/PluggableAuthService/plugins/SessionAuthHelper.py", line 102, in updateCredentials
request.SESSION.set('__ac_name', login)
File "/opt/zenoss/lib/python/ZPublisher/HTTPRequest.py", line 1379, in __getattr__
v = self.get(key, default, returnTaints=returnTaints)
File "/opt/zenoss/lib/python/ZPublisher/HTTPRequest.py", line 1336, in get
v = v()
File "/opt/zenoss/lib/python/Products/Sessions/SessionDataManager.py", line 101, in getSessionData
return self._getSessionDataObject(key)
File "/opt/zenoss/lib/python/Products/Sessions/SessionDataManager.py", line 188, in _getSessionDataObject
ob = container.new_or_existing(key)
File "/opt/zenoss/lib/python/Products/Transience/Transience.py", line 839, in new_or_existing
item = self.get(key, _marker)
File "/opt/zenoss/lib/python/Products/Transience/Transience.py", line 495, in get
item = self._move_item(k, current_ts, default)
File "/opt/zenoss/lib/python/Products/Transience/Transience.py", line 285, in _move_item
self._housekeep(current_ts)
File "/opt/zenoss/lib/python/Products/Transience/Transience.py", line 934, in _housekeep
self._finalize(now)
File "/opt/zenoss/lib/python/Products/Transience/Transience.py", line 574, in _finalize
self._do_finalize_work(now, max_ts, start_finalize)
File "/opt/zenoss/lib/python/Products/Transience/Transience.py", line 598, in _do_finalize_work
values = list(self._data[key].values())
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: 0x12156d
###########end traceback#############

What happened before

One of my reports came up with "broken" graphs.
googled and found a hint to check
/tmp/renderserver directory for permissions or delete it and have zenoss recreate it on next start.

-stopped zenoss ( /etc/init.d/zenoss stop)
-deleted /tmp/renderserver
- well as there was lots of other old stuff i deleted that too

started zenoss ( /etc/init.d/zenoss start ) without errors

---> Situation as described above.

googled error.
found reference to the Zenoss.toolbox on zenoss.com

Installed zenoss toolbox.
zennoss.toolbox utility findposkeyerror found and (2nd run) fixed a couple of errors.
all other utilities found no errors.

--> Situation still as described above.

turned to the forum for advice.

TIA

Christian



Subject: stop zenoss
Author: Andrew Kirch
Posted: 2015-02-26 11:41

stop zenoss
delete the zodb_session database
recreate a blank zodb_session database
start zenoss

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: Thanks a lot, Andrew,
Author: [Not Specified]
Posted: 2015-02-27 01:57

Thanks a lot, Andrew,

worked like a charm.

regards

Christian



< Previous
Devices not registering as down
  Next
"Unable to create the initial Zenoss object database" error
>