UI Step |
---|
Stop WildFly Code Block |
---|
language | powershell |
---|
title | Linux Example |
---|
collapse | true |
---|
| $ /opt/wildfly-{version}.Final/bin/jboss-cli.sh --connect command=:shutdown |
|
UI Step |
---|
Backup your existing i2b2.war directory UI Expand |
---|
| On Linux, move the /opt/wildfly-{version}.Final/standalone/deployments/ and save it to a different location outside of /opt/wildfly-{version}.Final/
|
UI Expand |
---|
| On Windows, move the c:\opt\wildfly-{version}.Final\standalone\deployments\ and save it to a different location outside of c:\opt\wildfly-{version}.Final\
|
|
UI Step |
---|
Extract the download file i2b2core-upgrade-1713.zip to a folder outside of wildfly folder.
|
UI Step |
---|
Copy all the files from the downloaded war file deployment into your existing WildFly standalone directory. This includes the upgraded war file and jdbc driver files /opt/<wildfly-17.0.0.Final and above version>/standalone/deployments/ |
UI Step |
---|
Update the datasource (*-ds.xml) files in your deployment directory Copy *-ds.xml files from the backup folder to wildfly-17.0.#.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> |
|
UI Step |
---|
Migrate cell properties to 1.7.13, if needed. In 1.7.12, cell properties have been moved to the database, in a 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. UI Expand |
---|
| 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. |
|
Steps to Upgrade i2b2 database UI Step |
---|
- Backup your existing data folder
- Download and extract the i2b2core-upgrade-1.7.13.zip to a folder outside of your existing data folder.
- Copy all the folders from the downloaded data folder into your data Upgrade folder.
Example .\2b2core-upgrade-1712a_ext\i2b2\data to C:\opt\edu.harvard.i2b2.data\Release_1-7\Upgrade\. This will replace the existing Crcdata, Hivedata, Metadata, PMdata folders . - Copy the db.properties files from your data back up into the respective locations(namely Crcdata, Hivedata, Metadata, PMdata )
- Run the following upgrade ant commands on your i2b2 database instance, where {db} can be Oracle, sqlserver or postgresql .
Alternative to Step 5, you can run individual SQL scripts on your db instance in place of ant commands. In data folder\Release_1-7\Upgrade\ run the ant commands under each individual cell subfolder as below. | 1.7.09c |
| 1.7.10 |
| 1.7.11 1.7.12
|
| 1.7.13 | In the Crcdata folder run the following ant command: ant -f data_build.xml upgrade_table_release_1-7 In the Hivedata folder run the following ant command: ant -f data_build.xml upgrade_hive_tables_release_1-7 In the Metadata folder run the following ant command: ant -f data_build.xml upgrade_tables_release_1-7 In the PMdata folder run the following ant command: ant -f data_build.xml upgrade_pm_tables_release_1-7 |
| UI Step |
---|
Update the datasource (*-ds.xml) files in your deployment directory Copy *-ds.xml files from the backup folder to wildfly-17.0.#.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> | UI Step |
---|
Migrate cell properties to 1.7.13, if needed. In 1.7.12, cell properties have been moved to the database, in a 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. UI Expand |
---|
| 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.
|
Steps to Upgrade i2b2 WebClient UI Step |
---|
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. UI Expand |
---|
| On Linux, move the folder /var/www/html/webclient/ and save it to a different location outside of /var/wwww/html/webclient
|
UI Expand |
---|
| On Windows, move the folder c:\inetpub\webclient and save it to a different location outside of c:\inetpub\webclient
|
|
UI Step |
---|
Install the new webclient on your web server
UI Expand |
---|
| On Linux, extract the i2b2webclient-1712a.zip to the folder /var/www/html/webclient/ and copy the backup i2b2_config_data.js to /var/wwww/html/webclient
|
UI Expand |
---|
| On Windows, extract the i2b2webclient-1712a.zip c:\inetpub\webclient and copy the backup i2b2_config_data.js to c:\inetpub\webclient
|
|
UI Step |
---|
Start WildFly Code Block |
---|
language | powershell |
---|
title | Linux Example |
---|
collapse | true |
---|
| $ /opt/wildfly-{version}.Final/bin/standalone.sh -b 0.0.0.0 & |
|
UI Step |
---|
Verify your upgrade UI Expand |
---|
| Navigate to your local i2b2 Web Client in your preferred browser and verify you are able to log on and perform standard i2b2 functions. (e.g. Run queries, retrieve previous queries, view breakdowns, etc.) |
|
|