# Project works in AAP but fails in AWX

**URL:** <https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823>\
**Category:** Get Help\
**Tags:** rhel, aap, ubuntu, awx, network, galaxy-ng\
**Created:** [December 9, 2023, 2:43pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823 "2023-12-09T14:43:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaroncoulter](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aaroncoulter](https://forum.ansible.com/u/aaroncoulter)\
**Post date:** [December 9, 2023, 2:43pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/1 "2023-12-09T14:43:13Z")

</div>

I have Ansible Automation Platform and AWX set up in my lab so I can learn how to use these systems for network automation. I found a collection called ‘Network Toolkit’ by Sean Cavanaugh:  
[https://github.com/network-automation/toolkit](https://github.com/network-automation/toolkit)  
[https://galaxy.ansible.com/ui/repo/published/network/toolkit/](https://galaxy.ansible.com/ui/repo/published/network/toolkit/)

I’ve been testing the network\_backup.yml playbook against a Cisco 9300 and a 3850 switch to backup the configuration and copy it to a repository. It uses the cisco.ios collection and works really well in Ansible Automation Platform Controller 4.4.5 running on RHEL 9.2  
However, the same exact set up fails in AWX 23.4.0 running on Ubuntu 22.04.1 LTS

Here is the error:

```auto
The full traceback is:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/ansible/executor/task_executor.py", line 165, in run
    res = self._execute()
  File "/usr/local/lib/python3.9/site-packages/ansible/executor/task_executor.py", line 608, in _execute
    socket_path = start_connection(self._play_context, options, self._task._uuid)
  File "/usr/local/lib/python3.9/site-packages/ansible/executor/task_executor.py", line 1230, in start_connection
    write_to_file_descriptor(master, options)
  File "/usr/local/lib/python3.9/site-packages/ansible/module_utils/connection.py", line 58, in write_to_file_descriptor
    src = cPickle.dumps(obj, protocol=0)
  File "/usr/lib64/python3.9/copyreg.py", line 71, in _reduce_ex
    state = base(self)
RecursionError: maximum recursion depth exceeded while getting the str of an object

```

I also tried it in AWX 23.5.1 and I’m getting the same error. I’m just checking to see if anyone can point me in the right direction. Thanks.

---

<div class="post-metadata">

**Author:** ![0lzi](https://avatars.discourse-cdn.com/v4/letter/0/f9ae1b/32.png) [@0lzi](https://forum.ansible.com/u/0lzi)\
**Post date:** [December 9, 2023, 4:09pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/2 "2023-12-09T16:09:42Z")

</div>

What execution environment are you using in AWX?

---

<div class="post-metadata">

**Author:** ![aaroncoulter](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aaroncoulter](https://forum.ansible.com/u/aaroncoulter)\
**Post date:** [December 9, 2023, 4:45pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/3 "2023-12-09T16:45:43Z")

</div>

I’m using AWX EE (latest)  
I understand that you can use Ansible Builder to create your own EE. But, I’m still reading about it and haven’t attempted to create one yet. I don’t understand how to figure out which requirements and dependencies I would need for an EE to support Cisco devices. Can I download a pre-made one somewhere?

---

<div class="post-metadata">

**Author:** ![aaroncoulter](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aaroncoulter](https://forum.ansible.com/u/aaroncoulter)\
**Post date:** [December 9, 2023, 5:43pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/4 "2023-12-09T17:43:02Z")

</div>

I found this for that Network Toolkit on the dependencies tab:

Dependencies  
This collections requires the following collections for use

cisco.ios: \>=2.2.0  
arista.eos: \>=2.1.2  
ansible.utils: \>=2.2.0  
junipernetworks.junos: \>=2.2.0

I guess I’d need to create an EE and force those module versions?

---

<div class="post-metadata">

**Author:** ![aaroncoulter](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aaroncoulter](https://forum.ansible.com/u/aaroncoulter)\
**Post date:** [December 10, 2023, 2:53pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/5 "2023-12-10T14:53:15Z")

</div>

I got it working with AWX. It looks like there’s an execution environment made specific for this toolkit:

> **[Quay](https://quay.io/repository/acme_corp/network-ee?tab=tags&tag=latest)**
>
> Quay is the best place to build, store, and distribute your containers. Public repositories are always free.

---

<div class="post-metadata">

**Author:** ![jbericat](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jbericat/32/627_2.png) [@jbericat](https://forum.ansible.com/u/jbericat)\
**Post date:** [December 10, 2023, 11:09pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/6 "2023-12-10T23:09:45Z")

</div>

Hello @aaroncoulter, it’s wonderful to see that you managed to solve the problem independently!

Would you mind marking the post you found most helpful with a ‘solved’ check? This way, others browsing the #Get Help category can benefit from your solution. Thank you very much in advance!

---

<div class="post-metadata">

**Author:** ![aaroncoulter](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aaroncoulter](https://forum.ansible.com/u/aaroncoulter)\
**Post date:** [December 11, 2023, 5:38pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/7 "2023-12-11T17:38:58Z")

</div>

Ah yes, sorry about that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [January 10, 2024, 5:39pm UTC](https://forum.ansible.com/t/project-works-in-aap-but-fails-in-awx/2823/8 "2024-01-10T17:39:42Z")

</div>

Closed on January 10, 2024, 5:39pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
