Automation Suite - Troubleshooting - Error while contacting partition service to validate the organization (#401)

How to troubleshoot Automation Suite issue with error "Error while contacting partition service to validate the organization (#401)"?

Issue: Not able to login to Automation Suite, getting error "Error while contacting partition service to validate the organization (#401)"

Root Cause: This may happen due to various issues, either login credentials are incorrect, identity pods are down or identity certificate expired.

Resolution:

  1. Validate that the credentials are correct
  2. If not, validate that identity pods are up and running
# kubectl get pods -A | grep identity

uipath      identity-service-api-974b78848-5gq7b            2/2   Running   0        7h56m

uipath      identity-service-api-974b78848-jgt64            2/2   Running   0        7h56m

uipath      identity-service-web-7f4fd85d95-bb49h            2/2   Running   0        7h56m

uipath      identity-service-web-7f4fd85d95-cwsrr            2/2   Running   0        7h56m
  1. Check the logs and search for exceptions:
Error while contacting partition service to validate the organization in Identity pod logs
2024-06-25 08:23:14.6413 IdentityServer4.Services.DefaultTokenCreationService Certificate CN=xxxxxxxx, OU=xxxxxx, O=xxxxxxxx Chase, L=xxxxxx, C=US has expired on 06/21/2024 04:57:43

2024-06-25 08:23:14.6423 System.Net.Http.HttpClient.LocationServiceClient.LogicalHandler Start processing HTTP request POST http://platform-location-service.uipath.svc.cluster.local/api/requestrouting/organization/orgNames

2024-06-25 08:23:14.6423 System.Net.Http.HttpClient.LocationServiceClient.ClientHandler Sending HTTP request POST http://platform-location-service.uipath.svc.cluster.local/api/requestrouting/organization/orgNames

2024-06-25 08:23:14.6460 System.Net.Http.HttpClient.LocationServiceClient.ClientHandler Received HTTP response headers after 3.6145ms - 401

2024-06-25 08:23:14.6460 System.Net.Http.HttpClient.LocationServiceClient.LogicalHandler End processing HTTP request after 3.8221ms - 401

2024-06-25 08:23:14.6460 UiPath.IdentityServer.Application.LocationService.LocationServiceClient Location service request to read organizations failed ReturnCode: UiPath.Platform.Logging.Abstractions.LogField.

2024-06-25 08:23:14.6475 UiPath.IdentityServer.Web.Middleware.ExceptionHandlingMiddleware Error while contacting partition service to validate the organization

PartitionLookupException*Location service call failed with returnCode: UiPath.Platform.Logging.Abstractions.LogField* at UiPath.IdentityServer.Application.LocationService.LocationServiceClient.SendAsync(HttpClient client, HttpRequestMessage request, String logMessage) in /home/vsts/work/1/s/src/Application/LocationService/LocationServiceClient.cs:line 179

  at UiPath.IdentityServer.Application.LocationService.LocationServiceClient.PostAsync(String body, String logMessage) in
Ex: The above exception shows that identity certificates are expired
  1. Renew the identity certificate as per Automation Suite - Managing the certificates (uipath.com) .