[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    Re: [opennms-discuss] cannot start opennms service
From:       Aristos Vasiliou <aristos () aristos ! net>
Date:       2016-04-17 15:14:36
Message-ID: 5713A85C.2010105 () aristos ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


You were right. Even though the correct hostname was configured in 
/etc/hostname, it was wrong in /etc/hosts.
Problem fixed, thanks.

On 17/04/2016 13:12, Ronny Trommer wrote:
> Hi,
> 
> I assume you run on CentOS. From reading your log you provided this is 
> the hint for your problem:
> 
> Could not lookup the host name for the local host machine: 
> java.net.UnknownHostException: OpenNMS: OpenNMS: unknown error
> 
> Can you check your /etc/hosts and if its possible to resolve the 
> localhost and server name addresses correctly?
> 
> Thanks in hope it helps.
> 
> -- 
> Ronny Trommer, OGP
> Europe :: Fulda :: Stuttgart
> Web: http://www.opennms.org
> 
> PGP Key Fingerprint: 4A1B 4D06 FEEC 244D 38EF  8074 9075 B2E5 08A2 451E
> PGP Key Server1: https://keyserver.pgp.com
> PGP Key Server2: http://pgp.mit.edu/
> 
> > On 17.04.2016, at 11:35, Aristos Vasiliou <aristos@aristos.net 
> > <mailto:aristos@aristos.net>> wrote:
> > 
> > I am following this guide to install opennms and I've run into a few 
> > problems 
> > http://docs.opennms.org/opennms/releases/17.1.1/guide-install/guide-install.html
> > Everything went well during the installation, but when I tried to 
> > start the opennms service I got the below.
> > 
> > service opennms start
> > Job for opennms.service failed. See 'systemctl status 
> > opennms.service' and 'journalctl -xn' for details.
> > 
> > So I run the below for more information.
> > 
> > systemctl status opennms.service -l
> > ● opennms.service - LSB: OpenNMS - Open Source Network Management System
> > Loaded: loaded (/etc/init.d/opennms)
> > Active: failed (Result: exit-code) since Sun 2016-04-17 08:11:56 
> > BST; 10min ago
> > Process: 568 ExecStart=/etc/init.d/opennms start (code=exited, 
> > status=1/FAILURE)
> > 
> > Apr 17 08:11:56 OpenNMS opennms[568]: Starting Open Network 
> > Management System: opennmsStarted OpenNMS, but it stopped running: 
> > for details see /var/log/opennms/output.log
> > Apr 17 08:11:56 OpenNMS systemd[1]: opennms.service: control process 
> > exited, code=exited status=1
> > Apr 17 08:11:56 OpenNMS systemd[1]: Failed to start LSB: OpenNMS - 
> > Open Source Network Management System.
> > Apr 17 08:11:56 OpenNMS systemd[1]: Unit opennms.service entered 
> > failed state.*
> > 
> > *This is the opennms output.log*
> > *http://paste.ofcode.org/cLFKBviuUqb2PtX8k5Cz5q*
> > 
> > *Any ideas on what could be wrong here?*
> > 
> > *Thanks
> > ------------------------------------------------------------------------------
> > Find and fix application performance issues faster with Applications 
> > Manager
> > Applications Manager provides deep performance insights into multiple 
> > tiers of
> > your business applications. It resolves application problems quickly and
> > reduces your MTTR. Get your free trial!
> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
> >  Please read the OpenNMS Mailing List FAQ:
> > http://www.opennms.org/index.php/Mailing_List_FAQ
> > 
> > opennms-discuss mailing list
> > 
> > To *unsubscribe* or change your subscription options, see the bottom 
> > of this page:
> > https://lists.sourceforge.net/lists/listinfo/opennms-discuss
> 
> 
> 
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> 
> 
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
> 
> opennms-discuss mailing list
> 
> To *unsubscribe* or change your subscription options, see the bottom of this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    You were right. Even though the correct hostname was configured in
    /etc/hostname, it was wrong in /etc/hosts.<br>
    Problem fixed, thanks.<br>
    <br>
    <div class="moz-cite-prefix">On 17/04/2016 13:12, Ronny Trommer
      wrote:<br>
    </div>
    <blockquote
      cite="mid:7EA93D4E-A5FB-4F3E-B63D-D025C20451FE@opennms.org"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="">Hi,</div>
      <div class=""><br class="">
      </div>
      I assume you run on CentOS. From reading your log you provided
      this is the hint for your problem:
      <div class=""><br class="">
      </div>
      <div class="">Could not lookup the host name for the local host
        machine: java.net.UnknownHostException: OpenNMS: OpenNMS:
        unknown error</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div class="">Can you check your /etc/hosts and if its possible
          to resolve the localhost and server name addresses correctly?</div>
        <div class=""><br class="">
        </div>
        <div class="">Thanks in hope it helps.</div>
        <div class=""><br class="">
        </div>
        <div class="">
          <div class="">
            <div style="color: rgb(0, 0, 0); letter-spacing: normal;
              orphans: auto; text-align: start; text-indent: 0px;
              text-transform: none; white-space: normal; widows: auto;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;" class="">
              <div class="">
                <div class="">-- </div>
                <div class="">Ronny Trommer, OGP</div>
                <div class="">Europe :: Fulda :: Stuttgart<br class="">
                  Web: <a moz-do-not-send="true"
                    href="http://www.opennms.org" \
class="">http://www.opennms.org</a></div>  <div class=""><br class="">
                  PGP Key Fingerprint: 4A1B 4D06 FEEC 244D 38EF  8074
                  9075 B2E5 08A2 451E <br class="">
                  PGP Key Server1: <a moz-do-not-send="true"
                    href="https://keyserver.pgp.com" \
class="">https://keyserver.pgp.com</a> <br  class="">
                  PGP Key Server2: <a moz-do-not-send="true"
                    href="http://pgp.mit.edu/" class="">http://pgp.mit.edu/</a></div>
              </div>
            </div>
          </div>
          <br class="">
          <div>
            <blockquote type="cite" class="">
              <div class="">On 17.04.2016, at 11:35, Aristos Vasiliou
                &lt;<a moz-do-not-send="true"
                  href="mailto:aristos@aristos.net" \
class="">aristos@aristos.net</a>&gt;  wrote:</div>
              <br class="Apple-interchange-newline">
              <div class="">
                <meta http-equiv="content-type" content="text/html;
                  charset=UTF-8" class="">
                <div bgcolor="#FFFFFF" text="#000000" class=""> I am
                  following this guide to install opennms and I've run
                  into a few problems <a moz-do-not-send="true"
                    class="moz-txt-link-freetext"
href="http://docs.opennms.org/opennms/releases/17.1.1/guide-install/guide-install.html \
">http://docs.opennms.org/opennms/releases/17.1.1/guide-install/guide-install.html</a><br
  class="">
                  Everything went well during the installation, but when
                  I tried to start the opennms service I got the below.<br
                    class="">
                  <br class="">
                  service opennms start<br class="">
                  Job for opennms.service failed. See 'systemctl status
                  opennms.service' and 'journalctl -xn' for details.<br
                    class="">
                  <br class="">
                  So I run the below for more information.<br class="">
                  <br class="">
                  systemctl status opennms.service -l<br class="">
                  ● opennms.service - LSB: OpenNMS - Open Source Network
                  Management System<br class="">
                     Loaded: loaded (/etc/init.d/opennms)<br class="">
                     Active: failed (Result: exit-code) since Sun
                  2016-04-17 08:11:56 BST; 10min ago<br class="">
                    Process: 568 ExecStart=/etc/init.d/opennms start
                  (code=exited, status=1/FAILURE)<br class="">
                  <br class="">
                  Apr 17 08:11:56 OpenNMS opennms[568]: Starting Open
                  Network Management System: opennmsStarted OpenNMS, but
                  it stopped running: for details see
                  /var/log/opennms/output.log<br class="">
                  Apr 17 08:11:56 OpenNMS systemd[1]: opennms.service:
                  control process exited, code=exited status=1<br
                    class="">
                  Apr 17 08:11:56 OpenNMS systemd[1]: Failed to start
                  LSB: OpenNMS - Open Source Network Management System.<br
                    class="">
                  Apr 17 08:11:56 OpenNMS systemd[1]: Unit
                  opennms.service entered failed state.<b class=""><br
                      class="">
                    <br class="">
                  </b>This is the opennms output.log<b class=""><br
                      class="">
                  </b><a moz-do-not-send="true"
                    class="moz-txt-link-freetext"
                    href="http://paste.ofcode.org/cLFKBviuUqb2PtX8k5Cz5q">http://paste.ofcode.org/cLFKBviuUqb2PtX8k5Cz5q</a><b
  class=""><br class="">
                    <br class="">
                  </b>Any ideas on what could be wrong here?<b class=""><br
                      class="">
                    <br class="">
                  </b>Thanks<br class="">
                </div>
------------------------------------------------------------------------------<br
                  class="">
                Find and fix application performance issues faster with
                Applications Manager<br class="">
                Applications Manager provides deep performance insights
                into multiple tiers of<br class="">
                your business applications. It resolves application
                problems quickly and<br class="">
                reduces your MTTR. Get your free trial!<br class="">
                <a moz-do-not-send="true"
href="https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________"
                
                  class="">https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________</a><br
  class="">
                Please read the OpenNMS Mailing List FAQ:<br class="">
                <a class="moz-txt-link-freetext" \
href="http://www.opennms.org/index.php/Mailing_List_FAQ">http://www.opennms.org/index.php/Mailing_List_FAQ</a><br
  class="">
                <br class="">
                opennms-discuss mailing list<br class="">
                <br class="">
                To *unsubscribe* or change your subscription options,
                see the bottom of this page:<br class="">
<a class="moz-txt-link-freetext" \
href="https://lists.sourceforge.net/lists/listinfo/opennms-discuss">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a></div>
  </blockquote>
          </div>
          <br class="">
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">------------------------------------------------------------------------------
 Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
<a class="moz-txt-link-freetext" \
href="https://ad.doubleclick.net/ddm/clk/302982198;130105516;z">https://ad.doubleclick.net/ddm/clk/302982198;130105516;z</a></pre>
  <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Please read the OpenNMS Mailing List FAQ:
<a class="moz-txt-link-freetext" \
href="http://www.opennms.org/index.php/Mailing_List_FAQ">http://www.opennms.org/index.php/Mailing_List_FAQ</a>


opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
<a class="moz-txt-link-freetext" \
href="https://lists.sourceforge.net/lists/listinfo/opennms-discuss">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a></pre>
  </blockquote>
    <br>
  </body>
</html>



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic