CommandError: Another instance is already registered as primary

Hi Team,

I am trying to install ansible tower in AWS with external database. But i am getting below error.

TASK [misc : Register the primary instance in the database.] *******************
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “tower-manage register_instance --primary --hostname="localhost"”, “delta”: “0:00:01.175520”, “end”: “2017-02-21 03:23:30.644152”, “failed”: true, “rc”: 1, “start”: “2017-02-21 03:23:29.468632”, “stderr”: “CommandError: Another instance is already registered as primary.”, “stdout”: “”, “stdout_lines”: , “warnings”: }

If any one faced this issue. Kindly help me to fix it.

Thanks,
Anil