# The project could not sync because there is no Execution Environment.

**URL:** <https://forum.ansible.com/t/the-project-could-not-sync-because-there-is-no-execution-environment/37509>\
**Category:** AWX Project\
**Tags:** awx, ee, kubernetes\
**Created:** [December 29, 2022, 8:00pm UTC](https://forum.ansible.com/t/the-project-could-not-sync-because-there-is-no-execution-environment/37509 "2022-12-29T20:00:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Knox](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kevin_knox/32/3926_2.png) [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Post date:** [December 29, 2022, 8:00pm UTC](https://forum.ansible.com/t/the-project-could-not-sync-because-there-is-no-execution-environment/37509/1 "2022-12-29T20:00:51Z")

</div>

I’m attempting to create a new Project in a new 20.10.2 environment, and getting:  
raise RuntimeError(‘The project could not sync because there is no Execution Environment.’)

Details below, but I have 2 EEs defined and neither works. I’ve patterned them after my working 20.0.1 environments, but I may be doing something wrong in 21.10.2. I’d have thought the build would have done this for me, but maybe I did something wrong in the build.

I have these defined:  
{  
“count”: 2,  
“next”: null,  
“previous”: null,  
“results”: [  
{  
“id”: 2,  
“type”: “execution\_environment”,  
“url”: “/api/v2/execution\_environments/2/”,  
“related”: {  
“created\_by”: “/api/v2/users/2/”,  
“modified\_by”: “/api/v2/users/2/”,  
“activity\_stream”: “/api/v2/execution\_environments/2/activity\_stream/”,  
“unified\_job\_templates”: “/api/v2/execution\_environments/2/unified\_job\_templates/”,  
“copy”: “/api/v2/execution\_environments/2/copy/”,  
“organization”: “/api/v2/organizations/1/”  
},  
“summary\_fields”: {  
“organization”: {  
“id”: 1,  
“name”: “Middleware”,  
“description”: “”  
},  
“created\_by”: {  
“id”: 2,  
“username”: “myid”,  
“first\_name”: “Kevin”,  
“last\_name”: “Knox”  
},  
“modified\_by”: {  
“id”: 2,  
“username”: “myid”,  
“first\_name”: “Kevin”,  
“last\_name”: “Knox”  
},  
“user\_capabilities”: {  
“edit”: true,  
“delete”: true,  
“copy”: true  
}  
},  
“created”: “2022-12-29T19:52:09.003208Z”,  
“modified”: “2022-12-29T19:52:09.003222Z”,  
“name”: “AWX EE Latest”,  
“description”: “”,  
“organization”: 1,  
“image”: “[quay.io/ansible/awx-ee:latest](http://quay.io/ansible/awx-ee:latest)”,  
“managed”: false,  
“credential”: null,  
“pull”: “”  
},  
{  
“id”: 1,  
“type”: “execution\_environment”,  
“url”: “/api/v2/execution\_environments/1/”,  
“related”: {  
“created\_by”: “/api/v2/users/2/”,  
“modified\_by”: “/api/v2/users/2/”,  
“activity\_stream”: “/api/v2/execution\_environments/1/activity\_stream/”,  
“unified\_job\_templates”: “/api/v2/execution\_environments/1/unified\_job\_templates/”,  
“copy”: “/api/v2/execution\_environments/1/copy/”,  
“organization”: “/api/v2/organizations/1/”  
},  
“summary\_fields”: {  
“organization”: {  
“id”: 1,  
“name”: “Middleware”,  
“description”: “”  
},  
“created\_by”: {  
“id”: 2,  
“username”: “myid”,  
“first\_name”: “Kevin”,  
“last\_name”: “Knox”  
},  
“modified\_by”: {  
“id”: 2,  
“username”: “myid”,  
“first\_name”: “Kevin”,  
“last\_name”: “Knox”  
},  
“user\_capabilities”: {  
“edit”: true,  
“delete”: true,  
“copy”: true  
}  
},  
“created”: “2022-12-29T19:45:19.883190Z”,  
“modified”: “2022-12-29T19:45:19.883209Z”,  
“name”: “Control Plane Execution Environment”,  
“description”: “”,  
“organization”: 1,  
“image”: “[quay-remote.rtfx.mycompany.com/ansible/awx-ee:latest](http://quay-remote.rtfx.mycompany.com/ansible/awx-ee:latest)”,  
“managed”: false,  
“credential”: null,  
“pull”: “”  
}  
]  
}

My project is this:  
{  
“count”: 1,  
“next”: null,  
“previous”: null,  
“results”: [  
{  
“id”: 6,  
“type”: “project”,  
“url”: “/api/v2/projects/6/”,  
“related”: {  
“created\_by”: “/api/v2/users/2/”,  
“modified\_by”: “/api/v2/users/2/”,  
“credential”: “/api/v2/credentials/1/”,  
“last\_job”: “/api/v2/project\_updates/3/”,  
“teams”: “/api/v2/projects/6/teams/”,  
“playbooks”: “/api/v2/projects/6/playbooks/”,  
“inventory\_files”: “/api/v2/projects/6/inventories/”,  
“update”: “/api/v2/projects/6/update/”,  
“project\_updates”: “/api/v2/projects/6/project\_updates/”,  
“scm\_inventory\_sources”: “/api/v2/projects/6/scm\_inventory\_sources/”,  
“schedules”: “/api/v2/projects/6/schedules/”,  
“activity\_stream”: “/api/v2/projects/6/activity\_stream/”,  
“notification\_templates\_started”: “/api/v2/projects/6/notification\_templates\_started/”,  
“notification\_templates\_success”: “/api/v2/projects/6/notification\_templates\_success/”,  
“notification\_templates\_error”: “/api/v2/projects/6/notification\_templates\_error/”,  
“access\_list”: “/api/v2/projects/6/access\_list/”,  
“object\_roles”: “/api/v2/projects/6/object\_roles/”,  
“copy”: “/api/v2/projects/6/copy/”,  
“organization”: “/api/v2/organizations/1/”,  
“default\_environment”: “/api/v2/execution\_environments/2/”,  
“last\_update”: “/api/v2/project\_updates/3/”  
},  
“summary\_fields”: {  
“organization”: {  
“id”: 1,  
“name”: “Middleware”,  
“description”: “”  
},  
“default\_environment”: {  
“id”: 2,  
“name”: “AWX EE Latest”,  
“description”: “”,  
“image”: “[quay.io/ansible/awx-ee:latest](http://quay.io/ansible/awx-ee:latest)”  
},  
“credential”: {  
“id”: 1,  
“name”: “kevin\_personal”,  
“description”: “”,  
“kind”: “scm”,  
“cloud”: false,  
“kubernetes”: false,  
“credential\_type\_id”: 2  
},  
“last\_job”: {  
“id”: 3,  
“name”: “WAF”,  
“description”: “”,  
“finished”: “2022-12-29T19:52:27.646646Z”,  
“status”: “error”,  
“failed”: true  
},  
“last\_update”: {  
“id”: 3,  
“name”: “WAF”,  
“description”: “”,  
“status”: “error”,  
“failed”: true  
},  
“created\_by”: {  
“id”: 2,  
“username”: “myid”,  
“first\_name”: “Kevin”,  
“last\_name”: “Knox”  
},  
“modified\_by”: {  
“id”: 2,  
“username”: “myid”,  
“first\_name”: “Kevin”,  
“last\_name”: “Knox”  
},  
“object\_roles”: {  
“admin\_role”: {  
“description”: “Can manage all aspects of the project”,  
“name”: “Admin”,  
“id”: 22  
},  
“use\_role”: {  
“description”: “Can use the project in a job template”,  
“name”: “Use”,  
“id”: 23  
},  
“update\_role”: {  
“description”: “May update the project”,  
“name”: “Update”,  
“id”: 24  
},  
“read\_role”: {  
“description”: “May view settings for the project”,  
“name”: “Read”,  
“id”: 25  
}  
},  
“user\_capabilities”: {  
“edit”: true,  
“delete”: true,  
“start”: true,  
“schedule”: true,  
“copy”: true  
}  
},  
“created”: “2022-12-29T19:47:34.278960Z”,  
“modified”: “2022-12-29T19:52:25.154452Z”,  
“name”: “WAF”,  
“description”: “”,  
“local\_path”: “\_6\_\_waf”,  
“scm\_type”: “git”,  
“scm\_url”: “[https://github.mycompany.com/AEP/WAF](https://github.mycompany.com/AEP/WAF)”,  
“scm\_branch”: “”,  
“scm\_refspec”: “”,  
“scm\_clean”: false,  
“scm\_track\_submodules”: false,  
“scm\_delete\_on\_update”: false,  
“credential”: 1,  
“timeout”: 0,  
“scm\_revision”: “”,  
“last\_job\_run”: “2022-12-29T19:52:27.646646Z”,  
“last\_job\_failed”: true,  
“next\_job\_run”: null,  
“status”: “error”,  
“organization”: 1,  
“scm\_update\_on\_launch”: false,  
“scm\_update\_cache\_timeout”: 0,  
“allow\_override”: false,  
“custom\_virtualenv”: null,  
“default\_environment”: 2,  
“signature\_validation\_credential”: null,  
“last\_update\_failed”: true,  
“last\_updated”: “2022-12-29T19:52:27.646646Z”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![Kevin\_Knox](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kevin_knox/32/3926_2.png) [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Post date:** [December 29, 2022, 9:00pm UTC](https://forum.ansible.com/t/the-project-could-not-sync-because-there-is-no-execution-environment/37509/2 "2022-12-29T21:00:03Z")

</div>

So, my Task node seems broken:  
2022-12-28 17:18:16,305 INFO success: superwatcher entered RUNNING state, process has stayed up for \> than 1 seconds (startsecs) 2022-12-28 17:18:16,305 INFO success: superwatcher entered RUNNING state, process has stayed up for \> than 1 seconds (startsecs) 2022-12-28 17:18:17,606 WARNING [-] awx.main.dispatch.periodic periodic beat started 2022-12-28 17:18:17,646 INFO [-] awx.main.dispatch Running worker dispatcher listening to queues [‘tower\_broadcast\_all’, ‘it-network-engineering-awx-7f7bc49ccc-b2v45’] Task exception was never retrieved future: \<Task finished name=‘Task-3’ coro=\<Connection.disconnect() done, defined at /var/lib/awx/venv/awx/lib64/python3.9/site-packages/redis/asyncio/connection.py:828\> exception=RuntimeError(‘Event loop is closed’)\> Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/redis/asyncio/connection.py”, line 837, in disconnect self.\_writer.close() # type: ignore[union-attr] File “/usr/lib64/python3.9/asyncio/streams.py”, line 353, in close return self.\_transport.close() File “/usr/lib64/python3.9/asyncio/selector\_events.py”, line 698, in close self.\_loop.call\_soon(self.\_call\_connection\_lost, None) File “/usr/lib64/python3.9/asyncio/base\_events.py”, line 751, in call\_soon self.\_check\_closed() File “/usr/lib64/python3.9/asyncio/base\_events.py”, line 515, in \_check\_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed

---

<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:** [January 20, 2023, 6:19pm UTC](https://forum.ansible.com/t/the-project-could-not-sync-because-there-is-no-execution-environment/37509/3 "2023-01-20T18:19:44Z")

</div>

Hi, were you able to resolve this issue? Are you still on 20.10.2?

AWX Team

---

<div class="post-metadata">

**Author:** ![Kevin\_Knox](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kevin_knox/32/3926_2.png) [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Post date:** [January 20, 2023, 9:43pm UTC](https://forum.ansible.com/t/the-project-could-not-sync-because-there-is-no-execution-environment/37509/4 "2023-01-20T21:43:14Z")

</div>

Yes. This was because I did not allow the build to complete. I would see the message saying it was attempting to connect and launch a manual migration and that would corrupt the database. I’ve learned to walk away for a bit after the apply and the problem evaporates.
