I'm getting same (or very similar) error in 2.2.4. Running appliance updated
from 2.2.1 specifically to enable the new community SQLServer zenpack.
The zenpack works, and is not listed as broken, but after installing it the
zenpack section of the UI errors out.
Code:
Type: DistributionNotFound
Value: ZenPacks.altea.SQLServer
Traceback (innermost last):
* Module ZPublisher.Publish, line 114, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 195, in _exec
* Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<FSPageTemplate at /zport/viewZenPacks used for /zport/dmd/ZenPackManager>
* Module TAL.TALInterpreter, line 206, in __call__
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 711, in do_useMacro
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 426, in do_optTag_tal
* Module TAL.TALInterpreter, line 411, in do_optTag
* Module TAL.TALInterpreter, line 406, in no_tag
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 711, in do_useMacro
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 426, in do_optTag_tal
* Module TAL.TALInterpreter, line 411, in do_optTag
* Module TAL.TALInterpreter, line 406, in no_tag
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 734, in do_defineSlot
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 426, in do_optTag_tal
* Module TAL.TALInterpreter, line 411, in do_optTag
* Module TAL.TALInterpreter, line 406, in no_tag
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 734, in do_defineSlot
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 426, in do_optTag_tal
* Module TAL.TALInterpreter, line 411, in do_optTag
* Module TAL.TALInterpreter, line 406, in no_tag
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 426, in do_optTag_tal
* Module TAL.TALInterpreter, line 411, in do_optTag
* Module TAL.TALInterpreter, line 406, in no_tag
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 711, in do_useMacro
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 426, in do_optTag_tal
* Module TAL.TALInterpreter, line 411, in do_optTag
* Module TAL.TALInterpreter, line 406, in no_tag
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 734, in do_defineSlot
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 426, in do_optTag_tal
* Module TAL.TALInterpreter, line 411, in do_optTag
* Module TAL.TALInterpreter, line 406, in no_tag
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 653, in do_loop_tal
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 477, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:ZenModel/skins/zenmodel/viewZenPacks.pt
Line 33, Column 5
Expression: <PythonExpr not hasattr(pack,'isBroken') or pack.isBroken()>
Names:
{'container': <ZentinelPortal at /zport>,
'context': <ZenPackManager at /zport/dmd/ZenPackManager>,
'default': <Products.PageTemplates.TALES.Default instance at 0xb7281a6c>,
'here': <ZenPackManager at /zport/dmd/ZenPackManager>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb3b8692c>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0xb7286acc>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0xb3b8692c>,
'request': <HTTPRequest,
URL=http://192.168.20.102:8080/zport/dmd/ZenPackManager/viewZenPacks>,
'root': <Application at >,
'template': <FSPageTemplate at /zport/viewZenPacks used for
/zport/dmd/ZenPackManager>,
'traverse_subpath': [],
'user': admin}
* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: not hasattr(pack,'isBroken') or pack.isBroken()
* Module Python expression "not hasattr(pack,'isBroken') or
pack.isBroken()", line 1, in <expression>
* Module Products.ZenModel.ZenPack, line 815, in isBroken
* Module Products.ZenModel.ZenPack, line 616, in path
* Module Products.ZenModel.ZenPack, line 732, in getModule
* Module Products.ZenModel.ZenPack, line 715, in getEntryPoint
* Module Products.ZenModel.ZenPack, line 705, in getDistribution
* Module pkg_resources, line 229, in get_distribution
* Module pkg_resources, line 115, in get_provider
* Module pkg_resources, line 585, in require
* Module pkg_resources, line 483, in resolve
DistributionNotFound: ZenPacks.altea.SQLServer
When I say the pack isn't listed as broken, I mean it looks OK in the zenpack
list:
Code:
zenpack --list
MicrosoftIIS6 (/home/zenoss/Products/MicrosoftIIS6)
Perfmon (/home/zenoss/Products/Perfmon)
ZenPacks.altea.SQLServer
(/home/zenoss/ZenPacks/ZenPacks.altea.SQLServer-1.1-py2.4.egg)
I thought I'd try the easy_install anyway, but it won't work because the egg
file isn't in the appliance. I installed it via the UI from the hard drive of
another PC. How can I get the egg into the appliance?
I really thought the python path would solve it, so I started by confirming my
actual python installation paths:
Code:
whereis python:
/usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/include/python2.4
I've tried the first two python paths in runzope, as well as those suggested
earlier, none help.
Assuming the zenpack isn't actually broken, all I can think to do is download a
fresh 2.2.4 appliance. Is there a way to migrate my data (minus the defect)?
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=26171#26171
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users