AWX Syntax error

Hey all,

I’ve been debugging this weird issue with awx recently. It looks related to these issues but they contain no resolution and one pointed me here:

https://github.com/ansible/ansible/issues/56543
https://github.com/ansible/awx/issues/7453

When awx goes to spawn the playbook on the instance group container, it says this error message:

^\nSyntaxError: EOF while scanning triple-quoted string literal\ncommand terminated with exit code 1\n", “module_stdout”: “”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}

The interesting part is that this occasionally works but most of the time fails with that error. I have scaled everything down to a single awx and am running the most basic playbook that just uses debug and has no credentials. Does anyone know where I can start to look into this?

do you have more info about your setup? which k8s cluster are you on (k3s, eks, etc)? what version k8s and AWX do you have?

I am on GKE v1.23.17-gke.1700. We are running awx 17.1.0.

Also to make it clear. It looks like this error (https://github.com/ansible/awx/issues/7453), it fails on the same internal awx playbook, but on the task after the one dumped in there. The task if fails on is called spawn the playbook. The code for this is here: https://github.com/ansible/awx/blob/17.1.0/awx/playbooks/run_isolated.yml#L48-L50

AWX 17.1.0 is our legacy docker installer that is no longer supported. The newer versions of AWX are deployed on k8s clusters via awx-operator (see https://github.com/ansible/awx-operator)

Please try upgrading AWX to a supported version (latest is 22.3.0), and let us know if you still experience that syntax error. We haven’t seen users mention this bug, so my guess is that upgrading will resolve this for you.

AWX Team