# AWX Jobs Constantly Failing

**URL:** <https://forum.ansible.com/t/awx-jobs-constantly-failing/36814>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 7, 2022, 11:22am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814 "2022-07-07T11:22:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [July 7, 2022, 11:22am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/1 "2022-07-07T11:22:30Z")

</div>

I have migrated AWX to a new K3s cluster, and find that I now get the following errors for almost every job run:

Error opening pod stream: Get “[https://awx.k3s.net:10250/containerLogs/awx/automation-job-12053-blqxd/worker?follow=true](https://awx.k3s.net:10250/containerLogs/awx/automation-job-12053-blqxd/worker?follow=true)”: EOF

Sometimes there are no errors at all, the job simply has a status of failed with:

“No output for this job”

What could be causing this?

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [July 7, 2022, 11:43am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/2 "2022-07-07T11:43:43Z")

</div>

Also, I can see the automation pods being created, they are then terminated with a reason ‘Killing’.

I cannot see any OOM or CPU errors, there is plenty of overhead resource wise.

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [July 7, 2022, 2:44pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/3 "2022-07-07T14:44:41Z")

</div>

I encountered this too although on rke2. What version of awx

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [July 8, 2022, 10:29am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/4 "2022-07-08T10:29:05Z")

</div>

Glad to know I’m not the only one. Versions:

AWX - 21.2.0  
Operator - 0.23.0  
K3s - v1.23.7+k3s1

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [July 13, 2022, 7:56pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/5 "2022-07-13T19:56:11Z")

</div>

Hello!

a similar issue reported here [https://github.com/ansible/awx/issues/12288](https://github.com/ansible/awx/issues/12288)

Sounds like an issue when too many jobs are running at the same time, and resource limits are being hit.

> I cannot see any OOM or CPU errors, there is plenty of overhead resource wise.

What metrics are you using from the k8s engine to see overhead?

AWX Team

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [July 14, 2022, 9:27am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/6 "2022-07-14T09:27:25Z")

</div>

Hello

Thanks for getting back to me.

This appears to only occur when I run a playbook which requires dynamic inventories to be updated. The inventories (3 sources) appear to be updated one at a time (each inventory source creates a pod for the update, the next source waits for the previous before starting it’s own pod).

I am using k9s, which I believe gets it’s metrics from the k8 metrics API. This shows, prior to playbook run, CPU 5%, memory 49%, there are no spikes when the errors occur.

I must also mention that no other AWX tasks are running at the time.

Regardless, I have increased the memory/CPU of the nodes and alas the same issue occurs.

Thanks

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [July 18, 2022, 10:19am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/7 "2022-07-18T10:19:02Z")

</div>

Hi

Any idea where to take this?

Thanks

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [July 20, 2022, 7:44pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/8 "2022-07-20T19:44:38Z")

</div>

> I have migrated AWX to a new K3s cluster

what k8s cluster (and version) were you using previously where AWX was working?

Anything special in your awx-demo.yml (or equivalent), feel free to copy and paste it here (remove sensitive info first please)

AWX Team

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [July 29, 2022, 9:46am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/9 "2022-07-29T09:46:57Z")

</div>

Unfortunately I can’t remember the k3s version and that is now gone.

I can say the old version of AWX was 19.5.0 (operator 0.15.0).

You can find my configurations in the github issue:

[https://github.com/ansible/awx/issues/12549](https://github.com/ansible/awx/issues/12549)

Thanks

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [August 5, 2022, 5:20pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/10 "2022-08-05T17:20:40Z")

</div>

Hi Poloniuns,

Since we don’t have too much insight into your environment, are you able to try out Tower in another isolated k8s environment such as minikube?

If so, may we kindly ask that you do so, and let us know if the issue persists. Try running the demo OOTB project on a fresh instance of AWX. This might help us discern if the issue is within our product or an environmental issue.

Thanks,  
AWX Team

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [August 9, 2022, 9:37am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/11 "2022-08-09T09:37:03Z")

</div>

Hi

Apologies for the delay.

To be frank, I don’t see the point in doing this, I assume that you already know that OOTB AWX works on a minikube instance.

What I was hoping for in raising this issue is some pointers as to where I might be able to look to help identify where the issue is coming from.

Thanks

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 9, 2022, 10:32am UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/12 "2022-08-09T10:32:39Z")

</div>

I relooked at your issue. I solved my problem by upgrading the kubernetes version. I suggest you upgrade the k3s version to the latest one first

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [August 9, 2022, 12:01pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/13 "2022-08-09T12:01:23Z")

</div>

Thanks, but I’m not able to upgrade k3s as another app depends on the earlier version I’m afraid.

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 9, 2022, 12:04pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/14 "2022-08-09T12:04:22Z")

</div>

Then unfortunately I can’t help you with that. The newer version of awx requires a certain version of kubernetes that is only provided by upgrading to the latest version of k3s.

The only option I have for you is to remain on awx 19.5 which is the one I think is good your version of

K3s until you are ready to move up

---

<div class="post-metadata">

**Author:** ![adpavlov](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/adpavlov/32/10205_2.png) [@adpavlov](https://forum.ansible.com/u/adpavlov)\
**Post date:** [August 9, 2022, 12:24pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/15 "2022-08-09T12:24:38Z")

</div>

Which version of k8s is required and why?

Скачайте [Outlook для iOS](https://aka.ms/o0ukef)

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 9, 2022, 12:29pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/16 "2022-08-09T12:29:12Z")

</div>

It’s the latest one. I am just sharing my experiences. I had a an older version of kubernetes. Then as I upgraded awx to the later versions of awx I increasingly found those errors that the op mentioned. I then read a change log mentioning this and to upgrade to a later version.

The moment I upgraded the problems I had immediately went away

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [August 9, 2022, 12:51pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/17 "2022-08-09T12:51:21Z")

</div>

Thanks, that is good information. Unfortunately now I need to find a way to downgrade AWX… I imagine this is not easy.

Does AWX keep a kubernetes version requirement? I can’t seem to find one.

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 9, 2022, 12:58pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/18 "2022-08-09T12:58:24Z")

</div>

I kept my awx configuration as code using redhat-cop controller configuration. Then i just wiped my awx and deployed a lesser Version. Then ran the controller configuration against my awx installation. Boom. All my awx configuration came back.

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 9, 2022, 12:58pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/19 "2022-08-09T12:58:50Z")

</div>

That’s my suggestion to you

---

<div class="post-metadata">

**Author:** ![Matt\_Page](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Matt\_Page](https://forum.ansible.com/u/Matt_Page)\
**Post date:** [August 9, 2022, 2:05pm UTC](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814/20 "2022-08-09T14:05:49Z")

</div>

Thanks for the tip, I see passwords aren’t exported with the tool you mentioned (too many to repopulate) so have opted to try upgrading the cluster.

AWX team - is there any documentation around supported kubernetes versions? I can’t find any myself.

Thanks

[Next page](https://forum.ansible.com/t/awx-jobs-constantly-failing/36814.md?page=2)
