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:
- Open uipath.orchestrator.dll.config in an admin-mode text editor.
- 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>
- Copy the value only of the IdentityServer.EncryptionKey into another working text file, closing uipath.orchestrator.dll.config.
- Open appsettings.production.json in an admin-mode text editor.
- After the final entry, add a comma and new line, spacing over to align with the previous line.
- Add the following new key
"DatabaseProtectionSettings": {
"EncryptionKey2021":
"{ IdentityServer.EncryptionKey value}"
- Save and close appsettings.production.json
- Restart the Orchestrator server in IIS
- Confirm the Host and at least one other tenant are accessible.