ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied')) when running Test.ipynb
The first cell in Test.ipynb raises two exceptions.
atmos = pyatmos.Simulation(DEBUG=True)
Returns:
ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
and
ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
(Full traceback pasted below)
This is running on my Google Cloud instance 'julia-and-metquest-test-1' (Ubuntu 18.04 LTS and Anaconda3 4.0.0).
Could it have anything to do with the following warning I got during the 'pip install .' process?
Successfully built pyatmos twisted 17.5.0 has requirement Automat>=0.3.0, but you'll have automat 0.0.0 which is incompatible. Installing collected packages: pyatmos Successfully installed pyatmos-0.1.1
Didn't think anything of it at the time of installation, since it reports 'Successfully installed'...
Full traceback:
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
/home/aaron_bell320/anaconda3/lib/python3.5/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
/home/aaron_bell320/anaconda3/lib/python3.5/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
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in request(self, method, url, body, headers)
1106 """Send a complete request to the server."""
-> 1107 self._send_request(method, url, body, headers)
1108
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in _send_request(self, method, url, body, headers)
1151 body = _encode(body, 'body')
-> 1152 self.endheaders(body)
1153
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in endheaders(self, message_body)
1102 raise CannotSendHeader()
-> 1103 self._send_output(message_body)
1104
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in _send_output(self, message_body)
933
--> 934 self.send(msg)
935 if message_body is not None:
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in send(self, data)
876 if self.auto_open:
--> 877 self.connect()
878 else:
/home/aaron_bell320/anaconda3/lib/python3.5/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)
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
444 retries=self.max_retries,
--> 445 timeout=timeout
446 )
/home/aaron_bell320/anaconda3/lib/python3.5/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()
/home/aaron_bell320/anaconda3/lib/python3.5/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:
/home/aaron_bell320/anaconda3/lib/python3.5/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
/home/aaron_bell320/anaconda3/lib/python3.5/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
/home/aaron_bell320/anaconda3/lib/python3.5/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
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in request(self, method, url, body, headers)
1106 """Send a complete request to the server."""
-> 1107 self._send_request(method, url, body, headers)
1108
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in _send_request(self, method, url, body, headers)
1151 body = _encode(body, 'body')
-> 1152 self.endheaders(body)
1153
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in endheaders(self, message_body)
1102 raise CannotSendHeader()
-> 1103 self._send_output(message_body)
1104
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in _send_output(self, message_body)
933
--> 934 self.send(msg)
935 if message_body is not None:
/home/aaron_bell320/anaconda3/lib/python3.5/http/client.py in send(self, data)
876 if self.auto_open:
--> 877 self.connect()
878 else:
/home/aaron_bell320/anaconda3/lib/python3.5/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)
<ipython-input-5-d1fcc277190c> in <module>()
----> 1 atmos = pyatmos.Simulation(DEBUG=True)
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/pyatmos/simulation.py in __init__(self, docker_image, DEBUG)
26 self._docker_client = docker.from_env()
27 print('Pulling latest image... {}'.format(self._docker_image))
---> 28 self._docker_client.images.pull(self._docker_image)
29 self._container = None
30 self._debug = DEBUG
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/docker/models/images.py in pull(self, repository, tag, **kwargs)
410 repository, tag = parse_repository_tag(repository)
411
--> 412 self.client.api.pull(repository, tag=tag, **kwargs)
413 if tag:
414 return self.get('{0}{2}{1}'.format(
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/docker/api/image.py in pull(self, repository, tag, stream, auth_config, decode, platform)
394 response = self._post(
395 self._url('/images/create'), params=params, headers=headers,
--> 396 stream=stream, timeout=None
397 )
398
/home/aaron_bell320/anaconda3/lib/python3.5/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
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/docker/api/client.py in _post(self, url, **kwargs)
192 @update_headers
193 def _post(self, url, **kwargs):
--> 194 return self.post(url, **self._set_request_timeout(kwargs))
195
196 @update_headers
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/requests/sessions.py in post(self, url, data, json, **kwargs)
557 """
558
--> 559 return self.request('POST', url, data=data, json=json, **kwargs)
560
561 def put(self, url, data=None, **kwargs):
/home/aaron_bell320/anaconda3/lib/python3.5/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)
510 }
511 send_kwargs.update(settings)
--> 512 resp = self.send(prep, **send_kwargs)
513
514 return resp
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/requests/sessions.py in send(self, request, **kwargs)
620
621 # Send the request
--> 622 r = adapter.send(request, **kwargs)
623
624 # Total elapsed time of the request (approximately)
/home/aaron_bell320/anaconda3/lib/python3.5/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
493
494 except (ProtocolError, socket.error) as err:
--> 495 raise ConnectionError(err, request=request)
496
497 except MaxRetryError as e:
ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))