500 Internal Server Error - Encryption Key Was Not Found

After a recent Orchestrator upgrade from 2020.10.0 and certificate update, why does accessing the Orchestrator site return a 500 error, "Encryption key not found"?

Issue Description: The identity encryption key was missing in the appsettings.production.json file, but available in the uipath.orchestrator.dll.config file. This is a known bug when upgrading from certain early Orchestrator 2020.10 minor versions.


Resolution:

  1. Open uipath.orchestrator.dll.config in an admin-mode text editor.
  2. Search for the <secureAppSettings> section, which will include at least 2 keys, EncryptionKey and IdentityServer.EncryptionKey.

<secureAppSettings>

<add key="EncryptionKey" value="FP302….jy68=" />

<add key="IdentityServer.EncryptionKey" value="qfTTm….xZ0HjM="/>

</secureAppSettings>

  1. Copy the value only of the IdentityServer.EncryptionKey into another working text file, closing uipath.orchestrator.dll.config.
  2. Open appsettings.production.json in an admin-mode text editor.
  3. After the final entry, add a comma and new line, spacing over to align with the previous line.
  4. Add the following new key

"DatabaseProtectionSettings": {

"EncryptionKey2021":

"{ IdentityServer.EncryptionKey value}"

  1. Save and close appsettings.production.json
  2. Restart the Orchestrator server in IIS
  3. Confirm the Host and at least one other tenant are accessible.