Getting connection error on port 5432 (Postgresql) when upgrade Ansible Automation Platform

Solution Verified - Updated -

Issue

Connection error with Postgresql database when execute setup.sh on upgrade proccess from Ansible Automation Platform:

  [user@hybrid-node-01 ~]$ ./setup.sh
  TASK [ansible.automation_platform_installer.automationcontroller : Get the  controller version] *******************
  fatal: [controller]: FAILED! =>

  Traceback (most recent call last):,
  ...
  "psycopg.OperationalError: connection failed: Connection refused
  Is the server running on host 'hybrid-node-01.example.com' (10.0.0.1) and accepting TCP/IP connections on port 5432?",

  "The above exception was the direct cause of the following exception:",

  Traceback (most recent call last):,
  ...
  "django.db.utils.OperationalError: connection failed: Connection refused,
  Is the server running on host 'hybrid-node-01.example.com' (10.0.0.1) and accepting TCP/IP connections on port 5432?",

Environment

  • Red Hat Ansible Automation Platform
    • 2.3
    • 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content