database "template1" does not exist
Dave Badia <[email protected]> Mon, 23 Nov 2015 20:21:05 -0500
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <CAHMbfumePdftegvrb0CCLhyGCzNTbEoJFRzsS8CEOaYXoQQGzg@mail.gmail.com> |
--===============5692523891319579084==
Content-Type: multipart/alternative; boundary=001a113a269ce2f0e205253f2788
--001a113a269ce2f0e205253f2788
Content-Type: text/plain; charset=UTF-8
Hi List -
Getting some errors while trying to install, googled around but can't find
a solution:
/usr/share/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/lib/jni/libjicmp.so: OK
- searching for libjicmp6.so:
- trying to load /usr/lib/jni/libjicmp6.so: OK
- searching for libjrrd.so:
- trying to load /usr/lib/jni/libjrrd.so: NO
- trying to load /usr/lib/jni/libjrrd.so: NO
- trying to load /libjrrd.so: NO
- trying to load /usr/share/opennms/lib/libjrrd.so: NO
- trying to load /usr/share/opennms/lib/linux32/libjrrd.so: NO
- trying to load /usr/java/packages/lib/amd64/libjrrd.so: NO
- trying to load /usr/lib64/libjrrd.so: NO
- trying to load /lib64/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
20:18:03.751 [Main] WARN org.opennms.install.Installer - Could not create
file: /usr/share/opennms/etc/libraries.properties
- using SQL directory... /usr/share/opennms/etc
- using create.sql... /usr/share/opennms/etc/create.sql
20:18:03.755 [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:497)
at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:370)
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:247)
at org.opennms.install.Installer.main(Installer.java:985)
... 6 more
Caused by: org.postgresql.util.PSQLException: FATAL: database "template1"
does not exist
at
org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:572)
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:177)
at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136)
at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
at
org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31)
at
org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:410)
at org.postgresql.Driver.connect(Driver.java:280)
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:93)
at
org.opennms.core.schema.Migrator.getDatabaseVersion(Migrator.java:171)
... 9 more
Thanks!
--001a113a269ce2f0e205253f2788
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hi List - <br><br></div>Getting some errors while try=
ing to install, googled around but can't find a solution:<br><div><div>=
<br>/usr/share/opennms/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 misce=
llaneous settings.<br><br>DEBUG: Platform is IPv6 ready: true<br>- searchin=
g for libjicmp.so:<br>=C2=A0 - trying to load /usr/lib/jni/libjicmp.so: OK<=
br>- searching for libjicmp6.so:<br>=C2=A0 - trying to load /usr/lib/jni/li=
bjicmp6.so: OK<br>- searching for libjrrd.so:<br>=C2=A0 - trying to load /u=
sr/lib/jni/libjrrd.so: NO<br>=C2=A0 - trying to load /usr/lib/jni/libjrrd.s=
o: NO<br>=C2=A0 - trying to load /libjrrd.so: NO<br>=C2=A0 - trying to load=
/usr/share/opennms/lib/libjrrd.so: NO<br>=C2=A0 - trying to load /usr/shar=
e/opennms/lib/linux32/libjrrd.so: NO<br>=C2=A0 - trying to load /usr/java/p=
ackages/lib/amd64/libjrrd.so: NO<br>=C2=A0 - trying to load /usr/lib64/libj=
rrd.so: NO<br>=C2=A0 - trying to load /lib64/libjrrd.so: NO<br>=C2=A0 - try=
ing to load /lib/libjrrd.so: NO<br>=C2=A0 - trying to load /usr/lib/libjrrd=
.so: NO<br>=C2=A0 - trying to load /usr/lib/jni/libjrrd.so: NO<br>=C2=A0 - =
trying to load /usr/lib/libjrrd.so: NO<br>=C2=A0 - trying to load /usr/loca=
l/lib/libjrrd.so: NO<br>=C2=A0 - trying to load /opt/NMSjicmp/lib/32/libjrr=
d.so: NO<br>=C2=A0 - trying to load /opt/NMSjicmp/lib/64/libjrrd.so: NO<br>=
=C2=A0 - trying to load /opt/NMSjicmp6/lib/32/libjrrd.so: NO<br>=C2=A0 - tr=
ying to load /opt/NMSjicmp6/lib/64/libjrrd.so: NO<br>- Failed to load the o=
ptional jrrd library.<br>=C2=A0 - This error is not fatal, since jrrd is on=
ly required for optional features.<br>=C2=A0 - For more information, see <a=
href=3D"http://www.opennms.org/index.php/jrrd">http://www.opennms.org/inde=
x.php/jrrd</a><br>20:18:03.751 [Main] WARN=C2=A0 org.opennms.install.Instal=
ler - Could not create file: /usr/share/opennms/etc/libraries.properties<br=
>- using SQL directory... /usr/share/opennms/etc<br>- using create.sql... /=
usr/share/opennms/etc/create.sql<br>20:18:03.755 [Main] INFO=C2=A0 org.open=
nms.core.schema.Migrator - validating database version<br>java.lang.reflect=
.InvocationTargetException<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at=
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at sun.reflect.NativeMethodAccessorImpl.i=
nvoke(NativeMethodAccessorImpl.java:62)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM=
ethodAccessorImpl.java:43)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at=
java.lang.reflect.Method.invoke(Method.java:497)<br>=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.ja=
va:370)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.lang.Thread.r=
un(Thread.java:745)<br>Caused by: org.opennms.core.schema.MigrationExceptio=
n: an error occurred getting 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.getDatab=
aseVersion(Migrator.java:183)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
at org.opennms.core.schema.Migrator.validateDatabaseVersion(Migrator.java:=
211)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.opennms.install.I=
nstaller.install(Installer.java:247)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 at org.opennms.install.Installer.main(Installer.java:985)<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ... 6 more<br>Caused by: org.postgr=
esql.util.PSQLException: FATAL: database "template1" does not exi=
st<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.core.v3.=
ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:572)<b=
r>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.core.v3.Conn=
ectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:177)<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.core.ConnectionFa=
ctory.openConnection(ConnectionFactory.java:64)<br>=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 at org.postgresql.jdbc2.AbstractJdbc2Connection.<init=
>(AbstractJdbc2Connection.java:136)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(Abst=
ractJdbc3Connection.java:29)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc=
3gConnection.java:21)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.=
postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connecti=
on.java:31)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql=
.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgresql.Driver.makeConnection(D=
river.java:410)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.postgr=
esql.Driver.connect(Driver.java:280)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 at java.sql.DriverManager.getConnection(DriverManager.java:664)<b=
r>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at java.sql.DriverManager.getC=
onnection(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.getConnection(Simple=
DataSource.java:93)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.op=
ennms.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><br><br></div><div>Thank=
s!<br></div><div><br></div></div></div>
--001a113a269ce2f0e205253f2788--
--===============5692523891319579084==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
--===============5692523891319579084==
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
--===============5692523891319579084==--