An AWX job fails with `Decryption failed (no vault secrets were found that could decrypt)` although a Vault credential is attached
AdvancedTroubleshootingCloud, AWX, Windows and Molecule
Answer
Likely causes → The project mixes vault IDs (dev, prod), and the attached credential has no Vault Identifier, or a different one, from the label in the file header. Another cause is that the credential holds a different password than the one used to encrypt.
Diagnose → head -1 on the vault file in the repository shows the label it was encrypted with. Compare it with the credential's "Vault Identifier" field.
Fix → Create one Vault credential per ID (Vault Identifier: prod) and attach all the ones the job needs. AWX allows several Vault credentials as long as their IDs differ.
Prevent → Use one vault ID per environment, the same ones in the CLI and AWX, and document them in the repo README.
More on Cloud, AWX, Windows and Molecule
`Failed to import the required Python library (botocore and boto3) on web01's Python /usr/bin/python3.`Beginner`[WARNING]: * Failed to parse inventory/aws.yml with auto plugin: inventory source 'inventory/aws.yml' could not be verified by inventory plugin 'amazon.aws.aws_ec2'`IntermediateThe `aws_ec2` inventory parses without errors but returns zero hostsIntermediate`Failed to describe instances: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation` or `(ExpiredToken)`IntermediateDynamic inventory finds the instances, but every host is `UNREACHABLE`IntermediateUsing the SSM connection plugin fails with `SessionManagerPlugin is not found` or hangs on file transferAdvanced