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

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 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

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

Hi @Timothy

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

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

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