500 Error While Accessing Orchestrator Caused Due To Incorrect/ Empty Storage Bucket Provider Key Configuration
Issue synopsis and diagnosis: Sometimes, a 500 error is encountered upon trying to access the Orchestrator in the browser, and upon investigating the logs, several errors may be seen that point to the Storage buckets. These errors can be found in the Event Viewer on the Orchestrator server, and look like the below:
- Exception Info: Castle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not instantiate UiPath.Orchestrator.Core.FeatureFlags.CoreFeatureProvider
- System.InvalidOperationException: Failed to convert configuration value at 'appSettings:Buckets.AvailableProviders' to type 'UiPath.Orchestrator.Core.Buckets.BucketStorageProviders'
- System.FormatException: is not a valid value for BucketStorageProviders.... ---> System.ArgumentException: Must specify valid information for parsing in the string
Root Cause:
This is caused by an incorrect configuration of the Storage Bucket Provider key in the Orchestrator's "UiPath.Orchestrator.dll.config" file.
Resolution:
Please follow the below steps:
- If leveraging storage buckets, then make sure to have configured the key correctly as explained here: Storage Buckets - Enabling Storage Providers.
- If not using the storage buckets, then remove the storage bucket key from the "UiPath.Orchestrator.dll.config" file. Note that even an empty value () will result in the same errors that are shared above. Hence, ensure that this key is wiped out if not leveraging the storage buckets.