# Help me to install ansible - end up with "Oops!  An error occured while running setup"

**URL:** <https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [December 21, 2016, 8:54am UTC](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304 "2016-12-21T08:54:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bentech4u](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bentech4u](https://forum.ansible.com/u/bentech4u)\
**Post date:** [December 21, 2016, 8:54am UTC](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304/1 "2016-12-21T08:54:33Z")

</div>

HI

i am very new to ansible and i want to setup a POC env for my company.

i was following [http://docs.ansible.com/ansible-tower/latest/html/quickinstall/install\_script.html](http://docs.ansible.com/ansible-tower/latest/html/quickinstall/install_script.html) and while running seup, i am getting “[error] Oops! An error occured while running setup.”

and below is the error on log file

ASK [awx\_install : Wait for supervisor to stop.] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
^[[0;32mok: [localhost] =\> {“attempts”: 1, “changed”: false, “stat”: {“exists”: false}}^[[0m

TASK [awx\_install : Migrate the Tower database schema (may take awhile when upgrading).] \*\*\*  
^[[0;31mfatal: [localhost]: FAILED! =\> {“changed”: true, “cmd”: [“tower-manage”, “migrate”, “–noinput”, “–fake-initial”], “delta”: “0:00:01.327536”, “end”: “2016-12-21 11:40:18.293455”, “failed”: true, “rc”: 1, “start”: “2016-12-21 11:40:16.965919”, “stderr”: “Traceback (most recent call last):\n File "/usr/bin/tower-manage", line 9, in \n load\_entry\_point(‘ansible-tower==3.0.3’, ‘console\_scripts’, ‘tower-manage’)()\n File "/lib/python2.7/site-packages/awx/ **init**.py", line 103, in manage\n File "/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/core/management/ **init**.py", line 354, in execute\_from\_command\_line\n utility.execute()\n File "/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/core/management/ **init**.py", line 328, in execute\n django.setup()\n File "/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/ **init**.py", line 18, in setup\n apps.populate(settings.INSTALLED\_APPS)\n File "/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate\n app\_config.import\_models(all\_models)\n File "/var/lib/awx/venv/tower/lib/python2.7/site-packages/django/apps/config.py", line 198, in import\_models\n self.models\_module = import\_module(models\_module\_name)\n File "/opt/rh/python27/root/usr/lib64/python2.7/importlib/ **init**.py", line 37, in import\_module\n **import** (name)\n File "/lib/python2.7/site-packages/awx/main/models/ **init**.py", line 79, in \n File "/lib/python2.7/site-packages/awx/main/signals.py", line 23, in \n File "/lib/python2.7/site-packages/awx/main/tasks.py", line 50, in \n File "/lib/python2.7/site-packages/awx/main/queue.py", line 26, in \nValueError: too many values to unpack”, “stdout”: “”, “stdout\_lines”: , “warnings”: }^[[0m

RUNNING HANDLER [supervisor : restart supervisor] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

RUNNING HANDLER [httpd : restart httpd] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/root/Desktop/ansible-tower-setup-3.0.3/install.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
^[[0;31mlocalhost^[[0m : ^[[0;32mok=87 ^[[0m ^[[0;33mchanged=35 ^[[0m unreachable=0 ^[[0;31mfailed=1 ^[[0m

how can i fix this issue.

Regards,  
Ben

---

<div class="post-metadata">

**Author:** ![Timothy\_Vigers](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@Timothy\_Vigers](https://forum.ansible.com/u/Timothy_Vigers)\
**Post date:** [February 18, 2017, 2:53am UTC](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304/2 "2017-02-18T02:53:14Z")

</div>

Hi Ben,

Not sure if you ended up fixing it however I had the same issue.

It was because of the password that I had set.

Regards,

Tim

---

<div class="post-metadata">

**Author:** ![Vicky\_Korpal](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@Vicky\_Korpal](https://forum.ansible.com/u/Vicky_Korpal)\
**Post date:** [August 9, 2017, 2:22pm UTC](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304/3 "2017-08-09T14:22:01Z")

</div>

Hi @Timothy

Which password are you talking about ? I am having the same issue and cant find the reason. Thanks in advance

---

<div class="post-metadata">

**Author:** ![Timothy\_Vigers](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@Timothy\_Vigers](https://forum.ansible.com/u/Timothy_Vigers)\
**Post date:** [August 6, 2018, 1:48pm UTC](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304/4 "2018-08-06T13:48:32Z")

</div>

Hi Vicky,

Sorry I only just saw this…

I can’t really remember but I think it was the database password I had configured.

Regards,

Tim

---

<div class="post-metadata">

**Author:** ![Alexsey\_S](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alexsey\_S](https://forum.ansible.com/u/Alexsey_S)\
**Post date:** [August 6, 2018, 2:10pm UTC](https://forum.ansible.com/t/help-me-to-install-ansible-end-up-with-oops-an-error-occured-while-running-setup/23304/5 "2018-08-06T14:10:26Z")

</div>

build shell scripts to execute playbooks on ansible-b and run them from ansible-a??
