Discussion:
Cannot Start Zenoss
ubrob
2013-01-18 06:31:24 UTC
Permalink
ubrob [http://community.zenoss.org/people/ubrob] created the discussion

"Cannot Start Zenoss"

To view the discussion, visit: http://community.zenoss.org/message/71064#71064

--------------------------------------------------------------
I cannot start Zenoss on my Centos 6.3 x64 after using the install script. The only thing I can think of that might be causing this is that I am behind a proxy that I might need to communicate via.

Below are the errors I receive in the console when running Service zenoss start:


Daemon: zopectl daemon manager not running
Daemon: zeneventserver stopping...
Daemon: zeneventserver starting...
Waiting for zeneventserver to start..........
2013-01-19 02:16:36,290 INFO zen.ZPLoader: Loading /opt/zenoss/ZenPacks/ZenPacks.zenoss.ApacheMonitor-2.1.3-py2.7.egg/ZenPacks/zenoss/ApacheMonitor/objects/objects.xml
2013-01-19 02:16:37,664 INFO zen.AddToPack: End loading objects
2013-01-19 02:16:37,665 INFO zen.AddToPack: Processing links
2013-01-19 02:16:40,675 ERROR zen.ZenPackCMD: Error installing ZenPack /opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.1.3-py2.7.egg
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 243, in InstallEggAndZenPack
fromUI=fromUI)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 471, 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 430, 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 107, 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 102, 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 236, in beforeCompletionHook
dataManager = AmqpDataManager(self._queuePublisher.channel, tx._manager)
File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 396, in channel
return self._client.getChannel()
File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 69, in getChannel
ssl=self._connectionInfo.usessl)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 147, in __init__
host = self._x_open(virtual_host, insist=insist)
File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 491, in _x_open
(10, 50), # Connection.redirect
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
2013-01-19 02:16:43,705 CRITICAL zen.zenoss.protocols.amqp: Could not use exchange $RawZenEvents: [Errno 104] Connection reset by peer
2013-01-19 02:16:43,708 CRITICAL zen.Events: Unable to publish event: [Errno 104] Connection reset by peer
2013-01-19 02:16:43,712 ERROR zen.ZenPackCmd: zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 486, 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 259, in InstallEggAndZenPack
raise e
error: [Errno 104] Connection reset by peer
Exception socket.error: (107, 'Transport endpoint is not connected') in <bound method TCPTransport.__del__ of <amqplib.client_0_8.transport.TCPTransport object at 0x7556390>> ignored
Exception socket.error: (107, 'Transport endpoint is not connected') in <bound method TCPTransport.__del__ of <amqplib.client_0_8.transport.TCPTransport object at 0x75d10d0>> ignored
There was an error during the ZenPack operation: Command 'zenpack --install /opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.1.3-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.





I have also tried to remove the zenpack_actions.txt to prevent loading of any zenpacks. However I then get this in my browser when going to the Zenoss url:

*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 236, in beforeCompletionHook
    dataManager = AmqpDataManager(self._queuePublisher.channel, tx._manager)
  File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 396, in channel
    return self._client.getChannel()
  File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 69, in getChannel
    ssl=self._connectionInfo.usessl)
  File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 147, in __init__
    host = self._x_open(virtual_host, insist=insist)
  File "/opt/zenoss/lib/python/amqplib/client_0_8/connection.py", line 491, in _x_open
    (10, 50),    # Connection.redirect
  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



Help!! :)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71064#71064]

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]
Marc Weisel
2013-01-22 09:17:06 UTC
Permalink
Marc Weisel [http://community.zenoss.org/people/mweisel] created the discussion

"Re: Cannot Start Zenoss"

To view the discussion, visit: http://community.zenoss.org/message/71109#71109

--------------------------------------------------------------
ubrob:

You may be running into the same issue/error that I encountered. I have a blog post for a fresh Zenoss Core 4 on CentOS 6 that may help ( http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html ). Refer to the 'Start Zenoss' section about the *set-rabbitmq-perms.sh* script.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71109#71109]

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]
jcurry
2013-01-22 16:16:48 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Cannot Start Zenoss"

To view the discussion, visit: http://community.zenoss.org/message/71138#71138

--------------------------------------------------------------
So, you used the auto-deploy script to install this and it ran clean?

Check Marc's excellent suggestion.  If that doesn't fix it, as the root user, try running rabbitmqctl as shown below:


[***@zen42 student]# rabbitmqctl -p /zenoss list_queues
Listing queues ...
celery    0
zen42.celeryd.pidbox    0
zenoss.queues.zep.migrated.summary    0
zenoss.queues.zep.migrated.archive    0
zenoss.queues.zep.rawevents    0
zenoss.queues.zep.heartbeats    0
zenoss.queues.zep.zenevents    0
zenoss.queues.zep.modelchange    0
zenoss.queues.zep.signal    0
...done.
[***@zen42 student]#

If you get similar output then your MQ queues are OK.  If not, look towards the end of the Zenoss Admin Guide in
Section 14.8 "Host Name Changes" for some commands to reset your rabbit MQ environment.

NB===NB===NB

If this is Zenoss 4.2.3 installed with the auto-deploy script or has had the secure_zenoss.sh script run standalone, then the password required for the following fix will NOT be zenoss in line 3 below..

export VHOST="/zenoss"
export USER="zenoss"
export PASS="zenoss"
rabbitmqctl stop_app
rabbitmqctl reset
rabbitmqctl start_app
rabbitmqctl add_vhost "$VHOST"
rabbitmqctl add_user "$USER" "$PASS"
rabbitmqctl set_permissions -p "$VHOST" "$USER" '.*' '.*' '.*'

Check the amqppassword in $ZENHOME/etc/global.conf and use that instead of zenoss.

When you have run through these as root, as the zenoss user, do a:
zenoss stop
zenoss start

As the root user, recheck your queues with:
rabbitmqctl -p /zenoss list_queues

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71138#71138]

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]
w6bi
2013-03-06 23:00:42 UTC
Permalink
w6bi [http://community.zenoss.org/people/w6bi] created the discussion

"Re: Cannot Start Zenoss"

To view the discussion, visit: http://community.zenoss.org/message/72294#72294

--------------------------------------------------------------
This URL doesn't seem to provide any text:  http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html

Orv
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72294#72294]

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]
hao lin
2013-11-08 14:54:32 UTC
Permalink
hao lin [http://community.zenoss.org/people/haowells] created the discussion

"Re: Cannot Start Zenoss"

To view the discussion, visit: http://community.zenoss.org/message/75211#75211

--------------------------------------------------------------
http://community.zenoss.org/people/mweisel Marc,

I meet same error, URL http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html http://binarynature.blogspot.com/2012/11/zenoss-core-4-installation.html can not be opened. would you past your solution here again. thanks.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75211#75211]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
hydruid
2013-11-08 16:15:01 UTC
Permalink
hydruid [http://community.zenoss.org/people/hydruid] created the discussion

"Re: Cannot Start Zenoss"

To view the discussion, visit: http://community.zenoss.org/message/75205#75205

--------------------------------------------------------------
That URL opened for me just fine!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75205#75205]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...