Installation DB error

Bjorn Mork <[email protected]> Tue, 25 Apr 2017 17:46:43 +0400
Newsgroups gmane.network.opennms.install
Message-ID <CAHh02P3s6HRjAtrRbWazWJ6fZs3tn+kjZf6gWzovEq-A9Nq-WQ@mail.gmail.com>
--===============7306196373087041279==
Content-Type: multipart/alternative; boundary=001a113fa3124165ae054dfdf41b

--001a113fa3124165ae054dfdf41b
Content-Type: text/plain; charset=UTF-8

Hi Team,

I am trying to install OpenNMS, but getting below error. Please suggest...






*[root@nms ~]# /etc/init.d/postgresql-9.6 statuspostgresql-9.6 (pid  1987)
is running...[root@nms ~]# *

[root@nms ~]# /opt/opennms/bin/install -dis
==============================================================================
OpenNMS Installer
==============================================================================

Configures PostgreSQL tables, users, and other miscellaneous settings.

DEBUG: Platform is IPv6 ready: true
- searching for libjicmp.so:
  - trying to load /usr/lib64/libjicmp.so: OK
- searching for libjicmp6.so:
  - trying to load /usr/lib64/libjicmp6.so: OK
- searching for libjrrd.so:
  - trying to load /usr/lib64/libjrrd.so: OK
- searching for libjrrd2.so:
  - trying to load /usr/lib64/libjrrd2.so: OK
10:53:09.172 [Main] WARN  org.opennms.install.Installer - Could not create
file: /opt/opennms/etc/libraries.properties
- using SQL directory... /opt/opennms/etc
- using create.sql... /opt/opennms/etc/create.sql
10:53:09.178 [Main] INFO  org.opennms.core.schema.Migrator - validating
database version
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:464)
        at java.lang.Thread.run(Thread.java:745)
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:244)
        at org.opennms.install.Installer.main(Installer.java:989)
        ... 6 more
Caused by: org.postgresql.util.PSQLException: FATAL: Ident authentication
failed for user "postgres"
        at
org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:446)
        at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:220)
        at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:55)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
        at org.postgresql.Driver.makeConnection(Driver.java:407)
        at org.postgresql.Driver.connect(Driver.java:275)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:208)
        at
org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSource.java:113)
        at
org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java:171)
        ... 9 more

--001a113fa3124165ae054dfdf41b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Team,<br><br></div>I am trying to install OpenNMS,=
 but getting below error. Please suggest...<br><br><b>[root@nms ~]# /etc/in=
it.d/postgresql-9.6 status<br>postgresql-9.6 (pid=C2=A0 1987) is running...=
<br>[root@nms ~]# <br><br><br></b><div><div><div><br>[root@nms ~]# /opt/ope=
nnms/bin/install -dis<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>OpenNMS Installer<br>=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br=
><br>Configures PostgreSQL tables, users, and other miscellaneous settings.=
<br><br>DEBUG: Platform is IPv6 ready: true<br>- searching for libjicmp.so:=
<br>=C2=A0 - trying to load /usr/lib64/libjicmp.so: OK<br>- searching for l=
ibjicmp6.so:<br>=C2=A0 - trying to load /usr/lib64/libjicmp6.so: OK<br>- se=
arching for libjrrd.so:<br>=C2=A0 - trying to load /usr/lib64/libjrrd.so: O=
K<br>- searching for libjrrd2.so:<br>=C2=A0 - trying to load /usr/lib64/lib=
jrrd2.so: OK<br>10:53:09.172 [Main] WARN=C2=A0 org.opennms.install.Installe=
r - Could not create file: /opt/opennms/etc/libraries.properties<br>- using=
 SQL directory... /opt/opennms/etc<br>- using create.sql... /opt/opennms/et=
c/create.sql<br>10:53:09.178 [Main] INFO=C2=A0 org.opennms.core.schema.Migr=
ator - validating database version<br>java.lang.reflect.InvocationTargetExc=
eption<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at sun.reflect.NativeM=
ethodAccessorImpl.invoke0(Native Method)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc=
essorImpl.java:62)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at sun.ref=
lect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:=
43)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.lang.reflect.Meth=
od.invoke(Method.java:498)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at=
 org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:464)<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.lang.Thread.run(Thread.java:745)<br>=
Caused by: org.opennms.core.schema.MigrationException: an error occurred ge=
tting the version from the database<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 at org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java=
:183)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.opennms.core.sch=
ema.Migrator.validateDatabaseVersion(Migrator.java:211)<br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.opennms.install.Installer.install(Instal=
ler.java:244)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.opennms.=
install.Installer.main(Installer.java:989)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 ... 6 more<br>Caused by: org.postgresql.util.PSQLException:=
 FATAL: Ident authentication failed for user &quot;postgres&quot;<br>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.core.v3.ConnectionFa=
ctoryImpl.doAuthentication(ConnectionFactoryImpl.java:446)<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.core.v3.ConnectionFactoryI=
mpl.openConnectionImpl(ConnectionFactoryImpl.java:220)<br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.core.ConnectionFactory.openCo=
nnection(ConnectionFactory.java:55)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 at org.postgresql.jdbc.PgConnection.&lt;init&gt;(PgConnection.java:2=
19)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.Driver.=
makeConnection(Driver.java:407)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 at org.postgresql.Driver.connect(Driver.java:275)<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 at java.sql.DriverManager.getConnection(DriverMana=
ger.java:664)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.sql.Dri=
verManager.getConnection(DriverManager.java:208)<br>=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 at org.opennms.core.db.install.SimpleDataSource.getCo=
nnection(SimpleDataSource.java:113)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 at org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java=
:171)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ... 9 more<br></div></d=
iv></div></div>

--001a113fa3124165ae054dfdf41b--


--===============7306196373087041279==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============7306196373087041279==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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
--===============7306196373087041279==--