Seeing issues during browsing Automation suite URL: - Failed to get organization info - Request failed with status code 401
Issue Description:
Failed to get organization info
Request failed with status code 401
Contact Support
Resolution:
- Generate Support Bundle logs and Diagnostic logs or check the certificate for its expiry.
- 401 is usually seen when the existing certificate is expired, the outcome of the logs above may look something like the below:
root@xxx123 UiPathAutomationSuite]# openssl x509 -enddate -noout -in tls.crt notAfter=Aug 25 08:08:45 2022 GMT
- If the certificate is expired, follow the below steps to update the certificate:
- Generate a domain certificate for both Online and Air-gapped installations(note that using a self-signed certificate is not recommended).
- Refer to the below documentation related to certificates:
- Decrypt the certificate key using the below steps:
- Generate a domain certificate for both Online and Air-gapped installations(note that using a self-signed certificate is not recommended).
-
Run the configureUiPathAS.sh script to update the certificate as shown below. The path to each of the three certificate files is needed. All the certificate files should be in PEM format.
- Certificate Authority Bundle - This bundle should contain the certificate used to sign the TLS server certificate.
- Server Certificate - Public server certificate
- Private key - Private key for server certificate
sudo ./configureUiPathAS.sh tls-cert update --ca-cert-file /path/to/cacert --tls-cert-file /path/to/tlscert --tls-key-file /path/to/tlskey
The below files will be stored in the /directory/path/to/store/certificate location.
To print out the certificate files, run the following command, specifying the directory where certificates are stored.
sudo ./configureUiPathAS.sh tls-cert get --outpath /directory/path/to/store/certificate
- In case the identity certificate has expired as well, replace the Identity certificate referring to Managing Identity Token Signing Certificate documentation.
This should solve the issue.
In case the issue persists, gather the latest Support Bundle land Diagnostic logs and create a Support ticket with UiPath.