Skip to content

PostgreSQL 9.3 is required, 9.6 strongly recommended #5649

@pdurbin

Description

@pdurbin

I ran the phoenix tests for the first time since the pull request #5349 was merged. That's where we added a dependency on Flyway (#5344) for automatic SQL script execution on deployment.

Here was the failure on phoenix as seen from the Jenkins log at https://build.hmdc.harvard.edu:8443/job/phoenix.dataverse.org-deploy-develop/368/console

Command deploy failed.

remote failure: Error occurred during deployment: Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton StartupFlywayMigrator. Please see server.log for more details.

I looked at server.log and found this:

Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton StartupFlywayMigrator javax.ejb.CreateException: Initialization failed for Singleton StartupFlywayMigrator

Caused by: org.flywaydb.core.internal.exception.FlywayDbUpgradeRequiredException: PostgreSQL upgrade required: PostgreSQL 8.4 is outdated and no longer supported by Flyway. Flyway currently supports PostgreSQL 9.0 and newer.

	at org.flywaydb.core.internal.database.base.Database.ensureDatabaseIsRecentEnough(Database.java:156)
	at org.flywaydb.core.internal.database.postgresql.PostgreSQLDatabase.ensureSupported(PostgreSQLDatabase.java:65)
	at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:97)
	at org.flywaydb.core.Flyway.execute(Flyway.java:1670)
	at org.flywaydb.core.Flyway.migrate(Flyway.java:1356)
	at edu.harvard.iq.dataverse.flyway.StartupFlywayMigrator.migrateDatabase(StartupFlywayMigrator.java:37)

The above message about PostgreSQL 9.0 is true according to https://flywaydb.org/documentation/database/postgresql but PostgreSQL 9.3 is the oldest version that Flyway supports for free:

Screen Shot 2019-03-15 at 10 06 22 AM

Definition of done for this issue:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions