Upgrading i2b2 from version 1.7.09c to 1.7.12A
Version Information
Current Version: | 1.7.12A |
---|---|
Release Date: | May 2020 |
License: | Mozilla 2 Open Source License |
Download
Description | i2b2 Released Version | Minimum Version Required | Download Link | Requirements |
---|---|---|---|---|
Files to upgrade the i2b2 server to 1.7.12A | 1.7.12A | 1.7.09c | You are running at least i2b2 1.7.09c in the ACT production network. Download the zip file to the left, and follow the instructions below to upgrade to i2b2 1.7.12A. |
Notes
Release 1.7.12 contains changes to the i2b2 core Server, database and Web Client.
- The upgrade process is now made easier using a pre-built war file and the properties files are now stored in the database.
- The prebuilt-war file has all the core, web and database files packaged together and available as single download zip file.
- NEW: For further troubleshooting issues, please refer to the Troubleshooting Tips for i2b2 & SHRINE page
Upgrade Instructions
Below are Step-by-Step Instructions after you have upgraded to Wildfly.
Step-by-Step Instructions for WildFly
In the following instructions the variable { version } refers to your version of Wildfly installed. We have tested with Wildfly 10, 14, and 17.
Stop WildFly
Backup your existing i2b2.war directory
Extract the download file i2b2core-war-1712.zip to a folder outside of wildfly folder.
Copy all the files from the download war file deployment into your existing WildFly deployment directory (e.g. /opt/wildfly/standalone/deployment/)
Upgrade i2b2 Databases to 1.7.12A
Run the following upgrade scripts on your i2b2 database instance, where {db} can be Oracle, sqlserver or postgresql. Note: The example scripts below are examples ONLY. The actual .sql scripts are provided in the zip file download above.
In /i2b2/data/ folder | |
CRC | Open the file: /i2b2/data/Crcdata/scripts/crc_create_query_{db}.sql and run the last three relevant sections (upgrading from 1.7.09c all the way to 1.7.12): For example, for SQL server: --============================================================== |
Hive | Open the file: /i2b2/data/Hivedata/scripts/upgrade_{db}_i2b2hive_tables.sql and run the last required section: For example, for SQL server:
|
Ontology | Open the file: /i2b2/data/Metadata/scripts/ont_{db}.sql and run the script: For example, for SQL server: alter table TABLE_ACCESS add C_ONTOLOGY_PROTECTION VARCHAR(MAX); Note: For ACT, you'll want to apply this statement to both your local i2b2 ACT ontology, and your SHRINE ACT ontology (if you use two separate i2b2 projects). |
PM | Open the file: /i2b2/data/Pmdata/scripts/upgrade_{db}_i2b2pm_tables.sql and run the last relevant section (upgrading from 1.7.09c): For example, for SQL server: ALTER TABLE PM_USER_LOGIN CREATE INDEX PM_USER_LOGIN_IDX ON PM_USER_LOGIN(USER_ID, ENTRY_DATE); |
Update the datasource (*-ds.xml) files in your deployment directory
Copy *-ds.xml files from the backup folder to wildfly-1#.0.1.Final/standalone/deployments
Edit the following files crc-ds.xml, ont-ds.xml, pm-ds.xml, work-ds.xml
and replace ALL the <driver>{something}.jar</driver> with
Oracle | SQL Server | PostgreSQL |
<driver>ojdbc8.jar</driver> | <driver>mssql-jdbc-7.4.1.jre8.jar</driver> | <driver>postgresql42.2.8.jar</driver> |
Migrate cell properties: In 1.7.12, cell properties have been moved to the database, in a new table called HIVE_CELL_PARAMS. If any cell properties were previously changed, they will need to be manually updated in the database. After this, the properties files can be deleted to prevent confusion.
More documentation on setting cell properties is available at this page. Most commonly, the AGG_SERVICE_ACCOUNT password will need to be updated. Generally, the cell URLs do not need to be configured anymore, as the hostname and port is now auto-detected.
Example |
Properties files are stored at /opt/wildfly-{version}.Final/standalone/configuration/ on Linux and c:\opt\wildfly-{version}.Final\standalone\configuration\ on Windows. The table can be edited with a SQL editor in hive_cell_params. |
Note: any changes made in your HIVE_CELL_PARAMS table will require you to restart Wildfly/i2b2 for the changes to take affect.
Backup your existing i2b2_config_data.js from your web server
On your webclient backup your existing i2b2_config_data.js to a folder outside of your web server.
Install the new webclient on your web server
Start WildFly
Verify your upgrade