Why I'm getting "django.db.utils.OperationalError: server closed the connection unexpectedly" during some operations in Ansible Tower?

Solution Verified - Updated -

Issue

  • I'm getting the following error in Ansible Tower logs:

    django.db.utils.OperationalError: server closed the connection unexpectedly
    This probably means the server terminated abnormally before or while
    processing the request.
    
  • This problem is usually produced when Tower executes a big operation against the database, like an inventory synchronization from a different source or something like that.

Environment

  • Ansible Tower
  • External Postgres database

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