TECHZEN Zenoss User Community ARCHIVE  

Cannot install microsoft zenpack 2.7.8

Subject: Cannot install microsoft zenpack 2.7.8
Author: Joan
Posted: 2017-07-20 03:53

I am trying to update the microsoft zenpack from 2.7.3 to 2.7.8, but I am getting an error
$ zenpack --install ZenPacks.zenoss.Microsoft.Windows-2.7.8.eggINFO:zen.ZenPackCMD:Previous ZenPack exists with same name ZenPacks.zenoss.Microsoft.WindowsINFO:zen.ZenPackCMD:installing zenpack ZenPacks.zenoss.Microsoft.Windows; launching processERROR:zen.ZenPackCmd:zenpack command failedTraceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 487, in <module> zp = ZenPackCmd() File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 36, in __init__ CmdBase.__init__(self, noopts) File "/opt/zenoss/Products/ZenUtils/CmdBase.py", line 108, in __init__ zcml.load_site() File "/opt/zenoss/lib/python/Zope2/App/zcml.py", line 46, in load_site _context = xmlconfig.file(site_zcml) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 646, in file include(context, name, package) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 548, in include processxmlfile(f, context) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 380, in processxmlfile parser.parse(src) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/opt/zenoss/lib/python/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 364, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 359, in endElementNS self.context.end() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 620, in end self.stack.pop().finish() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 774, in finish actions = self.handler(context, **args) File "/opt/zenoss/lib/python/OFS/metaconfigure.py", line 46, in loadProducts xmlconfig.include(_context, zcml, package=product) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 548, in include processxmlfile(f, context) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 380, in processxmlfile parser.parse(src) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/opt/zenoss/lib/python/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 364, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 359, in endElementNS self.context.end() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 620, in end self.stack.pop().finish() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 773, in finish args = toargs(context, *self.argdata) File "/opt/zenoss/lib/python/zope/configuration/config.py", line 1564, in toargs args[str(name)] = field.fromUnicode(s) File "/opt/zenoss/lib/python/zope/configuration/fields.py", line 227, in fromUnicode v = vt.fromUnicode(s) File "/opt/zenoss/lib/python/zope/configuration/fields.py", line 137, in fromUnicode value = self.context.resolve(name) File "/opt/zenoss/lib/python/zope/configuration/config.py", line 178, in resolve mod = __import__(mname, *_import_chickens) File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.Microsoft.Windows-2.7.8.egg/ZenPacks/zenoss/Microsoft/Windows/datasources/PerfmonDataSource.py", line 24, in <module> from twisted.web._newclient import ResponseNeverReceivedZopeXMLConfigurationError: File "/opt/zenoss/etc/site.zcml", line 16.2-16.23 ZopeXMLConfigurationError: File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.Microsoft.Windows-2.7.8.egg/ZenPacks/zenoss/Microsoft/Windows/configure.zcml", line 30.4-34.10 ImportError: cannot import name ResponseNeverReceivedERROR:zen.ZenPackCMD:Error installing ZenPack ZenPacks.zenoss.Microsoft.Windows-2.7.8.eggTraceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 266, in InstallEggAndZenPack fromUI=fromUI) File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 507, in InstallDistAsZenPack zenPack, deferFileDeletion, existing = transactional_actions() File "/opt/zenoss/lib/python/ZODB/transact.py", line 44, in g r = f(*args, **kwargs) File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 446, in transactional_actions (p.returncode, err))ZenPackException: Error installing the egg (3): NoneERROR:zen.ZenPackCmd:zenpack command failedTraceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 488, in <module> zp.run() File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 164, in run fromUI=self.options.fromui) File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 282, in InstallEggAndZenPack raise eZenPackException: Error installing the egg (3): None
 I was suspecting then that I should have updated the requirements before upgrading the zenpack (altough usually your are warned when doing this) and tried to upgrade the PythonCollector to version 1.10.0.egg which led to more or less the same backtrace
ERROR:zen.ZenPackCmd:zenpack command failedTraceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 487, in <module> zp = ZenPackCmd() File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 36, in __init__ CmdBase.__init__(self, noopts) File "/opt/zenoss/Products/ZenUtils/CmdBase.py", line 108, in __init__ zcml.load_site() File "/opt/zenoss/lib/python/Zope2/App/zcml.py", line 46, in load_site _context = xmlconfig.file(site_zcml) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 646, in file include(context, name, package) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 548, in include processxmlfile(f, context) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 380, in processxmlfile parser.parse(src) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/opt/zenoss/lib/python/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 364, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 359, in endElementNS self.context.end() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 620, in end self.stack.pop().finish() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 774, in finish actions = self.handler(context, **args) File "/opt/zenoss/lib/python/OFS/metaconfigure.py", line 46, in loadProducts xmlconfig.include(_context, zcml, package=product) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 548, in include processxmlfile(f, context) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 380, in processxmlfile parser.parse(src) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/opt/zenoss/lib/python/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 364, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 359, in endElementNS self.context.end() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 620, in end self.stack.pop().finish() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 773, in finish args = toargs(context, *self.argdata) File "/opt/zenoss/lib/python/zope/configuration/config.py", line 1564, in toargs args[str(name)] = field.fromUnicode(s) File "/opt/zenoss/lib/python/zope/configuration/fields.py", line 227, in fromUnicode v = vt.fromUnicode(s) File "/opt/zenoss/lib/python/zope/configuration/fields.py", line 137, in fromUnicode value = self.context.resolve(name) File "/opt/zenoss/lib/python/zope/configuration/config.py", line 178, in resolve mod = __import__(mname, *_import_chickens) File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.Microsoft.Windows-2.7.8.egg/ZenPacks/zenoss/Microsoft/Windows/datasources/PerfmonDataSource.py", line 24, in <module> from twisted.web._newclient import ResponseNeverReceivedZopeXMLConfigurationError: File "/opt/zenoss/etc/site.zcml", line 16.2-16.23 ZopeXMLConfigurationError: File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.Microsoft.Windows-2.7.8.egg/ZenPacks/zenoss/Microsoft/Windows/configure.zcml", line 30.4-34.10 ImportError: cannot import name ResponseNeverReceived
Did anyone experienced the same issue?


Subject: RE: Cannot install microsoft zenpack 2.7.8
Author: Jason Olson
Posted: 2017-07-20 11:23

I did, yes. Or at least, different error but same behaviour of crashing on the Windows ZenPack when upgrading. After spending several weeks trying to fix it or work around it, I finally threw my hands up and just decided just to go with a new install of Zenoss and manually port all devices over.

It sure would be a nice feature to be able to export all nodes and devices for migration purposes, I have to say....

------------------------------
Jason Olson
------------------------------


Subject: RE: Cannot install microsoft zenpack 2.7.8
Author: Joan
Posted: 2017-07-21 03:07

I did a rollback to the previous version (unfortunately I had to recover a back a couple of days ago .. ) but never before did I had those issues. It seems that the issue is related the requiring a newer twisted version (from 0.11 to 0.12) that's not available on 4.2.5
Let's see if anyone at zenoss has a clue on this?


Subject: RE: Cannot install microsoft zenpack 2.7.8
Author: Joan
Posted: 2017-07-21 04:24

Just found the issue in zenoss'git, it seems that the fix was commited 11 days agot, but hasn't yet been published.

Merge pull request #862 from zenoss/feature/ZPS-1729 · zenoss/ZenPacks.zenoss.Microsoft.Windows@9f4f93e
GitHub remove preview
Merge pull request #862 from zenoss/feature/ZPS-1729 · zenoss/ZenPacks.zenoss.Microsoft.Windows@9f4f93e
ZenPacks.zenoss.Microsoft.Windows - Microsoft Windows ZenPack
View this on GitHub >


Any admins reading this, could you retire the broken version / push the fixed one?



Subject: RE: Cannot install microsoft zenpack 2.7.8
Author: Joan
Posted: 2017-08-31 03:35

Hello, It's been around a month with the unpublished fix, is there any schedule to get the 2.7.9 published?

Subject: RE: Cannot install microsoft zenpack 2.7.8
Author: Adam Williams
Posted: 2019-05-02 15:54

I still experience this issue trying to upgrade/install this ZenPack on ZenOSS 4.2.5 

ZenPacks.zenoss.Microsoft.Windows-2.7.8.egg
ZenPacks.zenoss.Microsoft.Windows-2.8.3.egg
ZenPacks.zenoss.Microsoft.Windows-2.9.3.egg
   -  all fail the same way

------------------------------
Adam Williams
Whitemice Consulting
MI
------------------------------


Subject: RE: Cannot install microsoft zenpack 2.7.8
Author: Jay Stanley
Posted: 2019-05-09 08:23

I would really look into updating to the latest SP.

If you cannot, I found a second reference to the twisted import in the latest version. Updated it and re-zipped the egg.

The egg in this repo is UNTESTED. I do not have an instance at below the latest SP to verify everything.

https://github.com/jstanley23/zenoss_patches/tree/master/MicrosoftZP

------------------------------
jstanley
------------------------------


< Previous
Event Transform
  Next
Exporting monitored events to a new zenoss installation.
>