ybalt/ansible-tower

Internal server error

Opened this issue · 0 comments

I get an internal server error when running the container.

I tried running the container using docker run -d -p 443:443 --name tower ybalt/ansible-tower. After a docker pull.

I also tried building the image locally and running the container. Same issue. (No errors on build)

On the local build, if I hop into the container shell and re-run setup.sh manually, things go well.
On the image I download via docker pull attempting to manually run setup.sh results in a failed task:

task path: /opt/ansible-tower-setup-3.2.1/roles/packages_ubuntu/tasks/install_tower.yml:38
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~ && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758 `" && echo ansible-tmp-1531849037.94-158289672415758="` echo /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758 `" ) && sleep 0'
<localhost> PUT /tmp/tmpIisCKR TO /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/apt.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/ /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/apt.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/apt.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1531849037.94-158289672415758/" > /dev/null 2>&1 && sleep 0'
The full traceback is:
  File "/tmp/ansible_KhUWWP/ansible_module_apt.py", line 960, in main
    cache.update()
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 440, in update
    raise FetchFailedException(e)

fatal: [localhost]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false, 
            "autoclean": false, 
            "autoremove": false, 
            "cache_valid_time": 0, 
            "deb": null, 
            "default_release": null, 
            "dpkg_options": "force-confdef,force-confold", 
            "force": false, 
            "force_apt_get": false, 
            "install_recommends": null, 
            "name": "ansible-tower=3.2.1-*", 
            "only_upgrade": false, 
            "package": [
                "ansible-tower=3.2.1-*"
            ], 
            "purge": false, 
            "state": "present", 
            "update_cache": true, 
            "upgrade": null
        }
    }, 
    "msg": "Failed to update apt cache."
}