-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL 9.3 is required, 9.6 strongly recommended #5649
Comments
I have completed the "definition of done" steps outlined above except for the upgrade to the phoenix server. |
@sekmiller thanks for getting the branch started. @landreev and I just discussed this issue during tech hours. He is going to upgrade Postgres to 9.6 on the phoenix server. I'm upgrading Postgres to 9.6 on the dev1 server. (Maybe I'll do apitest too but not promises.) I'm taking some notes that I might push into the branch so I'll keep myself assigned as well. I'm already seeing a couple things in the guides I want to edit some more. @pameyer here's the commit where I messed with your docker stuff without testing it: ff78321 . You were still using pg8-createsequence-prep.sql but I assume you don't need it. |
@donsizemore I've done it on my own dev. environment between 9.1 and 9.6 - also without any signs of a problem. |
@pdurbin I know that "9.6 is strongly recommended" - but we are running 9.3 on dvn-build and dvn-vm4, and Flyway seems to be happy. To get the phoenix server to work, and for uniformity with the other CentOS6 boxes, I've installed posgresql93 there as well. The configuration is identical to how it was before:
The startup scripts are properly checked on and off. |
(if we decide we do need 9.6, I'll upgrade all the remaining CentOS6 boxes at once) |
@landreev great! Thanks! Do you want to have the honor of kicking off a build at https://build.hmdc.harvard.edu:8443/job/phoenix.dataverse.org-build-develop/ ? (This is the first of three chained jobs.) |
@landreev I went ahead and clicked "build now" and the deployment to phoenix succeeded: That screenshot is from https://build.hmdc.harvard.edu:8443/job/phoenix.dataverse.org-deploy-develop/ Now I'm waiting to see if the API test suite passes or not but I suspect it won't and that we'll see errors reported at #5662. |
I rebooted the phoenix server and now I'm getting this (job 372):
|
I dropped and recreated the "dvnapp" user because it didn't have any permissions:
I'll try another run. |
Ok, now the "deploy" step continues to work. Phew. |
Yes, I created that user with /usr/pgsql-9.3/bin/createuser, without giving it any extra permissions; I didn't realize it needed to create the db. |
@landreev yeah, here's where the |
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.
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:
Definition of done for this issue:
source/_static/util/pg8-createsequence-prep.sql
and the "For systems using Postgresql 8.4 or older..." reference to it at http://guides.dataverse.org/en/4.11/installation/config.html#identifiergenerationstyle (added for running createsequence.sql against PostgreSQL 8.4 results in ERROR: language "plpgsql" does not exist #3744)doc/release-notes
to warn anyone running PostgreSQL 8.x that they must upgrade.The text was updated successfully, but these errors were encountered: