Greetings!
We need to migrate Orchestrator 21.4.2 (application and data base) from one server to another server in a new domain. We have migrated the Database, with the same name: Uipath. When installing Uipath Orchestrator 21.4.2 on a new server with a new DNS and URL name, an error occurs when connecting to an existing database:
Tell me how to properly install Orchestrator from scratch using the same database:
-
Install UiPath Orchestrator 21.4.2 with new database Uipath_newDB
-
Restore DB UiPath_oldDB_backup to DB Uipath_newDB
-
Restore file configurations from backup (Web.config, UiPath.Orchestrator.dll.config, appsettings.Production.json - from Identity and Webhooks folder)
-
In the config file, check\change the connection to the database, EncryptionKey, Url link, Certificate Thumbprint:
C:\Orchestrator\UiPath.Orchestrator.dll.config
<add key=“EncryptionKey” value="OLD_ENCRYPTION_KEY />
C:\Orchestrator\Identity\appsettings.Production.json
“EncryptionKey”: " OLD_ENCRYPTION_KEY "
“DefaultConnection”: “Data Source= NEW_server\RPA_UIPATH, newport;Initial Catalog= Uipath_newDB;User ID=old_user_backup;Password=old_pass_backup”
“IdentityServerAddress”: “https:// NEW_URL /identity”,
“Name”: “Thumbprint NEW_Certificate”
“OrchestratorUrl”: "https:// NEW_URL ",
C:\Orchestrator\Webhooks\appsettings.Production.json
“ConnectionString”: “Data Source= NEW_server\RPA_UIPATH, newport;Initial Catalog= Uipath_newDB;User ID=old_user_backup;Password=old_pass_backup”
- Copy the Storage directory to the new server - C:\Orchestrator\Storage
- Change to new URL in DB tables
identity.ClientRedirectUris
identity.ClientPostLogoutRedirectUris - Launch Orchestrator in IIS and connect Robots?