How to generate the seed_result.txt file via UiPath.DataMigrator.Cli.dll and update the Orchestrator configuration properly using the values generated from that?
- In a command prompt window, navigate to the Orchestrator installation folder C:\Program Files (x86)\UiPath\Orchestrator\Identity\Tools\DataMigrator.Cli
- Run the following command,
- dotnet UiPath.DataMigrator.Cli.dll seed --destinationConnectionString "Data Source=[Data_Source];Initial Catalog=[Initial_Catalog];User ID="";Password="" --orchestratorUri "" --outputFile "c:\temp\seed_results.txt"
- Copy the values from the seed_results.txt file, mentioned above, to the UiPath.Orchestrator.dll.config file, as follows,
- From the key with ClientName Orchestrator.S2S, copy the client ID to the key "IdentityServer.Integration.ClientId" and the client secret to the key "IdentityServer.Integration.ClientSecret" of the UiPath.Orchestrator.dll.config file
- From the key with ClientName Orchestrator.OpenId, copy the client ID to the key ExternalAuth.System.OpenIdConnect.ClientId and the client secret to the key ExternalAuth.System.OpenIdConnect.ClientSecret of the UiPath.Orchestrator.dll.config file
- Completely restart the IIS server, not only the Orchestrator application.
If the file "seed_results.txt" is empty, the seed command has not worked. Try to remove the values form the table identity.Client, of the database.