TECHZEN Zenoss User Community ARCHIVE  

While adding a New Device - A Zenoss error has occurred : An error was encounte ...

Subject: While adding a New Device - A Zenoss error has occurred : An error was encountered while publishing this resource.
Author: [Not Specified]
Posted: 2014-12-31 02:28

Type:
Value: (http://127.0.0.1>, , u'PowerHMC')

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/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 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 737, in do_insertStructure_tal
structure = self.engine.evaluateStructure(expr)
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 218, in evaluateStructure
text = super(ZopeContext, self).evaluateStructure(expr)
File "/opt/zenoss/lib/python/zope/tales/tales.py", line 696, in evaluate
return expression(self)
File "/opt/zenoss/lib/python/zope/contentprovider/tales.py", line 80, in __call__
return provider.render()
File "/opt/zenoss/lib/python/zope/viewlet/manager.py", line 126, in render
return u'\n'.join([viewlet.render() for viewlet in self.viewlets])
File "/opt/zenoss/Products/ZenUI3/browser/javascript.py", line 80, in render
vals.append(SCRIPT_TAG_SRC_TEMPLATE % getVersionedPath(path))
File "/opt/zenoss/Products/ZenUI3/browser/javascript.py", line 46, in getVersionedPath
token = getPathModifiedTime(path) or VERSION
File "", line 2, in getPathModifiedTime
File "/opt/zenoss/Products/Zuul/decorators.py", line 55, in memoize
cache[sig] = f(*args, **kwargs)
File "/opt/zenoss/Products/ZenUI3/browser/javascript.py", line 37, in getPathModifiedTime
resource = getAdapter(dummyRequest, name=identifier)
File "/opt/zenoss/lib/python/zope/component/_api.py", line 96, in getAdapter
raise ComponentLookupError(object, interface, name)
ComponentLookupError: (http://127.0.0.1>, , u'PowerHMC')



Subject: Check $ZENHOME/log/event.log
Author: Chet Luther
Posted: 2015-01-05 09:12

Could you check $ZENHOME/log/event.log while performing this opertion Typically when you see an error like this in the web interface, a more useful version is written to event.log. Post the full output from event.log and I may be able to suggest the source of the problem.



Subject: I have also had it suggested
Author: Andrew Kirch
Posted: 2015-01-05 09:15

I have also had it suggested that it is possible that Zenoss wasn't properly restarted after deploying a new ZenPack. You may find that a full zenoss restart will help. Also take a look at the Zenpacks tab under Advanced.

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: Referencing an unregistered resourceDirectory
Author: Chet Luther
Posted: 2015-01-05 11:16

I think the problem is that somewhere (likely a zcml file) you are referencing a path such as "/++resource++PowerHMC/something", but you haven't registered a resourceDirectory with the "PowerHMC" name. Note that these are case sensitive and must match.

See this example from the AWS ZenPack.

Registering the "aws" resourceDirectory..
https://github.com/zenoss/ZenPacks.zenoss.AWS/blob/develop/ZenPacks/zeno...

Referencing the "aws" resourceDirectory..
https://github.com/zenoss/ZenPacks.zenoss.AWS/blob/develop/ZenPacks/zeno...



Subject: Fantastic Chet.. Your tip
Author: [Not Specified]
Posted: 2015-01-05 23:31

Fantastic Chet.. Your tip helped me to fix the issue. Really a quick Fix. All I had to do was to exactly change the referencing path.

Thanks a ton



< Previous
Unable to get filesytem thresholds to work
  Next
Cannot get Zenoss to use MIB file.
>