Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 9. Upgrading
Troubleshoot issues when upgrading to Ansible Automation Platform 2.5.
9.1. Issue - When upgrading from Ansible Automation Platform 2.4 to 2.5, connections to the automation controller API fail if the automation controller is behind a load balancer Link kopierenLink in die Zwischenablage kopiert!
When upgrading Ansible Automation Platform 2.4 to 2.5, the upgrade is completed; however, connections to the platform gateway URL fail on the platform gateway UI if you are using the automation controller behind a load balancer. The following error message is displayed:
Error connecting to Controller API
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_ORIGIN
setting 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 below:CSRF_TRUSTED_ORIGINS = ['https://appX.example.com:8443','https://www.example.com']
CSRF_TRUSTED_ORIGINS = ['https://appX.example.com:8443','https://www.example.com']
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Restart each controller host by using the
automation-controller-service restart
command so that the URL changes are implemented. For the procedure, see Start, stop, and restart automation controller in Configuring automation execution.