Difference between revisions of "Repairing Poskey Errors"

From Zenoss Wiki
Jump to: navigation, search
Line 1: Line 1:
  
POSKeyError tracebacks occur when objects have references tonon-existing objects.  When this occurs for relationships, thefindposkeyerror script can be used to locate objects that are the causes of thePOSKeyError tracebacks.
+
POSKeyError tracebacks occur when objects have references to non-existing objects.  When this occurs for relationships, the FindPosKeyError script can be used to locate objects that are the causes of the POSKeyError tracebacks.
  
 
    
 
    
Findposkeyerrors script
+
The FindPosKeyErrors script can be found at  
Script can be found at  
+
 
https://github.com/hackeys/zenoss.git
 
https://github.com/hackeys/zenoss.git
instructions for findposkeyerror script
+
instructions for FindPosKeyError script
  
Here are the commands toinstall the findposkeyerror script:
+
Here are the commands to install the FindPosKeyError script:
  
   root # chown zenoss:zenossfindposkeyerror
+
   root # chown zenoss:zenoss FindPosKeyError
  
 
   root # su - zenoss
 
   root # su - zenoss
  
   zenoss $ chmod u+xfindposkeyerror
+
   zenoss $ chmod u+x FindPosKeyError
  
 
   
 
   
  
Here are a few sample runsof the script:
+
Here are a few sample runs of the script:
  
   zenoss $./findposkeyerror /zport/dmd/Monitors
+
   zenoss $./FindPosKeyError /zport/dmd/Monitors
  
   zenoss $./findposkeyerror --fixrels /zport/dmd/Monitors
+
   zenoss $./FindPosKeyError --fixrels /zport/dmd/Monitors
  
   zenoss $./findposkeyerror /zport/dmd/ZenUsers
+
   zenoss $./FindPosKeyError /zport/dmd/ZenUsers
  
   zenoss $./findposkeyerror --fixrels /zport/dmd/ZenUsers
+
   zenoss $./FindPosKeyError --fixrels /zport/dmd/ZenUsers
  
   zenoss $./findposkeyerror /zport/dmd/Devices
+
   zenoss $./FindPosKeyError /zport/dmd/Devices
  
   zenoss $./findposkeyerror --fixrels /zport/dmd/Devices
+
   zenoss $./FindPosKeyError --fixrels /zport/dmd/Devices
  
 
   
 
   
  
For ZenRelationshipobjects, there's a high likelihood that it is the _objects attribute that iscorrupted.  When findposkeyerror is run with the '--fixrels' flag, it willfix most ZenRelationship objects.
+
For ZenRelationship objects, there's a high likelihood that it is the _objects attribute that is corrupted.  When FindPosKeyError is run with the '--fixrels' flag, it will fix most ZenRelationship objects.

Revision as of 14:24, 18 July 2013

POSKeyError tracebacks occur when objects have references to non-existing objects. When this occurs for relationships, the FindPosKeyError script can be used to locate objects that are the causes of the POSKeyError tracebacks.


The FindPosKeyErrors script can be found at https://github.com/hackeys/zenoss.git instructions for FindPosKeyError script

Here are the commands to install the FindPosKeyError script:

 root # chown zenoss:zenoss FindPosKeyError
 root # su - zenoss
 zenoss $ chmod u+x FindPosKeyError


Here are a few sample runs of the script:

 zenoss $./FindPosKeyError /zport/dmd/Monitors
 zenoss $./FindPosKeyError --fixrels /zport/dmd/Monitors
 zenoss $./FindPosKeyError /zport/dmd/ZenUsers
 zenoss $./FindPosKeyError --fixrels /zport/dmd/ZenUsers
 zenoss $./FindPosKeyError /zport/dmd/Devices
 zenoss $./FindPosKeyError --fixrels /zport/dmd/Devices


For ZenRelationship objects, there's a high likelihood that it is the _objects attribute that is corrupted. When FindPosKeyError is run with the '--fixrels' flag, it will fix most ZenRelationship objects.