Oct 28, 2011 6:04 PM
error running zenchkrels -r -x1
-
Like (0)
I have a phontom device thats been plaguging me and I just got around to traking it down but when I follow the suggested "fix" I get this error. Anyt ideas?
ERROR:zen.Relations:remote relation /zport/dmd/ZenUsers/admin/messages/msg/messageQueue doesn't point back to /zport/dm d/ZenUsers/admin/messages/msg/messageQueue
WARNING:zen.Relations:reconnecting relation /zport/dmd/ZenUsers/admin/messages/msg/messageQueue to relation /zport/dmd/ ZenUsers/admin/messages/msg/messageQueue
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/CheckRelations.py", line 72, in <module>
tmbk.rebuild()
File "/opt/zenoss/Products/ZenUtils/CheckRelations.py", line 40, in rebuild
object.checkRelations(repair=repair)
File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 262, in checkRelations
rel.checkRelation(repair)
File "/opt/zenoss/Products/ZenRelations/ToOneRelationship.py", line 223, in checkRelation
rrel._add(parobj)
File "/opt/zenoss/Products/ZenRelations/ToOneRelationship.py", line 80, in _add
self._remoteRemove()
File "/opt/zenoss/Products/ZenRelations/ToOneRelationship.py", line 102, in _remoteRemove
remoteRel = getattr(aq_base(self.obj), self.remoteName())
AttributeError: messageQueue
no one? I've got a phantom device and I cant find it to delete it
I fix this problem last month on one of my zenoss clients. You have to log in as admin or any user that have manager access and go to http://serverip:8080/zport/dmd/ZenUsers/manage. Then go to the admin user and delete the messages entry. Next run zenchkrels -r -x1 again.
see attached screenshot. good luck.
Thanks. That did get me to run zenchkrels without errors, unfortunatley it did not fix my ghost device.
I still get alerts like this:
Message:
10.x.x.x sendto error Host XXXXXXX and XXXXXX.domain.com are both using ip 10.x.x.x
the device with the FQDN was added and deleted a few weeks ago. The new device is the same server just without the domain. Its worth noting that I had an entire batch of servers (5 to 10) go MIA right after we set utp this Zenoss server, I think I found them partly in Zope and parly under the collector and deleted them. Only this one is still plagueing me.
ugh now I get pop-up error messages on every page I go to
The server reported the following error:
AttributeError messages
The system has encountered an error. Please reload the page.
I guess deleting "messages" is not great advice
Try this in zendmd:
# Remove non-existent devices from performance monitors
from Products.ZenModel.PerformanceConf import PerformanceConf
for pmon in dmd.Monitors.Performance.objectValues():
if not isinstance(pmon, PerformanceConf): continue
for device in pmon.devices():
try:
bah = device.primaryAq()
except Exception:
print "Removing %s from %s" % (device.id, pmon.id)
pmon.devices._remove(device)
# Save changes
commit()
Unfortunately that didnt help. It appears I have other phantoms too now. There is an osprocess "java" that was deleted that is still reporting on some nodes that just came back when I re-enabled process monitoring for completely diffrent process.
Have you tried a reindex() and a commit() in zendmd? That generally fixes problems such as the one you're describing.
I tried that. reindex ran for a while but did not fix my problem. The server that I want to add IS the Zenoss server. Can I not add Zenoss to monitor itself?
You can, but not with the loopback address (127.0.0.1). You need to add it as the IP of a network interface on the device.
This is odd. I had not added it with the loopback but I deleted the device that was just the hostname and re-added it with the fqdn and it didnt give any errors. Then I renamed it to just the hostname and it still seems to be fine. Thanks for all of the suggestions
Hi
On doing this.. Im getting the following Pop up error :
The server reported the following error:
AttributeError messages
The system has encountered an error. Please reload the page.
I tried reindexing via zendmd and tried other solutions.. but cannot figure out how to stop this pop up appearing.
Please Help regarind this..
Tarun
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||