# Install AWX fails with Error while fetching server API version

**URL:** <https://forum.ansible.com/t/install-awx-fails-with-error-while-fetching-server-api-version/28732>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 5, 2018, 1:10pm UTC](https://forum.ansible.com/t/install-awx-fails-with-error-while-fetching-server-api-version/28732 "2018-10-05T13:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darkhan](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@Darkhan](https://forum.ansible.com/u/Darkhan)\
**Post date:** [October 5, 2018, 1:10pm UTC](https://forum.ansible.com/t/install-awx-fails-with-error-while-fetching-server-api-version/28732/1 "2018-10-05T13:10:32Z")

</div>

I am trying to install AWX from my local to a remote server using the paybook AWX provided. I removed the dockerhub variables to create the images at runtime since the remote server does not have internet connection. Docker is installed and running, docker-py is also installed. I can do import docker; print(docker.version) from python so docker-py obviously is working.

Now when i run the install.yml playbook it fails at this step: [image\_build : Build sdist builder image]

The error is:

```auto
The full traceback is:
  File "/tmp/ansible_KNeNaW/ansible_modlib.zip/ansible/module_utils/docker_common.py", line 203, in __init__
    super(AnsibleDockerClient, self). __init__ (**self._connect_params)
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 99, in __init__
    self._version = self._retrieve_server_version()
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 124, in _retrieve_server_version
    'Error while fetching server API version: {0}'.format(e)

fatal: [hostname_removed -> localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "api_version": "auto",
            "archive_path": null,
            "buildargs": {
                "http_proxy": "",
                "https_proxy": "",
                "no_proxy": ""
            },
            "cacert_path": null,
            "cert_path": null,
            "container_limits": null,
            "debug": false,
            "docker_host": "unix://var/run/docker.sock",
            "dockerfile": "Dockerfile.sdist",
            "force": true,
            "http_timeout": null,
            "key_path": null,
            "load_path": null,
            "name": "awx_sdist_builder",
            "nocache": false,
            "path": "GIT/awx/installer/roles/image_build/files",
            "pull": true,
            "push": false,
            "repository": null,
            "rm": true,
            "ssl_version": null,
            "state": "present",
            "tag": "2.0.0",
            "timeout": 60,
            "tls": false,
            "tls_hostname": "localhost",
            "tls_verify": false,
            "use_tls": "no"
        }
    },
    "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))"
}

```

`

`
