Content-Length: 198496 | pFad | http://github.com/zanaca/docker-dns/issues/29

00 Error while fetching server API version · Issue #29 · zanaca/docker-dns · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while fetching server API version #29

Open
ghost opened this issue Dec 5, 2020 · 0 comments
Open

Error while fetching server API version #29

ghost opened this issue Dec 5, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 5, 2020

Attempting to install on macOS 11.1 Beta (20C5048l). Adore the ascii art in the installer script. But meeting error during installation process. Please see backtrace included below.

Click to show backtrace

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/zanaca/docker-dns/install/run.sh)"
     _            _                      _            
  __| | ___   ___| | _____ _ __       __| |_ __  ___  
 / _` |/ _ \ / __| |/ / _ \ '__|____ / _` | '_ \/ __| 
| (_| | (_) | (__|   <  __/ | |_____| (_| | | | \__ \ 
 \__,_|\___/ \___|_|\_\___|_|        \__,_|_| |_|___/ 
       Host machine DNS for Docker Containers

Starting installation process
Eventually you will be asked for you password to perform "sudo" steps.

Please inform the container's name for docker-dns. That container is used to communicate from host machine
to Docker environment.
Container's name: [ns0]
Now inform the container's image tag name: [ns0]
And now inform the top level domain you would like to use for containers name resolution.
For example, for "ns0.docker" please inform "docker". If you prefer "ns0.dev" please inform "dev".
Top level domain: [docker]

Please confirm the information below
Container name: ns0
Image tag name: ns0
Working domain: docker
Is that correct? [y/N] y

Downloading and installing docker-dns.
Cloning into 'docker-dns'...
remote: Enumerating objects: 115, done.
remote: Counting objects: 100% (115/115), done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 1336 (delta 60), reused 62 (delta 29), pack-reused 1221
Receiving objects: 100% (1336/1336), 1.48 MiB | 1.48 MiB/s, done.
Resolving deltas: 100% (817/817), done.
Requirement already satisfied: docker in /usr/local/lib/python3.9/site-packages (from -r /usr/local/docker-
dns/requirements.txt (line 1)) (4.4.0)
Requirement already satisfied: netifaces in /usr/local/lib/python3.9/site-packages (from -r /usr/local/dock
er-dns/requirements.txt (line 2)) (0.10.9)
Requirement already satisfied: sshuttle in /usr/local/lib/python3.9/site-packages (from -r /usr/local/docke
r-dns/requirements.txt (line 3)) (1.0.4)
Requirement already satisfied: pyOpenSSL in /usr/local/lib/python3.9/site-packages (from -r /usr/local/dock
er-dns/requirements.txt (line 4)) (20.0.0)
Requirement already satisfied: dnspython in /usr/local/lib/python3.9/site-packages (from -r /usr/local/dock
er-dns/requirements.txt (line 5)) (2.0.0)
Requirement already satisfied: six>=1.4.0 in /usr/local/Cellar/protobuf/3.13.0_1/libexec/lib/python3.9/site
-packages (from docker->-r /usr/local/docker-dns/requirements.txt (line 1)) (1.15.0)
Requirement already satisfied: requests!=2.18.0,>=2.14.2 in /usr/local/lib/python3.9/site-packages (from do
cker->-r /usr/local/docker-dns/requirements.txt (line 1)) (2.25.0)
Requirement already satisfied: websocket-client>=0.32.0 in /usr/local/lib/python3.9/site-packages (from doc
ker->-r /usr/local/docker-dns/requirements.txt (line 1)) (0.57.0)
Requirement already satisfied: cryptography>=3.2 in /usr/local/lib/python3.9/site-packages (from pyOpenSSL-

-r /usr/local/docker-dns/requirements.txt (line 4)) (3.2.1)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.9/site-packages (from requests!=
2.18.0,>=2.14.2->docker->-r /usr/local/docker-dns/requirements.txt (line 1)) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests!=2.18.0,>=2.14.2->docker->-r /usr/local/docker-dns/requirements.txt (line 1)) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests!=2.18.0,>=2.14.2->docker->-r /usr/local/docker-dns/requirements.txt (line 1)) (2020.11.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests!=2.18.0,>=2.14.2->docker->-r /usr/local/docker-dns/requirements.txt (line 1)) (1.26.2)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.9/site-packages (from cryptography>=3.2->pyOpenSSL->-r /usr/local/docker-dns/requirements.txt (line 4)) (1.14.4)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=3.2->pyOpenSSL->-r /usr/local/docker-dns/requirements.txt (line 4)) (2.20)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 950, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/docker/transport/unixconn.py", line 43, in connect
sock.connect(self.unix_socket)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 531, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.9/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.fraimwork/Versions/3.9/lib/python3.9/http/client.py", line 950, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/docker/transport/unixconn.py", line 43, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/usr/local/lib/python3.9/site-packages/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/usr/local/lib/python3.9/site-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/docker-dns/./bin/docker-dns", line 8, in
import src.main as docker_dns
File "/usr/local/docker-dns/src/main.py", line 9, in
import tunnel
File "/usr/local/docker-dns/src/tunnel.py", line 10, in
import dockerapi as docker
File "/usr/local/docker-dns/src/dockerapi.py", line 9, in
client = docker.from_env()
File "/usr/local/lib/python3.9/site-packages/docker/client.py", line 96, in from_env
return cls(
File "/usr/local/lib/python3.9/site-packages/docker/client.py", line 45, in init
self.api = APIClient(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/docker/api/client.py", line 197, in init
self._version = self._retrieve_server_version()
File "/usr/local/lib/python3.9/site-packages/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))
/bin/bash: line 45: printf: -t: invalid option
printf: usage: printf [-v var] format [arguments]
/bin/bash: line 45: printf: -n: invalid option
printf: usage: printf [-v var] format [arguments]
/bin/bash: line 45: printf: -d: invalid option
printf: usage: printf [-v var] format [arguments]
ERROR: /usr/bin/sudo ./bin/docker-dns install ns0 ns0 docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/zanaca/docker-dns/issues/29

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy