# AWX job failure due to psutil python module

**URL:** <https://forum.ansible.com/t/awx-job-failure-due-to-psutil-python-module/6749>\
**Category:** Get Help\
**Tags:** awx, collections\
**Created:** [June 24, 2024, 5:10pm UTC](https://forum.ansible.com/t/awx-job-failure-due-to-psutil-python-module/6749 "2024-06-24T17:10:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![husnain\_taja](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@husnain\_taja](https://forum.ansible.com/u/husnain_taja)\
**Post date:** [June 24, 2024, 5:10pm UTC](https://forum.ansible.com/t/awx-job-failure-due-to-psutil-python-module/6749/1 "2024-06-24T17:10:07Z")

</div>

Hi,

We have a job template called update\_telegraf to deploy telegraf configurations.  
the issue is that as soon as we launch the job template it fails very quickly stating:

 ![AWX_job_log](https://us1.discourse-cdn.com/ansible/original/2X/6/6ea84836ae15071754d3812fc8995ba356b77f9f.png)

It is failing when psutil is trying to call one function.And this is happening for only 1 server.Rest all places it is working fine.

System Details:  
Ansible\_Deployment\_type: docker container  
OS: Rhel7.9  
AWX version: 17.1.0  
Ansible: ansible 2.9.18  
config file = /etc/ansible/ansible.cfg  
configured module search path = [‘/var/lib/awx/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python3.6/site-packages/ansible  
executable location = /usr/bin/ansible  
python version = 3.6.8 (default, Aug 24 2020, 17:57:11) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]

Python: 3.6.8  
psutil\_module\_version: 5.9.5

Even if we try to import it manually it fails and produces this error AttributeError: module ‘psutil.\_psutil\_posix’ has no attribute ‘getpagesize’

for investigation purpose I just hardcoded the page size to 4096 and then relaunched the job so then I got this error

`ERROR! Unexpected Exception, this is probably a bug: version conflict: '/var/lib/awx/venv/ansible/lib/python3.6/site-packages/psutil/_psutil_linux.cpython-36m-x86_64-linux-gnu.so' C extension module was built for another version of psutil (5.7.0 instead of 5.9.5); you may try to 'pip uninstall psutil', manually remove /var/lib/awx/venv/ansible/lib/python3.6/site-packages/psutil/_psutil_linux.cpython-36m-x86_64-linux-gnu.so or clean the virtual env somehow, then reinstall`

Since there is no internet connectivity so I took the psutil module zip file manually and then tried to run reinstallation but it did’nt worked because when it tries to install the module it runs setup and wheel from internet and it fails.

Recently we had OS patching,so can it be the reason ?

---

<div class="post-metadata">

**Author:** ![husnain\_taja](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@husnain\_taja](https://forum.ansible.com/u/husnain_taja)\
**Post date:** [June 27, 2024, 7:34am UTC](https://forum.ansible.com/t/awx-job-failure-due-to-psutil-python-module/6749/2 "2024-06-27T07:34:12Z")

</div>

This issue has been fixed.
