Fixed
Details
Assignee
Benjamin ReedBenjamin ReedReporter
Jason CzerakJason CzerakComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Benjamin Reed
Benjamin ReedReporter
Jason Czerak
Jason CzerakComponents
Fix versions
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created January 22, 2008 at 10:02 AM
Updated January 27, 2017 at 4:26 PM
Resolved August 31, 2010 at 4:17 PM
Most of this bug identification is not with out the help of jeffg.
The install script fails to create the specified DB when the URL is setup to use SSL for communication to the DB server. The tables are instead created under the default postgres user.
./install -disU -i --password <PASSWORD> --database-name opennms13prd --username opennms13prd --admin-password <PASSWORD> --database-url 'jdbc:postgresql://juniper:5432?sslfactory=org.postgresql.ssl.NonValidatingFactory&ssl=on' --admin-username postgres -l /opt/jicmp_1.0.6/lib
If you specific the target DB in the URL the install script can not connect
./install -disU -i --password <PASSWORD> --database-name opennms13prd --username opennms13prd --admin-password <PASSWORD> --database-url 'jdbc:postgresql://juniper:5432/opennms13prd?sslfactory=org.postgresql.ssl.NonValidatingFactory&ssl=on' --admin-username postgres -l /opt/jicmp_1.0.6/lib
checking database version... Exception in thread "main" org.postgresql.util.PSQLException: FATAL: database "opennms13prd" does not exist
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:443)
A work around is to create the db manually on the DB server, then run the install script with the targetDB specified in the url
I do not think it is even possible to create the standard opennms tables over SSL with out the initial creation of the "opennms" database either. I have not tested this.