Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 9. Upgrading
Troubleshoot issues when upgrading to Ansible Automation Platform 2.6.
9.1. Issue - automation controller API connection fails after upgrade with load balancer Copier lienLien copié sur presse-papiers!
When upgrading from Ansible Automation Platform 2.4 to 2.6, the upgrade completes successfully. However, connections to the platform gateway URL fail if you are using automation controller behind a load balancer.
You see this error message in the logs:
Error connecting to Controller API
Procedure
To resolve this issue, perform the following tasks for all controller hosts:
For each controller host, add the platform gateway URL as a trusted source in the
CSRF_TRUSTED_ORIGINsetting in the settings.py file.For example, if you configured the platform gateway URL as
https://www.example.com, you must add that URL in the settings.py file too as shown:CSRF_TRUSTED_ORIGINS = ['https://appX.example.com:8443','https://www.example.com']-
Restart each controller host by using the
automation-controller-service restartcommand so that the URL changes are implemented. For the procedure, see Start, stop, and restart automation controller in Configuring automation execution.