Discussion:
Error on first login
Mario B
2012-09-26 18:55:11 UTC
Permalink
Mario B [http://community.zenoss.org/people/s_catz] created the discussion

"Error on first login"

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

--------------------------------------------------------------
Hi all
i just finished installing Zenoss on a Centos system.  when I try to access the web console for the first time I briefly get sent to a page with a username and password login then I'm directed to a html error page. This is the url of the error page http://zenosserver:8080/zport/acl_users/cookieAuthHelper/login http://zenosserver:8080/zport/acl_users/cookieAuthHelper/login and the page looks like whats below.  Any help would be greatly appreciated!
<html>
    <head>
        <title>
            Zenoss: Error
        </title>
        <link rel="icon" href="/zport/dmd/favicon.ico" type="image/x-icon" />
        <link rel="shortcut icon" href="/zport/dmd/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" type="text/css" href="/++resource++extjs/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="/++resource++zenui/css/zenoss.css" />
        <link rel="stylesheet" type="text/css" href="/++resource++zenui/css/zenui3.css" />
       
        <style>
            #center {
                font-family: helvetica,tahoma,arial,sans-serif;
                padding: 1em;
                border: 1px solid #ABC;
                margin: 1em;
                background-color: #D4E0EE;
            }
            #center h2 {
                font-size: 140%;
                margin: 5px auto;
            }
            body {
            }
        </style>
    </head>
    <body>
        <div id="header">
            <div class="bg">
                <div class="bg-leftcap">
                    <div class="bg-tile">
                        <div class="bg-logo"></div>
                        <div id="primarynav">
                            <ul><li class="nav-item-inactive">
<div class="sd-left">
    <div class="sd-right">
        <a href="/zport/dmd/Dashboard" target="_self" id="Dashboard-nav-button">Dashboard</a>
   </div>
</div>
</li>

<li class="nav-item-inactive">
<div class="sd-left">
    <div class="sd-right">
        <a href="/zport/dmd/Events/evconsole" target="_self" id="Events-nav-button">Events</a>
   </div>
</div>
</li>

<li class="nav-item-inactive">
<div class="sd-left">
    <div class="sd-right">
        <a href="/zport/dmd/itinfrastructure" target="_self" id="Infrastructure-nav-button">Infrastructure</a>
   </div>
</div>
</li>

<li class="nav-item-inactive">
<div class="sd-left">
    <div class="sd-right">
        <a href="/zport/dmd/reports" target="_self" id="Reports-nav-button">Reports</a>
   </div>
</div>
</li>

<li class="nav-item-inactive">
<div class="sd-left">
    <div class="sd-right">
        <a href="/zport/dmd/editSettings" target="_self" id="Advanced-nav-button">Advanced</a>
   </div>
</div>
</li>
</ul>
                            <div id="header-extra">
                                <div>
                                    <a id="sign-out-link" href="/zport/dmd/logoutUser">sign out
                                       </a>
                                </div>
                                <div>
                                    <div id="help-icon-container">
                                        <span></span><!-- ie needs empty span tags in some versions -->
                                        <a target="_blank" alt="Help" href="http://www.zenoss.com/help?version=4.2.0"> </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="secondarynav">
                            <ul></ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="center">




   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html>
    <head>
    <title>
        Zenoss:
       
            dmd
       
    </title>
       
   
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="/zport/dmd/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="yui/reset-fonts-grids/reset-fonts-grids.css" />

    <link rel="stylesheet" href="/zport/portal_skins/zenoss.css">
    <!--[if IE 7]>
        <link rel="stylesheet" type="text/css" title="zenoss"
            href="zenoss_ie.css" >
    <![endif]-->
    <!--[if IE 6]>
        <link rel="stylesheet" type="text/css" title="zenoss"
            href="zenoss_ie6.css" >
    <![endif]-->
    <script>
        var DEBUG_MODE = false;
        var VERSION_ID = '420';
    </script>
    <script type="text/javascript" src="js/MochiKit.js"></script>
    <script type="text/javascript" language="javascript" src="/zport/dmd/yui/yahoo/yahoo-min.js"></script>
    <script type="text/javascript" language="javascript" src="/zport/dmd/yui/yuiloader/yuiloader-min.js"></script>
    <script type="text/javascript" src="javascript/zenoss-core.js"></script>
    <script>
    var loader = YAHOO.zenoss.getLoader();
    loader.require(['zenossutils']);
    loader.insert({onSuccess:function(){
        removeElementAutoCompletes();
        applyBrowserSpecificStyles();
        addSelectionBar();
        checkForCollapsed();
        connectCheckboxListeners();
        notifyParentOfNewUrl();
        zenPageInit();
    }});
    </script>


       
       
<script>

var submitFormToMethod = function(formname, method) {
//Basically for use in menu items, to obviate creating dummy forms
//or menu items that are actually buttons.
   f = document.forms[formname];
   f.action = '/zport/dmd/' + method;
   f.submit();
}

addLoadEvent(function() {

    YAHOO.zenoss.templateFreeURL = '/zport/dmd';
    YAHOO.zenoss.ZENOSS_VERSION = '4.2.0';
    YAHOO.zenoss.ZENOSS_PRODUCT = 'core';

});



</script>

        <link rel="stylesheet" type="text/css" href="/++resource++extjs/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="/++resource++zenui/css/xtheme-zenoss.css" />
        <link rel="stylesheet" type="text/css" href="/++resource++zenui/css/zenoss.css" />
        <link rel="stylesheet" type="text/css" href="/++resource++zenui/css/zenui3.css" />
        <link type="text/css" rel="stylesheet" href="/++resource++zenui/css/backcompat.css" />

        <script>
        (function() {
            var ua = navigator.userAgent.toLowerCase();
            if (ua.indexOf("firefox/3.6") > -1) {
                Ext.toArray = function(a, i, j, res) {
                    res = [];
                    Ext.each(a, function(v) { res.push(v); });
                    return res.slice(i || 0, j || res.length);
                }
            }
        })();
        </script>
        <script type="text/javascript" id="extall" src="/++resource++extjs/ext-all.js"></script>

        <script>
        // Fix an IE bug
        Ext.override(Ext.Shadow, {
            realign: Ext.Function.createInterceptor(Ext.Shadow.prototype.realign,
                function(l, t, w, h) {
                    if (Ext.isIE) {
                        var a = this.adjusts;
                        a.h = Math.max(a.h, 0);
                    }
                }
            )
        });
        Ext.ns('Zenoss.util');
        Zenoss.util.registerBackCompatMenu = function(menu, btn, align, offsets){

            align = align || 'bl';
            offsets = offsets || [0, 0];

            var layer = new Ext.Panel({
                floating: true,
                contentEl: menu,
                border: false,
                shadow: !Ext.isIE,
                bodyCls: menu.id=='contextmenu_items' ? 'z-bc-z-menu z-bc-page-menu' : 'z-bc-z-menu'
            });

            layer.render(Ext.getBody());

            function showMenu() {
                var xy = layer.getEl().getAlignToXY(btn.getEl(), align, offsets);
                layer.setPagePosition(xy[0], xy[1]);
                menu.dom.style.display = 'block';
                layer.show();
            }

            function hideMenu() {
                layer.hide();
            }

            function menuClicked(e) {
                var link = e.getTarget('a');
                if (link) {
                    // Fake a click
                    location.href = link.href;
                }
            }

            btn.on('menushow', showMenu);
            btn.on('menuhide', hideMenu);
            menu.on('mousedown', menuClicked);

        }
        if (window.location.href.indexOf("/zport/dmd/Reports") != -1) {
            Ext.onReady(function(){
                var anchors = window.document.getElementsByTagName('a');
                for (var idx = 0; idx < anchors.length; idx++) {
                    if (!/\/zport\/dmd\/[rR]eports\//.test(anchors[idx].href)) {
                        anchors[idx].target = "_top";
                        anchors[idx].onclick = function() {
                            window.top.location.href = this.href;
                        };
                    }
                }
            });

        }
        </script>
    </head>
    <body class="yui-skin-sam">
   
<form name="proxy_form" id="proxy_form" style="position:absolute;visibility:hidden" action="/zport/dmd"></form>
<form method="post" name="proxyForm" action="here/absolute_url">
    <input type="hidden" name="zenScreenName" value="zenoss_feedback_error_message" />
</form>

   

<div id="dialog" class="dialog" style="visibility:hidden;position:absolute">
<div id="dialog_innercontent">
   

<div style="text-align:center">
<h2>Loading...</h2>
<br />
<img src="img/spinning_wheel_throbber.gif" />
</div>


</div>
<img id="dialog_close" src="/++resource++zenui/img/xtheme-zenoss/window/close-button.png" class="dialog_close" />
</div>
<script>
loader = YAHOO.zenoss.getLoader();
loader.require(['zenossutils']);
loader.insert({
    onSuccess: function(){
        mydialog = new Dialog.Box($('dialog'));
        connect('dialog_close','onclick', mydialog.box.hide);
        $('dialog').style.visibility = '';
    }
});
</script>


   
        <div id="frame">
           
            <div id="contentPane">
               


<span>

  <h2>A Zenoss error has occurred</h2>

    <script>
    function toggleReqBox() {
    if ($('request_box').style.display=='none') {
        showElement('request_box');
        setStyle('request_toggle', {'background-image':'url(/zport/dmd/img/arrow.d.gif)'});
    } else {
        hideElement('request_box');
        setStyle('request_toggle', {'background-image':'url(/zport/dmd/img/arrow.r.gif)'});
    }
    }
    </script>
    <style>#request_box{width:95%;border:2px dotted #666;margin-top:10px;background-color:white;color:#333;font-size:0.8em;padding:1em;overflow:hidden;}#request_toggle{color:darkblue;padding-left:25px;margin-top:20px;font-weight:bold;cursor:pointer;cursor:hand;background:transparent url('/zport/dmd/img/arrow.r.gif') 5px 5px no-repeat;} </style>
    <div id="more_info">
    <div id="request_toggle" onclick="toggleReqBox()">View Error Details</div>
    <div id="request_box">
  <p>
      <strong>Type: &lt;class 'socket.error'&gt;
      </strong><br />
      <strong>Value: [Errno 104] Connection reset by peer
      </strong><br />
      <pre>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 235, in beforeCompletionHook
    dataManager = AmqpDataManager(self._queuePublisher.channel, tx._manager)
  File "/opt/zenoss/Products/ZenMessaging/queuemessaging/publisher.py", line 380, in channel
    return self._client.getChannel()
  File "/opt/zenoss/lib/python/zenoss/protocols/amqp.py", line 58, in getChannel
    ssl=self._connectionInfo.usessl)
  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
</pre>
  </p>
</div>
<script>toggleReqBox()</script>

            </div>
 
  <p>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.
  </p>

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

  <form method="post" action="/zport/dmd">
 
  <p>The following fields are optional.  This information will only be used
  to contact you if further information is needed regarding this error.
  </p>
 
  Your name:<br />
  <input type="text" size="50" name="contactName" /><br />
  Your email address:<br />
  <input type="text" size="50" name="contactEmail" /><br />
  Additional info you would like to provide:<br />
  <textarea name="comments" rows="6" cols="50"></textarea><br />
  <br />

  <p>Click this button to send the above information to Zenoss, Inc.</p>
    <input type="hidden" name="errorType" value="&lt;class 'socket.error'&gt;" />
    <input type="hidden" name="errorValue" value="[Errno 104] Connection reset by peer" />
    <input type="hidden" name="errorTrace" value="&lt;traceback object at 0x614ca28&gt;" />
    <input type="hidden" name="errorUrl" value="http://zenosserver:8080/zport/acl_users/cookieAuthHelper/login" />
    <input type="submit" name="reportError:method" value="Send Error Details" />

  </form>

</span>


            </div>
       
       </div>
   
    </body>
</html>



</div>

</body>
</html>



--------------------------------------------------------------

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

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]
Mario B
2012-09-27 14:33:27 UTC
Permalink
Mario B [http://community.zenoss.org/people/s_catz] created the discussion

"Re: Error on first login"

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

--------------------------------------------------------------
I've also noticed that zenhub is not running.  Any Ideas?
--------------------------------------------------------------

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

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]
jrh0090
2012-09-28 13:34:06 UTC
Permalink
jrh0090 [http://community.zenoss.org/people/jrh0090] created the discussion

"Re: Error on first login"

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

--------------------------------------------------------------
Please make sure the rabbitmq is running with this command as root.

service rabbitmq-server status
#!/bin/bash
set -e
VHOSTS="/zenoss"
USER="zenoss"
PASS="zenoss"
RABBITMQCTL="rabbitmqctl"
if [ `uname -s` = "Linux" ]; then
    RABBITMQCTL="/usr/sbin/$RABBITMQCTL"
    if [ `id -u` -ne 0 ]; then
        RABBITMQCTL="sudo $RABBITMQCTL"
    fi
fi
$RABBITMQCTL stop_app
$RABBITMQCTL reset
$RABBITMQCTL start_app
$RABBITMQCTL add_user "$USER" "$PASS"
for vhost in $VHOSTS; do
    $RABBITMQCTL add_vhost "$vhost"
    $RABBITMQCTL set_permissions -p "$vhost" "$USER" '.*' '.*' '.*'
done
--------------------------------------------------------------

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

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]
Loading...