# Getting error while creating group or host

**URL:** <https://forum.ansible.com/t/getting-error-while-creating-group-or-host/26795>\
**Category:** Ansible Project\
**Created:** [February 20, 2018, 4:35am UTC](https://forum.ansible.com/t/getting-error-while-creating-group-or-host/26795 "2018-02-20T04:35:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samurdhi\_Senanayake](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Samurdhi\_Senanayake](https://forum.ansible.com/u/Samurdhi_Senanayake)\
**Post date:** [February 20, 2018, 4:35am UTC](https://forum.ansible.com/t/getting-error-while-creating-group-or-host/26795/1 "2018-02-20T04:35:30Z")

</div>

I have installed ansible tower on CentOS 7. I am getting error message while I am creating host or group. Please advice.

Ansible Version : **ansible 2.4.0.0**

CentOS : **CentOS Linux release 7.4.1708 (Core)**

Error message when creating group : **Call to /api/v2/Groups/ .Get returned: 500 A server error has occurred.**

Error message when creating host: **Call to /api/v2/hosts/ .Get returned: 500 A server error has occurred.**

**Please see below screen shots**

[![](https://lh3.googleusercontent.com/-_qM1A0MfxnA/Woukc5NmV-I/AAAAAAAACF0/Vj2c5MoBudY-MRu3PkQyVE3P9czPqu7cgCLcBGAs/s320/Ansible_Error_Group.JPG)](https://lh3.googleusercontent.com/-_qM1A0MfxnA/Woukc5NmV-I/AAAAAAAACF0/Vj2c5MoBudY-MRu3PkQyVE3P9czPqu7cgCLcBGAs/s1600/Ansible_Error_Group.JPG)

[![](https://lh3.googleusercontent.com/-MSRUMl3IC0w/WouklHF_xzI/AAAAAAAACF4/KZVY4zSoU1QU8J_kzpfBDgRbl5M1tZ_QgCLcBGAs/s320/Ansible_Error_Host.JPG)](https://lh3.googleusercontent.com/-MSRUMl3IC0w/WouklHF_xzI/AAAAAAAACF4/KZVY4zSoU1QU8J_kzpfBDgRbl5M1tZ_QgCLcBGAs/s1600/Ansible_Error_Host.JPG)
