Re: Install Opennms error

Jackie Wong <[email protected]> Sun, 26 Jan 2014 22:57:03 +0800
Newsgroups gmane.network.opennms.install
Message-ID <CAALo=1t8Dx2orW8Tnc4FM9Jn4SJ6mdJ4r6JRhf+sX6a1L6N7SA@mail.gmail.com>
thanks for your information . Sure i tried follow opennms install the
appliaction and config thr postgrsql .  The postgrsql have start ok . but
when install show the error. as below:

Configures PostgreSQL tables, users, and other miscellaneous settings.
- searching for libjicmp.so:
  - trying to load /usr/lib/libjicmp.so: OK
- searching for libjicmp6.so:
  - trying to load /usr/lib/libjicmp6.so: OK
- searching for libjrrd.so:
  - trying to load /usr/lib/libjrrd.so: NO
  - trying to load /usr/lib/libjrrd.so: NO
  - trying to load /libjrrd.so: NO
  - trying to load /opt/opennms/lib/libjrrd.so: NO
  - trying to load /opt/opennms/lib/linux32/libjrrd.so: NO
  - trying to load /usr/java/packages/lib/i386/libjrrd.so: NO
  - trying to load /lib/libjrrd.so: NO
  - trying to load /usr/lib/libjrrd.so: NO
  - trying to load /usr/lib/jni/libjrrd.so: NO
  - trying to load /usr/lib/libjrrd.so: NO
  - trying to load /usr/local/lib/libjrrd.so: NO
  - trying to load /opt/NMSjicmp/lib/32/libjrrd.so: NO
  - trying to load /opt/NMSjicmp/lib/64/libjrrd.so: NO
  - trying to load /opt/NMSjicmp6/lib/32/libjrrd.so: NO
  - trying to load /opt/NMSjicmp6/lib/64/libjrrd.so: NO
- Failed to load the optional jrrd library.
  - This error is not fatal, since jrrd is only required for optional
features.
  - For more information, see http://www.opennms.org/index.php/jrrd
- using SQL directory... /opt/opennms/etc
- using create.sql... /opt/opennms/etc/create.sql
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:365)
        at java.lang.Thread.run(Thread.java:744)
Caused by: org.opennms.core.schema.MigrationException: an error occurred
getting the version from the database
        at
org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java:183)
        at
org.opennms.core.schema.Migrator.validateDatabaseVersion(Migrator.java:211)
        at org.opennms.install.Installer.install(Installer.java:225)
        at org.opennms.install.Installer.main(Installer.java:955)
        ... 6 more
Caused by: org.postgresql.util.PSQLException: Connection refused. Check
that the hostname and port are correct and that the postmaster is accepting
TCP/IP connections.
        at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136)
        at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
        at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
        at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
        at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
        at
org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
        at
org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
        at org.postgresql.Driver.makeConnection(Driver.java:393)
        at org.postgresql.Driver.connect(Driver.java:267)
        at java.sql.DriverManager.getConnection(DriverManager.java:571)
        at java.sql.DriverManager.getConnection(DriverManager.java:187)
        at
org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSource.java:93)
        at
org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java:171)
        ... 9 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at java.net.Socket.connect(Socket.java:528)
        at java.net.Socket.<init>(Socket.java:425)
        at java.net.Socket.<init>(Socket.java:208)
        at org.postgresql.core.PGStream.<init>(PGStream.java:62)
        at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
        ... 21 more


On Sun, Jan 26, 2014 at 1:14 AM, Les Mikesell <[email protected]> wrote:

> On Sat, Jan 25, 2014 at 9:46 AM, Jackie Wong <[email protected]>
> wrote:
> > I am first install opennms on Centos 6.5 X86 .
> >
> > When I run the opennms installer show this as belo . please advise how to
> > solve out this error .
> >
> > Caused by: org.postgresql.util.PSQLException: Connection refused. Check
> that
> > the hostname and port are correct and that the postmaster is accepting
> > TCP/IP connections.
>
> Be sure postgresql is running and configured per the documentation.
>
> --
>    Les Mikesell
>      [email protected]
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
>
> opennms-install mailing list
>
> To *unsubscribe* or change your subscription options, see the bottom of
> this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-install
>

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk

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

opennms-install mailing list

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