MikeM
2012-10-12 16:30:43 UTC
MikeM [http://community.zenoss.org/people/MikeM] created the discussion
"A Zenoss error has occurred"
To view the discussion, visit: http://community.zenoss.org/message/69131#69131
--------------------------------------------------------------
I setup my first Zenoss server (4.2.0) on CentOS. Everything was running smoothly until I added the Printer MIB Zenpack, and attempted to restart the zopectl service per the instructions. Now I can no longer access anything. I can login, but get redirected to "A Zenoss error has occurred."
Here are the error details:
*Type: <class 'zope.interface.interfaces.ComponentLookupError'>*
*Value: (<zope.publisher.browser.TestRequest instance URL=http://127.0.0.1>, <InterfaceClass zope.interface.Interface>, u'PrinterMibSupply.js')*
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<cr> to step into published object.
 File "/opt/zenoss/lib/python/Products/Five/browser/metaconfigure.py", line 476, in __call__
   return self.index(*args, **kw)
 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 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 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 "<string>", 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: (<zope.publisher.browser.TestRequest instance URL=http://127.0.0.1>, <InterfaceClass zope.interface.Interface>, u'PrinterMibSupply.js')
I can see the error is related to the Printer MIB Zenpack, but I haven't the slightest clue what to do. Please help.

--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69131#69131]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"A Zenoss error has occurred"
To view the discussion, visit: http://community.zenoss.org/message/69131#69131
--------------------------------------------------------------
I setup my first Zenoss server (4.2.0) on CentOS. Everything was running smoothly until I added the Printer MIB Zenpack, and attempted to restart the zopectl service per the instructions. Now I can no longer access anything. I can login, but get redirected to "A Zenoss error has occurred."
Here are the error details:
*Type: <class 'zope.interface.interfaces.ComponentLookupError'>*
*Value: (<zope.publisher.browser.TestRequest instance URL=http://127.0.0.1>, <InterfaceClass zope.interface.Interface>, u'PrinterMibSupply.js')*
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<cr> to step into published object.
 File "/opt/zenoss/lib/python/Products/Five/browser/metaconfigure.py", line 476, in __call__
   return self.index(*args, **kw)
 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 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 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 "<string>", 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: (<zope.publisher.browser.TestRequest instance URL=http://127.0.0.1>, <InterfaceClass zope.interface.Interface>, u'PrinterMibSupply.js')
I can see the error is related to the Printer MIB Zenpack, but I haven't the slightest clue what to do. Please help.

--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69131#69131]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]