TECHZEN Zenoss User Community ARCHIVE  

Trouble installing zenoss with Auto-deploy scrip

Subject: Trouble installing zenoss with Auto-deploy scrip
Author: Benjamin Dronen
Posted: 2014-10-28 16:16

When trying to install Zenoss using the auto-deploy script, I get this error:

2014-10-28 17:06:20,442 ERROR zen.ZenPackCMD: Error installing ZenPack /opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.1.4-py2.7.egg
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 247, in InstallEggAndZenPack
fromUI=fromUI)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 477, 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 436, in transactional_actions
zenPack.install(dmd)
File "/opt/zenoss/Products/ZenModel/ZenPack.py", line 240, in install
loader.load(self, app)
File "/opt/zenoss/Products/ZenModel/ZenPackLoader.py", line 106, in load
importer.loadObjectFromXML(xmlfile=f)
File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 481, in loadObjectFromXML
parser.parse(self.infile)
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 315, in end_element
self._cont_handler.endElement(name)
File "/opt/zenoss/Products/ZenModel/ZenPackLoader.py", line 101, in endElement
ImportRM.endElement(self, name)
File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 229, in endElement
self.commit()
File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 503, in commit
trans.commit()
File "/opt/zenoss/lib/python/transaction/_transaction.py", line 327, in commit
self._callBeforeCommitHooks()
File "/opt/zenoss/lib/python/transaction/_transaction.py", line 397, in _callBeforeCommitHooks
hook(*args, **kws)
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 269, in beforeCompletionHook
dataManager = AmqpDataManager(self._queuePublisher.channel, tx._manager)
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 420, in channel
return self._client.getChannel()
File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 90, in getChannel
ssl=self._connectionInfo.usessl)
File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 47, in __init__
super(Connection, self).__init__(*args, **kwargs)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 144, in __init__
(10, 30), # tune
File "/opt/zenoss/lib/python/amqplib/client_0_8/abstract_channel.py", line 95, in wait
self.channel_id, allowed_methods)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 202, in _wait_method
self.method_reader.read_method()
File "/opt/zenoss/lib/python/amqplib/client_0_8/method_framing.py", line 221, in read_method
raise m
error: [Errno 104] Connection reset by peer
2014-10-28 17:06:23,450 CRITICAL zen.zenoss.protocols.amqp: Could not use exchange $RawZenEvents: [Errno 104] Connection reset by peer
2014-10-28 17:06:23,450 CRITICAL zen.Events: Unable to publish event: [Errno 104] Connection reset by peer
2014-10-28 17:06:23,451 ERROR zen.ZenPackCmd: zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 487, in
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 263, in InstallEggAndZenPack
raise e
error: [Errno 104] Connection reset by peer
Exception socket.error: (107, 'Transport endpoint is not connected') in > ignored
Exception socket.error: (107, 'Transport endpoint is not connected') in > ignored
There was an error during the ZenPack operation: Command 'zenpack --install /opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.1.4-py2.7.egg' returned non-zero exit status 3
Error: A zenpack failed to install. Fix the zenpack or delete it from /opt/zenoss/var/zenpack_actions.txt, then restart zenoss.

Fresh install post step
--2014-10-28 17:06:25-- http://xx.xx.xx:8080/zport/dmd/DeviceLoader/loadDevicedeviceName=nms&de...
Resolving xx...
Connecting to xx.xx.xx|:8080... failed: Connection refused.
Zenoss installation completed.
Command failure: /sbin/service zenoss start

Then when trying /sbin/service zenoss start, I get this error:

Daemon: zeneventserver is already running
2014-10-28 17:06:54,479 INFO zen.ZPLoader: Loading /opt/zenoss/ZenPacks/ZenPacks.zenoss.ApacheMonitor-2.1.4-py2.7.egg/ZenPacks/zenoss/ApacheMonitor/objects/objects.xml
2014-10-28 17:06:54,586 INFO zen.AddToPack: End loading objects
2014-10-28 17:06:54,586 INFO zen.AddToPack: Processing links
2014-10-28 17:06:57,589 ERROR zen.ZenPackCMD: Error installing ZenPack /opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.1.4-py2.7.egg
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 247, in InstallEggAndZenPack
fromUI=fromUI)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 477, 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 436, in transactional_actions
zenPack.install(dmd)
File "/opt/zenoss/Products/ZenModel/ZenPack.py", line 240, in install
loader.load(self, app)
File "/opt/zenoss/Products/ZenModel/ZenPackLoader.py", line 106, in load
importer.loadObjectFromXML(xmlfile=f)
File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 481, in loadObjectFromXML
parser.parse(self.infile)
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 315, in end_element
self._cont_handler.endElement(name)
File "/opt/zenoss/Products/ZenModel/ZenPackLoader.py", line 101, in endElement
ImportRM.endElement(self, name)
File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 229, in endElement
self.commit()
File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 503, in commit
trans.commit()
File "/opt/zenoss/lib/python/transaction/_transaction.py", line 327, in commit
self._callBeforeCommitHooks()
File "/opt/zenoss/lib/python/transaction/_transaction.py", line 397, in _callBeforeCommitHooks
hook(*args, **kws)
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 269, in beforeCompletionHook
dataManager = AmqpDataManager(self._queuePublisher.channel, tx._manager)
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 420, in channel
return self._client.getChannel()
File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 90, in getChannel
ssl=self._connectionInfo.usessl)
File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 47, in __init__
super(Connection, self).__init__(*args, **kwargs)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 144, in __init__
(10, 30), # tune
File "/opt/zenoss/lib/python/amqplib/client_0_8/abstract_channel.py", line 95, in wait
self.channel_id, allowed_methods)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 202, in _wait_method
self.method_reader.read_method()
File "/opt/zenoss/lib/python/amqplib/client_0_8/method_framing.py", line 221, in read_method
raise m
error: [Errno 104] Connection reset by peer
2014-10-28 17:07:00,597 CRITICAL zen.zenoss.protocols.amqp: Could not use exchange $RawZenEvents: [Errno 104] Connection reset by peer
2014-10-28 17:07:00,597 CRITICAL zen.Events: Unable to publish event: [Errno 104] Connection reset by peer
2014-10-28 17:07:00,597 ERROR zen.ZenPackCmd: zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 487, in
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 263, in InstallEggAndZenPack
raise e
error: [Errno 104] Connection reset by peer
Exception socket.error: (107, 'Transport endpoint is not connected') in > ignored
Exception socket.error: (107, 'Transport endpoint is not connected') in > ignored
There was an error during the ZenPack operation: Command 'zenpack --install /opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.1.4-py2.7.egg' returned non-zero exit status 3
Error: A zenpack failed to install. Fix the zenpack or delete it from /opt/zenoss/var/zenpack_actions.txt, then restart zenoss.

So I deleted /opt/zenoss/var/zenpack_actions.txt, then started zenoss. It appeared to start normally, however, when I go to the webpage, it first flashes a login prompt, then quickly gives me this



<br/> Zenoss: Error<br/>











sign out





 ">http://www.zenoss.com/helpversion=4.2.5"> 











"">http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">


<br/> Zenoss:

dmd






















Loading...








A Zenoss error has occurred




View Error Details



Type: <class 'socket.error'>


Value: [Errno 104] Connection reset by peer


Traceback (most recent call last):
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 134, in publish
transactions_manager.commit()
File "/opt/zenoss/lib/python/Zope2/App/startup.py", line 301, in commit
transaction.commit()
File "/opt/zenoss/lib/python/transaction/_manager.py", line 89, in commit
return self.get().commit()
File "/opt/zenoss/lib/python/transaction/_transaction.py", line 327, in commit
self._callBeforeCommitHooks()
File "/opt/zenoss/lib/python/transaction/_transaction.py", line 397, in _callBeforeCommitHooks
hook(*args, **kws)
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 269, in beforeCompletionHook
dataManager = AmqpDataManager(self._queuePublisher.channel, tx._manager)
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 420, in channel
return self._client.getChannel()
File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 90, in getChannel
ssl=self._connectionInfo.usessl)
File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 47, in __init__
super(Connection, self).__init__(*args, **kwargs)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 144, in __init__
(10, 30), # tune
File "/opt/zenoss/lib/python/amqplib/client_0_8/abstract_channel.py", line 95, in wait
self.channel_id, allowed_methods)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 202, in _wait_method
self.method_reader.read_method()
File "/opt/zenoss/lib/python/amqplib/client_0_8/method_framing.py", line 221, in read_method
raise m
error: [Errno 104] Connection reset by peer



An error was encountered while publishing this resource. Please use the
form below to submit details of this error to Zenoss, Inc. This information
helps us identify and fix issues with the software, though we are unable
to respond individually to all submissions.

The Zenoss community">http://community.zenoss.com/forums/">community forums
are very active and a good resource for
solving problems and answering questions. Zenoss also provides
commercial">http://zenoss.com/support/">commercial
services and support packages.

The following fields are optional. This information will only be used
to contact you if further information is needed regarding this error.

Your name:



Your email address:



Additional info you would like to provide:




Click this button to send the above information to Zenoss, Inc.





http://xx.xx.xx.xx:8080/zport/acl_users/cookieAuthHelper/login" />



Any suggestions would be greatly appreciated. Thanks.



Subject: what is the underlying OS?
Author: Andrew Kirch
Posted: 2014-10-28 16:53

what is the underlying OS

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: Centos 5
Author: Benjamin Dronen
Posted: 2014-10-29 12:48

Centos 5. Sorry, forgot to mention that



Subject: UPDATE #2
Author: Benjamin Dronen
Posted: 2014-10-29 13:44

Fixed the issue using the set-rabbitmq-perms.sh script from:

http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html

Hope this helps anyone who was having the same problem as me.



< Previous
EC2ResponseError: EC2ResponseError: 401 Unauthorized
  Next
Notification in zep/actions.json of ZenPack doesn't pick up default values
>