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

ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied')) #3

Open
ppuertocrem opened this issue Nov 20, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@ppuertocrem
Copy link
Member

May be related to issue #1 ...
Doesn't find a way to reproduce or workaround for now.

@ppuertocrem ppuertocrem added the bug Something isn't working label Nov 20, 2018
@ppuertocrem
Copy link
Member Author

PermissionError Traceback (most recent call last)
~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
599 body=body, headers=headers,
--> 600 chunked=chunked)
601

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
353 else:
--> 354 conn.request(method, url, **httplib_request_kw)
355

/usr/lib/python3.6/http/client.py in request(self, method, url, body, headers, encode_chunked)
1238 """Send a complete request to the server."""
-> 1239 self._send_request(method, url, body, headers, encode_chunked)
1240

/usr/lib/python3.6/http/client.py in _send_request(self, method, url, body, headers, encode_chunked)
1284 body = _encode(body, 'body')
-> 1285 self.endheaders(body, encode_chunked=encode_chunked)
1286

/usr/lib/python3.6/http/client.py in endheaders(self, message_body, encode_chunked)
1233 raise CannotSendHeader()
-> 1234 self._send_output(message_body, encode_chunked=encode_chunked)
1235

/usr/lib/python3.6/http/client.py in _send_output(self, message_body, encode_chunked)
1025 del self._buffer[:]
-> 1026 self.send(msg)
1027

/usr/lib/python3.6/http/client.py in send(self, data)
963 if self.auto_open:
--> 964 self.connect()
965 else:

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/docker/transport/unixconn.py in connect(self)
41 sock.settimeout(self.timeout)
---> 42 sock.connect(self.unix_socket)
43 self.sock = sock

PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

ProtocolError Traceback (most recent call last)
~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
637 retries = retries.increment(method, url, error=e, _pool=self,
--> 638 _stacktrace=sys.exc_info()[2])
639 retries.sleep()

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
366 if read is False or not self._is_method_retryable(method):
--> 367 raise six.reraise(type(error), error, _stacktrace)
368 elif read is not None:

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/urllib3/packages/six.py in reraise(tp, value, tb)
684 if value.traceback is not tb:
--> 685 raise value.with_traceback(tb)
686 raise value

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
599 body=body, headers=headers,
--> 600 chunked=chunked)
601

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
353 else:
--> 354 conn.request(method, url, **httplib_request_kw)
355

/usr/lib/python3.6/http/client.py in request(self, method, url, body, headers, encode_chunked)
1238 """Send a complete request to the server."""
-> 1239 self._send_request(method, url, body, headers, encode_chunked)
1240

/usr/lib/python3.6/http/client.py in _send_request(self, method, url, body, headers, encode_chunked)
1284 body = _encode(body, 'body')
-> 1285 self.endheaders(body, encode_chunked=encode_chunked)
1286

/usr/lib/python3.6/http/client.py in endheaders(self, message_body, encode_chunked)
1233 raise CannotSendHeader()
-> 1234 self._send_output(message_body, encode_chunked=encode_chunked)
1235

/usr/lib/python3.6/http/client.py in _send_output(self, message_body, encode_chunked)
1025 del self._buffer[:]
-> 1026 self.send(msg)
1027

/usr/lib/python3.6/http/client.py in send(self, data)
963 if self.auto_open:
--> 964 self.connect()
965 else:

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/docker/transport/unixconn.py in connect(self)
41 sock.settimeout(self.timeout)
---> 42 sock.connect(self.unix_socket)
43 self.sock = sock

ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

ConnectionError Traceback (most recent call last)
in
----> 1 sim.run()

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/zerobnl-0.0.2-py3.6.egg/zerobnl/simulation/deploy.py in run(self)
139 self._create_and_fill_orchestrator_folder()
140 logger.debug("CREATE ORCH")
--> 141 self._launch_redis_and_docker_network()
142 logger.debug("LAUNCH NETWORK+REDIS")
143 nodes_to_run = self.nodes.loc[self.nodes["Local"] == False].index

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/zerobnl-0.0.2-py3.6.egg/zerobnl/simulation/deploy.py in _launch_redis_and_docker_network(self)
87 It also flushes all data if the Redis container is already existing.
88 """
---> 89 if SIM_NET not in [net.name for net in self.docker_client.networks.list()]:
90 self.docker_client.networks.create(SIM_NET, driver="bridge", attachable=True)
91

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/docker/models/networks.py in list(self, *args, **kwargs)
204 """
205 greedy = kwargs.pop('greedy', False)
--> 206 resp = self.client.api.networks(*args, **kwargs)
207 networks = [self.prepare_model(item) for item in resp]
208 if greedy and version_gte(self.client.api._version, '1.28'):

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/docker/api/network.py in networks(self, names, ids, filters)
35 params = {'filters': utils.convert_filters(filters)}
36 url = self._url("/networks")
---> 37 res = self._get(url, params=params)
38 return self._result(res, json=True)
39

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/docker/utils/decorators.py in inner(self, *args, **kwargs)
44 else:
45 kwargs['headers'].update(self._general_configs['HttpHeaders'])
---> 46 return f(self, *args, **kwargs)
47 return inner

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/docker/api/client.py in _get(self, url, **kwargs)
196 @update_headers
197 def _get(self, url, **kwargs):
--> 198 return self.get(url, **self._set_request_timeout(kwargs))
199
200 @update_headers

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/requests/sessions.py in get(self, url, **kwargs)
535
536 kwargs.setdefault('allow_redirects', True)
--> 537 return self.request('GET', url, **kwargs)
538
539 def options(self, url, **kwargs):

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
522 }
523 send_kwargs.update(settings)
--> 524 resp = self.send(prep, **send_kwargs)
525
526 return resp

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
635
636 # Send the request
--> 637 r = adapter.send(request, **kwargs)
638
639 # Total elapsed time of the request (approximately)

~/Projects/zerobnl/examples/zero/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
496
497 except (ProtocolError, socket.error) as err:
--> 498 raise ConnectionError(err, request=request)
499
500 except MaxRetryError as e:

ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant