AWX jobs stay in `Pending` and never start
AdvancedTroubleshootingCloud, AWX, Windows and Molecule
Answer
Likely causes →
- No instance in the job's instance group has free capacity (forks × concurrent jobs).
- The job is waiting for a dependent project or inventory update that is itself stuck.
- With container groups on Kubernetes, the job pod cannot be scheduled (resource requests, node selectors, quota) or cannot pull its EE image.
Diagnose →
kubectl -n awx get pods | grep automation-job
kubectl -n awx describe pod <automation-job-pod> # events: Insufficient cpu, ImagePullBackOff
kubectl -n awx logs deploy/awx-task -c awx-task | tail -50
In the UI, check Instance Groups for capacity and the job's "Explanation" field.
Fix → Add capacity or adjust the job template's instance group, fix the stuck dependency job, and right-size the pod requests or fix the image pull secret.
Prevent → Monitor capacity and pending time, and set sensible job template forks so one job cannot consume an instance's whole capacity.
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