5.2.X to 6.0
These instructions are for migrating from 5.2.1 (or higher) to version 6.0. If migrating from a version older than 5.2.1, see the instructions at the bottom of this page. Note that the configuration and the agent can be migrated independently of one another.
In the following migration examples --version
always refers to the starting version. Make sure
to reference either 5.2.1, 5.2.2 or 5.2.3 as is appropriate.
Choose the set(s) of instructions that correspond to your installation type:
For SaaS environments, choose:
For On Premises integrated environments, choose :
For On Premises separated/remote environments, the server should be upgraded before the agent. Use the following instructions:
Upgrade Server and Integrated Agent
-
Install the new .NET 6.0 Framework hosting bundle from https://dotnet.microsoft.com/en-us/download/dotnet/6.0.
-
Stop server
-
Backup and Install
- Backup the database.
- Rename the Runtime folder to create a backup, for example
RuntimeOld
- Install the new runtime from
Runtime_XXXX.zip
on the Usercube server machine - Copy all the original appsettings json files from
RuntimeOld
to the newRuntime
- In the appsettings.json file, at the end of the connection string add
;Encrypt=false
or;Encrypt=true
depending on the database configuration.For example:
"ConnectionString": "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false;"
-
Migrate the database
- Backup the existing database
- Start the database upgrade utility:
For example:
./identitymanager-Upgrade-DatabaseVersion.exe --connection-string "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false;"
-
Recompute all property expressions and correlation keys by using the
Update-EntityPropertyExpressions
andCompute-CorrelationKeys
executables from theRuntime
folder.For example:
./identitymanager-Update-EntityPropertyExpressions.exe --database-connection-string "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false" -a
./identitymanager-Compute-CorrelationKeys.exe --database-connection-string "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false" -a -
Restart the server
-
Optional: Migrate the configuration (This allows new features to be taken into account.)
- Make sure the XML configuration has already been imported to the database. If not, import the configuration with the old Runtime into the database.
- Rename the Conf folder to create a backup, for example
ConfOld
. - Run the utility to migrate the configuration.
For example:
./identitymanager-Upgrade-ConfigurationVersion.exe --version "5.2.3" --xml-path "C:/identitymanagerExamplePath/ConfOld/" --output "C:/identitymanagerExamplePath/Conf/" - Optional: update the configuration version now that it has been migrated. NOTE: Change nothing else in the configuration except what is needed for the migration. The newly migrated conf should be the functional equivalent of the one already in the database.
- Deploy the configuration, correcting any warnings or new errors (that appear because the configuration import tool is smarter).
- Restart the server
Upgrade Server Only
-
Install the new .NET 6.0 Framework hosting bundle from https://dotnet.microsoft.com/en-us/download/dotnet/6.0.
-
Stop server and remote agent(s)
-
Backup and Install
- Backup the database.
- Rename the Runtime folder to create a backup, for example
RuntimeOld
- Install the new runtime from
Runtime_XXXX.zip
on the Usercube server machine - Copy all the original appsettings json files from
RuntimeOld
to the newRuntime
- In the appsettings.json file, at the end of the connection string add
;Encrypt=false
or;Encrypt=true
depending on the database configuration.For example:
"ConnectionString": "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false;"
-
Migrate the Database
- Backup the existing database
- Start the database upgrade utility:
For example:
./identitymanager-Upgrade-DatabaseVersion.exe --connection-string "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false;"
-
Recompute all property expressions and correlation keys by using the
Update-EntityPropertyExpressions
andCompute-CorrelationKeys
executables from theRuntime
folder.For example:
./identitymanager-Update-EntityPropertyExpressions.exe --database-connection-string "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false" -a
./identitymanager-Compute-CorrelationKeys.exe --database-connection-string "data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false" -a -
Restart the server.
-
Restart the remote agent(s).
-
Do not upgrade or deploy the configuration until the agent has also been upgraded.
Upgrade Agent Only
This installation should be performed only after the server has been upgraded.
-
Install the new .NET 6.0 Framework hosting bundle from https://dotnet.microsoft.com/en-us/download/dotnet/6.0.
-
Stop the agent.
-
Backup and Install
- Rename the Runtime folder to create a backup, for example
RuntimeOld
- Install the new runtime from
Runtime_XXXX.zip
on the Usercube server machine - Copy all the original appsettings json files from
RuntimeOld
to the newRuntime
- Rename the Runtime folder to create a backup, for example
-
Restart the agent.
-
Optional: Migrate the configuration (This allows new features to be taken into account.)
- Make sure the XML configuration has already been imported to the database. If not, import the configuration with the old Runtime into the database.
- Rename the Conf folder to create a backup, for example
ConfOld
. - Run the utility to migrate the configuration.
For example:
./identitymanager-Upgrade-ConfigurationVersion.exe --version "5.2.3" --xml-path "C:/identitymanagerExamplePath/ConfOld/" --output "C:/identitymanagerExamplePath/Conf/" - Optional: update the configuration version now that it has been migrated. NOTE: Change nothing else in the configuration except what is needed for the migration. The newly migrated conf should be the functional equivalent of the one already in the database.
- Deploy the configuration, correcting any warnings or new errors (that appear because the configuration import tool is smarter).
- Restart the server
Migrating from a version older than 5.2.1?
Because of breaking changes introduced in 5.2.0, migration from older versions can't be handled by the process described above.
Please follow these guides to handle migrations from older versions.