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

1,067 views
Skip to first unread message

Ben .T.George

unread,
Dec 22, 2016, 12:26:25 PM12/22/16
to Ansible Project
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 <module>\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 <module>\n  File \"/lib/python2.7/site-packages/awx/main/signals.py\", line 23, in <module>\n  File \"/lib/python2.7/site-packages/awx/main/tasks.py\", line 50, in <module>\n  File \"/lib/python2.7/site-packages/awx/main/queue.py\", line 26, in <module>\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

Timothy Vigers

unread,
Feb 20, 2017, 11:48:15 AM2/20/17
to Ansible Project
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

Vicky Korpal

unread,
Aug 9, 2017, 10:22:01 AM8/9/17
to Ansible Project
Hi @Timothy

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

Timothy Vigers

unread,
Aug 6, 2018, 9:48:32 AM8/6/18
to Ansible Project
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

Alexsey S

unread,
Aug 6, 2018, 10:10:47 AM8/6/18
to ansible...@googlegroups.com
 build shell scripts to execute playbooks on ansible-b and run them from ansible-a??

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f65fce82-70ff-483e-b1f1-d674432b547e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thank you, 
Alexsey Sapozhnikov
Reply all
Reply to author
Forward
0 new messages