Ansible Container, version 0.9.2
Darwin, MacBook-Pro.localdomain, 17.3.0, Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64, x86_64
3.6.4 (default, Dec 25 2017, 14:57:56)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] /Users/chilber/ansible-play/ansible-container/bin/python3.6
ERROR Unknown exception Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
Traceback (most recent call last):
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/transport/unixconn.py", line 46, in connect
sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/Cellar/python3/3.6.4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/transport/unixconn.py", line 46, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/api/client.py", line 168, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/api/daemon.py", line 177, in version
return self._result(self._get(url), json=True)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/api/client.py", line 191, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/requests/sessions.py", line 521, in get
return self.request('GET', url, **kwargs)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/requests/adapters.py", line 490, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/container/cli.py", line 299, in __call__
getattr(core, u'hostcmd_{}'.format(args.subcommand))(**vars(args))
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/container/__init__.py", line 28, in __wrapped__
return fn(*args, **kwargs)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/container/core.py", line 465, in hostcmd_version
engine_obj.print_version_info()
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/container/__init__.py", line 28, in __wrapped__
return fn(*args, **kwargs)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/container/docker/engine.py", line 255, in print_version_info
print(json.dumps(self.client.info(), indent=2))
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/container/docker/engine.py", line 164, in client
self._client = docker.from_env(version='auto', timeout=timeout)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/client.py", line 81, in from_env
**kwargs_from_env(**kwargs))
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/client.py", line 38, in __init__
self.api = APIClient(*args, **kwargs)
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/api/client.py", line 149, in __init__
self._version = self._retrieve_server_version()
File "/Users/chilber/ansible-play/ansible-container/lib/python3.6/site-packages/docker/api/client.py", line 176, in _retrieve_server_version
'Error while fetching server API version: {0}'.format(e)
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
SUMMARY
I tried the getting started guide without chnging anything. Seems like the installation of ansible-container is broken, as the error messages are the same when executing 'ansible-container --debug version'
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
I tried the getting started guide without chnging anything. Seems like the installation of ansible-container is broken, as the error messages are the same when executing 'ansible-container --debug version'
STEPS TO REPRODUCE
'ansible-container --debug version'
EXPECTED RESULTS
ACTUAL RESULTS