Chapter 9. Upgrading


Troubleshoot issues when upgrading to Ansible Automation Platform 2.5.

When upgrading from Ansible Automation Platform 2.4 to 2.5, 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

  1. To resolve this issue, perform the following tasks for all controller hosts:

    1. 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:

      CSRF_TRUSTED_ORIGINS = ['https://appX.example.com:8443','https://www.example.com']
      Copy to Clipboard Toggle word wrap
    2. 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.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat