Why does AICenter upgrade fail with error "failed to wait for application argocd/aievents: timed out waiting for the condition"?
Issue description: When running the services upgrade using ./install-uipath.sh --upgrade -i /opt/UiPathAutomationSuite/cluster_config.json -o ./output.json -s --accept-license-agreement
it fails with error "Error: [failed to wait for application argocd/aievents: timed out waiting for the condition, failed to wait for application argocd/aicenter: timed out waiting for the condition, error waiting for components".
AI Center pods may be in Error state throwing message "Request GET https://FQDN/identity/api/ApiResource/DocumentUnderstanding completed with status code 401" and in the Event Viewer logs from the external Orchestrator machine there may be errors like "Token is missing host admin claims and no required scope was found".
These lead to an identity issue which could come from the fact that the identity token has expired.
Resolution: Generate again an identity token from Orchestrator host -> Management ->Security and next to the Installation Key click on generate new and copy the new token.
Then edit the cluster_config.json file and add the "identity_access_token" copied from Orchestrator. It should look like this:
"aicenter": {
"orchestrator_url":"https://orchestrator-url.com">https://orchestrator-url.com",
"identity_server_url": "https://orchestrator-url.com/identity">https://orchestrator-url.com/identity",
"orchestrator_cert_file_path": "",
"identity_cert_file_path": "",
"identity_access_token": "",
},
After that save the cluster config and rerun the services upgrade command.