Why Is My Ansible Tower Upgrade Failing at TASK[preflight : Preflight check - check Tower license type] with SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()", "NameError: name 'file' is not defined" ?

Solution Verified - Updated -

Issue

When upgrading Ansible Tower 3.4 to later version, you may run into the following issue:

" SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()", "NameError: name 'file' is not defined"], "stdout": "

Environment

  • Upgrading from Ansible Tower 3.4 to a later version

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