After a recent Orchestrator upgrade from 2020.10.0 - 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.
Resolution:
- Open uipath.orchestrator.dll.config in an admin-mode text editor.
- Search for the section, which will include at least 2 keys, EncryptionKey and IdentityServer.EncryptionKey.
- 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.