Why is Automation Controller reporting "cryptography.fernet.InvalidToken" error message?
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.