# Problem with awx cli

**URL:** <https://forum.ansible.com/t/problem-with-awx-cli/38501>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [October 6, 2023, 7:25am UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501 "2023-10-06T07:25:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawid.grygrzc](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Post date:** [October 6, 2023, 7:25am UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/1 "2023-10-06T07:25:59Z")

</div>

Hi all,  
I have some problems with awxkit after some changes in the k8s configuration (SSL has been added). Previously it was working fine, but now it’s not.

awx --conf.host [https://my-domain.com](https://my-domain.com) --conf.username user–conf.password pass --conf.insecure export

I am getting the following error:  
_ **This endpoint raised an error: /api/v2/users/** _  
_ **This endpoint raised an error: /api/v2/organizations/** _  
_ **This endpoint raised an error: /api/v2/teams/** _  
_ **This endpoint raised an error: /api/v2/credential\_types/** _  
_ **This endpoint raised an error: /api/v2/credentials/** _  
_ **This endpoint raised an error: /api/v2/notification\_templates/** _  
_ **This endpoint raised an error: /api/v2/projects/** _  
_ **This endpoint raised an error: /api/v2/inventories/** _  
_ **This endpoint raised an error: /api/v2/inventory\_sources/** _  
_ **This endpoint raised an error: /api/v2/job\_templates/** _  
_ **This endpoint raised an error: /api/v2/workflow\_job\_templates/** _  
_ **This endpoint raised an error: /api/v2/execution\_environments/** _  
_ **This endpoint raised an error: /api/v2/applications/** _  
_ **This endpoint raised an error: /api/v2/schedules/** _  
_ **{** _  
_ **“users”: null,** _  
_ **“organizations”: null,** _  
_ **“teams”: null,** _  
_ **“credential\_types”: null,** _  
_ **“credentials”: null,** _  
_ **“notification\_templates”: null,** _  
_ **“projects”: null,** _  
_ **“inventory”: null,** _  
_ **“inventory\_sources”: null,** _  
_ **“job\_templates”: null,** _  
_ **“workflow\_job\_templates”: null,** _  
_ **“execution\_environments”: null,** _  
_ **“applications”: null,** _  
_ **“schedules”: null** _  
_ **}** _

_**I have also testing the environment (without access over https) where the mentioned commands work fine**_

awxkit version - 23.2.0

Any ideas?

---

<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:** [October 6, 2023, 5:26pm UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/2 "2023-10-06T17:26:42Z")

</div>

do you get the same errors without “–conf.insecure” set?

AWX Team

---

<div class="post-metadata">

**Author:** ![dawid.grygrzc](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Post date:** [October 7, 2023, 10:33am UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/3 "2023-10-07T10:33:55Z")

</div>

Without it, I am getting another error:

\_\*\*There was a network error of some kind trying to reach [https://my-domain.com/.\*\*\_](https://my-domain.com/.**_)  
_**You might need to specify (or double-check) --conf.host**_

_**HTTPSConnectionPool(host=‘‘[https://my-domain.com/](https://my-domain.com/), port=443): Max retries exceeded with url: /api/ (Caused by NewConnectionError(’\<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb35cd17e20\>: Failed to establish a new connection: [Errno 111] Connection refused’))**_

---

<div class="post-metadata">

**Author:** ![Pi3tr4sh3k](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pi3tr4sh3k/32/1529_2.png) [@Pi3tr4sh3k](https://forum.ansible.com/u/Pi3tr4sh3k)\
**Post date:** [October 9, 2023, 12:45pm UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/4 "2023-10-09T12:45:26Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![Pi3tr4sh3k](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pi3tr4sh3k/32/1529_2.png) [@Pi3tr4sh3k](https://forum.ansible.com/u/Pi3tr4sh3k)\
**Post date:** [October 11, 2023, 8:50am UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/5 "2023-10-11T08:50:23Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![dawid.grygrzc](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Post date:** [October 17, 2023, 8:52am UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/6 "2023-10-17T08:52:12Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![tom-mcmanus3](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tom-mcmanus3/32/997_2.png) [@tom-mcmanus3](https://forum.ansible.com/u/tom-mcmanus3)\
**Post date:** [October 20, 2023, 2:43pm UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/7 "2023-10-20T14:43:59Z")

</div>

I’m getting this error for all projects and organizations:

This object does not have a natural key: /api/v2/execution\_environments/1/  
Unable to construct a natural key for foreign key ‘default\_environment’ of object /api/v2/projects/64/

---

<div class="post-metadata">

**Author:** ![dawid.grygrzc](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Post date:** [October 27, 2023, 9:01am UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501/8 "2023-10-27T09:01:43Z")

</div>

Sorry but I don’t get your point. Could describe it in another way?
