Ansible Tower Installation Error

Hi, I’m start using Ansible for learning purpose. I got error again and again when I try to install Ansible Tower in my Cent OS 7. I’m using Ansible Tower Bundel for installation and get it from here : https://releases.ansible.com/ansible-tower/setup-bundle/

Error are as below :

TASK [awx_install : Migrate the Tower database schema (may take awhile when upgrading).] *******************************************************************************
[0;31mfatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“awx-manage”, “migrate”, “–noinput”, “–fake-initial”], “delta”: “0:00:01.466058”, “end”: “2018-04-20 12:16:57.314897”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-04-20 12:16:55.848839”, “stderr”: “Traceback (most recent call last):\n File "/bin/awx-manage", line 9, in \n load_entry_point(‘awx==3.2.3’, ‘console_scripts’, ‘awx-manage’)()\n File "/lib/python2.7/site-packages/awx/init.py", line 91, in manage\n File "/lib/python2.7/site-packages/awx/init.py", line 46, in prepare_env\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/init.py", line 48, in getattr\n self._setup(name)\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/init.py", line 44, in _setup\n self._wrapped = Settings(settings_module)\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/init.py", line 92, in init\n mod = importlib.import_module(self.SETTINGS_MODULE)\n File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module\n import(name)\n File "/lib/python2.7/site-packages/awx/settings/production.py", line 16, in \n File "/lib/python2.7/site-packages/awx/settings/defaults.py", line 8, in \n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/djcelery/init.py", line 34, in \n from celery import current_app as celery # noqa\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/five.py", line 307, in getattr\n module = import(self._object_origins[name], None, None, [name])\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/_state.py", line 20, in \n from celery.utils.threads import LocalStack\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/utils/init.py", line 25, in \n from kombu.entity import Exchange, Queue\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/entity.py", line 13, in \n from .serialization import prepare_accept_content\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/serialization.py", line 454, in \n for ep, args in entrypoints(‘kombu.serializers’): # pragma: no cover\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/utils/init.py", line 413, in \n return ((ep, ep.load()) for ep in iter_entry_points(namespace))\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 726, in iter_entry_points\n entries = dist.get_entry_map(group)\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2657, in get_entry_map\n self._get_metadata(‘entry_points.txt’), self\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2387, in parse_map\n for group, lines in data:\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2985, in split_sections\n for line in yield_lines(s):\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2247, in yield_lines\n for ss in strs:\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2583, in _get_metadata\n for line in self.get_metadata_lines(name):\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 1473, in get_metadata_lines\n return yield_lines(self.get_metadata(name))\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 1469, in get_metadata\n value = self._get(self._fn(self.egg_info, name))\n File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 1578, in _get\n with open(path, ‘rb’) as stream:\nIOError: [Errno 13] Permission denied: ‘/usr/lib/python2.7/site-packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_points.txt’”, “stderr_lines”: [“Traceback (most recent call last):”, " File "/bin/awx-manage", line 9, in “, " load_entry_point(‘awx==3.2.3’, ‘console_scripts’, ‘awx-manage’)()”, " File "/lib/python2.7/site-packages/awx/init.py", line 91, in manage", " File "/lib/python2.7/site-packages/awx/init.py", line 46, in prepare_env", " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/init.py", line 48, in getattr", " self._setup(name)“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/init.py", line 44, in _setup”, " self._wrapped = Settings(settings_module)“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/init.py", line 92, in init”, " mod = importlib.import_module(self.SETTINGS_MODULE)“, " File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module”, " import(name)“, " File "/lib/python2.7/site-packages/awx/settings/production.py", line 16, in ”, " File "/lib/python2.7/site-packages/awx/settings/defaults.py", line 8, in “, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/djcelery/init.py", line 34, in ”, " from celery import current_app as celery # noqa", " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/five.py", line 307, in getattr", " module = import(self._object_origins[name], None, None, [name])“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/_state.py", line 20, in ”, " from celery.utils.threads import LocalStack", " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/utils/init.py", line 25, in “, " from kombu.entity import Exchange, Queue”, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/entity.py", line 13, in “, " from .serialization import prepare_accept_content”, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/serialization.py", line 454, in “, " for ep, args in entrypoints(‘kombu.serializers’): # pragma: no cover”, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/utils/init.py", line 413, in “, " return ((ep, ep.load()) for ep in iter_entry_points(namespace))”, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 726, in iter_entry_points", " entries = dist.get_entry_map(group)“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2657, in get_entry_map”, " self._get_metadata(‘entry_points.txt’), self", " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2387, in parse_map", " for group, lines in data:“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2985, in split_sections”, " for line in yield_lines(s):“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2247, in yield_lines”, " for ss in strs:“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 2583, in _get_metadata”, " for line in self.get_metadata_lines(name):“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 1473, in get_metadata_lines”, " return yield_lines(self.get_metadata(name))“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 1469, in get_metadata”, " value = self._get(self._fn(self.egg_info, name))“, " File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py", line 1578, in _get”, " with open(path, ‘rb’) as stream:", “IOError: [Errno 13] Permission denied: ‘/usr/lib/python2.7/site-packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_points.txt’”], “stdout”: “”, “stdout_lines”: }[0m
to retry, use: --limit @/opt/ansible-tower-setup-bundle-3.2.3-1.el7/install.retry

PLAY RECAP *************************************************************************************************************************************************************

localhost : ok=89 changed=7 unreachable=0 failed=1

IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_points.txt

can you try to see the permission on the folder ?

Yeah, problem is permission. I was thought it would unnecessary while I’m running with root. Thanks