`ERROR! Unexpected Exception, this is probably a bug: cannot import name 'environmentfilter' from 'jinja2'`
AdvancedTroubleshootingVault, Performance and Execution Behaviour
Answer
Likely causes → An old Ansible (2.9 or 2.10) runs with Jinja2 3.1 or newer, which removed environmentfilter. This usually happens after pip install -U pulled new dependencies into a shared environment.
Diagnose → ansible --version shows the Python path. Then run <that python> -m pip show jinja2 ansible-core.
Fix → The real fix is to upgrade to a supported ansible-core. As a stopgap, pin jinja2<3.1 in that virtualenv.
Prevent → Run Ansible from a dedicated virtualenv or execution environment with locked dependencies (pip-compile, an EE image tag), never from the system Python.
More on Vault, Performance and Execution Behaviour
`ERROR! Attempting to decrypt but no vault secrets found`Beginner`ERROR! Decryption failed (no vault secrets were found that could decrypt) on inventories/prod/group_vars/all/vault.yml`BeginnerBoth `--vault-id [email protected]` and `--vault-id prod@prompt` are passed, and prod files still fail to decryptIntermediate`Vault format unhexlify error: Odd-length string` after pasting an `encrypt_string` valueIntermediate`Problem running vault password script /home/ci/.vault_pass ([Errno 8] Exec format error). If this is not a script, remove the executable bit from the file.`AdvancedEvery change to `vault.yml` produces an unreadable diff and constant merge conflictsIntermediate