Why is Automation Controller reporting "cryptography.fernet.InvalidToken" error message?

Solution Verified - Updated -

Issue

  • Issue occurs soon after maintenance (upgrade, server reboot, etc)

  • Automation Controller reporting the following error message

    Traceback (most recent call last):
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/utils/encryption.py", line 159, in decrypt_field
      return smart_str(decrypt_value(key, value))
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/utils/encryption.py", line 136, in decrypt_value
      value = f.decrypt(encrypted)
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/cryptography/fernet.py", line 86, in decrypt
      timestamp, data = Fernet._get_unverified_token_data(token)
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/cryptography/fernet.py", line 119, in _get_unverified_token_data
      raise InvalidToken
    cryptography.fernet.InvalidToken
    

Environment

  • Red Hat Ansible Automation Platform 2.1+

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