cloudformation-cli
cloudformation-cli copied to clipboard
cfn build-image and submit image is failing
$ cfn build-image Resource schema is valid. Plugin for the python3.7 runtime does not support building an image (env) [ec2-user@ip-172-31-18-38 unicornExample]$ cfn submit Resource schema is valid. Starting Docker build. This may take several minutes if the image 'lambci/lambda:build-python3.7' needs to be pulled first. === Unhandled exception === Please report this issue to the team. Issue tracker: github.com/aws-cloudformation/cloudformation-cli/issues Please include the log file 'rpdk.log'
[2021-05-30T08:37:08Z] DEBUG - Logging set up successfully
[2021-05-30T08:37:08Z] DEBUG - Running None: Namespace(artifact_type=None, command=<function init at 0x7f5568739280>, force=False, subparser_name=None, type_name=None, verbose=0, version=False)
[2021-05-30T08:37:08Z] DEBUG - Root directory: /home/ec2-user/unicornExample
[2021-05-30T08:37:08Z] WARNING - Initializing new project
[2021-05-30T08:37:08Z] DEBUG - Loading project file '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:37:35Z] DEBUG - Resource type identifier: Brainterry::Unicorn::Maker
[2021-05-30T08:37:37Z] DEBUG - Language plugin: python37
[2021-05-30T08:37:37Z] DEBUG - Init started
[2021-05-30T08:37:37Z] DEBUG - Writing settings
[2021-05-30T08:37:54Z] DEBUG - Making folder '/home/ec2-user/unicornExample/src/brainterry_unicorn_maker'
[2021-05-30T08:37:54Z] DEBUG - Writing '/home/ec2-user/unicornExample/src/brainterry_unicorn_maker/__init__.py'
[2021-05-30T08:37:54Z] DEBUG - Writing '/home/ec2-user/unicornExample/src/brainterry_unicorn_maker/handlers.py'
[2021-05-30T08:37:54Z] DEBUG - Writing '/home/ec2-user/unicornExample/.gitignore'
[2021-05-30T08:37:54Z] DEBUG - Writing '/home/ec2-user/unicornExample/requirements.txt'
[2021-05-30T08:37:54Z] DEBUG - Writing '/home/ec2-user/unicornExample/README.md'
[2021-05-30T08:37:54Z] DEBUG - Writing '/home/ec2-user/unicornExample/template.yml'
[2021-05-30T08:37:54Z] DEBUG - Init complete
[2021-05-30T08:37:54Z] DEBUG - Overwriting '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:37:54Z] DEBUG - Writing Resource Role CloudFormation template: /home/ec2-user/unicornExample/resource-role.yaml
[2021-05-30T08:37:54Z] DEBUG - Overwriting '/home/ec2-user/unicornExample/resource-role.yaml'
[2021-05-30T08:37:54Z] DEBUG - Generate started
[2021-05-30T08:37:54Z] DEBUG - Writing file: /home/ec2-user/unicornExample/src/brainterry_unicorn_maker/models.py
[2021-05-30T08:37:54Z] DEBUG - Overwriting '/home/ec2-user/unicornExample/src/brainterry_unicorn_maker/models.py'
[2021-05-30T08:37:54Z] DEBUG - Generate complete
[2021-05-30T08:37:54Z] DEBUG - Removing generated docs: /home/ec2-user/unicornExample/docs
[2021-05-30T08:37:54Z] DEBUG - Writing generated docs
[2021-05-30T08:37:54Z] DEBUG - Writing docs memo.md: /home/ec2-user/unicornExample/docs/memo.md
[2021-05-30T08:37:54Z] DEBUG - Writing docs tag.md: /home/ec2-user/unicornExample/docs/tag.md
[2021-05-30T08:37:54Z] DEBUG - Finished documenting nested properties
[2021-05-30T08:37:54Z] DEBUG - Writing docs README: /home/ec2-user/unicornExample/docs/README.md
[2021-05-30T08:37:54Z] WARNING - Initialized a new project in /home/ec2-user/unicornExample
[2021-05-30T08:37:54Z] DEBUG - Finished None
[2021-05-30T08:43:47Z] DEBUG - Logging set up successfully
[2021-05-30T08:43:47Z] DEBUG - Running generate: Namespace(command=<function generate at 0x7f8942373790>, subparser_name='generate', verbose=0, version=False)
[2021-05-30T08:43:47Z] DEBUG - Root directory: /home/ec2-user/unicornExample
[2021-05-30T08:43:47Z] DEBUG - Loading project file '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:43:47Z] INFO - Validating your resource specification...
[2021-05-30T08:43:47Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:43:47Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:43:47Z] DEBUG - Edge from '(<BASE>, 'properties', 'DueDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:43:47Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:43:47Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:43:47Z] DEBUG - Edge from '(<BASE>, 'properties', 'ApprovalDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:43:47Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:43:47Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:43:47Z] DEBUG - Edge from '(<BASE>, 'properties', 'Memo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:43:47Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:43:47Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:43:47Z] DEBUG - Edge from '(<BASE>, 'properties', 'SecondCopyOfMemo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:43:47Z] DEBUG - Resolved '#/definitions/Tag' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag'
[2021-05-30T08:43:47Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:43:47Z] DEBUG - Edge from '(<BASE>, 'properties', 'Tags', 'items')' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:43:47Z] DEBUG - Rewriting refs in '<BASE>' (file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json)
[2021-05-30T08:43:47Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:43:47Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:43:47Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:43:47Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:43:47Z] DEBUG - '#/definitions/Tag' -> '#/definitions/Tag'
[2021-05-30T08:43:47Z] WARNING - Resource schema is valid.
[2021-05-30T08:43:47Z] DEBUG - Writing Resource Role CloudFormation template: /home/ec2-user/unicornExample/resource-role.yaml
[2021-05-30T08:43:47Z] DEBUG - Overwriting '/home/ec2-user/unicornExample/resource-role.yaml'
[2021-05-30T08:43:47Z] DEBUG - Generate started
[2021-05-30T08:43:47Z] DEBUG - Writing file: /home/ec2-user/unicornExample/src/brainterry_unicorn_maker/models.py
[2021-05-30T08:43:47Z] DEBUG - Overwriting '/home/ec2-user/unicornExample/src/brainterry_unicorn_maker/models.py'
[2021-05-30T08:43:47Z] DEBUG - Generate complete
[2021-05-30T08:43:47Z] DEBUG - Removing generated docs: /home/ec2-user/unicornExample/docs
[2021-05-30T08:43:47Z] DEBUG - Writing generated docs
[2021-05-30T08:43:47Z] DEBUG - Writing docs memo.md: /home/ec2-user/unicornExample/docs/memo.md
[2021-05-30T08:43:47Z] DEBUG - Writing docs tag.md: /home/ec2-user/unicornExample/docs/tag.md
[2021-05-30T08:43:47Z] DEBUG - Finished documenting nested properties
[2021-05-30T08:43:47Z] DEBUG - Writing docs README: /home/ec2-user/unicornExample/docs/README.md
[2021-05-30T08:43:47Z] WARNING - Generated files for Brainterry::Unicorn::Maker
[2021-05-30T08:43:47Z] DEBUG - Finished generate
[2021-05-30T08:44:23Z] DEBUG - Logging set up successfully
[2021-05-30T08:44:23Z] DEBUG - Running submit: Namespace(command=<function submit at 0x7fcd156c1c10>, dry_run=False, endpoint_url=None, region=None, role_arn=None, set_default=False, subparser_name='submit', use_role=True, verbose=0, version=False)
[2021-05-30T08:44:23Z] DEBUG - Root directory: /home/ec2-user/unicornExample
[2021-05-30T08:44:23Z] DEBUG - Loading project file '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:44:23Z] INFO - Validating your resource specification...
[2021-05-30T08:44:23Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:44:23Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:23Z] DEBUG - Edge from '(<BASE>, 'properties', 'DueDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:23Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:44:23Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:23Z] DEBUG - Edge from '(<BASE>, 'properties', 'ApprovalDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:23Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:44:23Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:23Z] DEBUG - Edge from '(<BASE>, 'properties', 'Memo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:23Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:44:23Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:23Z] DEBUG - Edge from '(<BASE>, 'properties', 'SecondCopyOfMemo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:23Z] DEBUG - Resolved '#/definitions/Tag' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag'
[2021-05-30T08:44:23Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:44:23Z] DEBUG - Edge from '(<BASE>, 'properties', 'Tags', 'items')' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:44:23Z] DEBUG - Rewriting refs in '<BASE>' (file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json)
[2021-05-30T08:44:23Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:44:23Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:44:23Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:44:23Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:44:23Z] DEBUG - '#/definitions/Tag' -> '#/definitions/Tag'
[2021-05-30T08:44:23Z] WARNING - Resource schema is valid.
[2021-05-30T08:44:23Z] DEBUG - inputs not found. Not writing to package.
[2021-05-30T08:44:23Z] DEBUG - Package started
[2021-05-30T08:44:23Z] DEBUG - '/home/ec2-user/unicornExample/build' not found, skipping removal
Traceback (most recent call last):
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 197, in _remove_build_artifacts
shutil.rmtree(deps_path)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/shutil.py", line 709, in rmtree
onerror(os.lstat, path, sys.exc_info())
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/shutil.py", line 707, in rmtree
orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/unicornExample/build'
[2021-05-30T08:44:23Z] DEBUG - Dependencies build started from '/home/ec2-user/unicornExample'
[2021-05-30T08:44:23Z] DEBUG - command is 'pip install --no-cache-dir --no-color --disable-pip-version-check --upgrade --requirement /project/requirements.txt --target /project/build'
[2021-05-30T08:44:23Z] WARNING - Starting Docker build. This may take several minutes if the image 'lambci/lambda:build-python3.7' needs to be pulled first.
[2021-05-30T08:44:23Z] DEBUG - Trying paths: ['/home/ec2-user/.docker/config.json', '/home/ec2-user/.dockercfg']
[2021-05-30T08:44:23Z] DEBUG - No config file found
[2021-05-30T08:44:23Z] DEBUG - Trying paths: ['/home/ec2-user/.docker/config.json', '/home/ec2-user/.dockercfg']
[2021-05-30T08:44:23Z] DEBUG - No config file found
[2021-05-30T08:44:23Z] DEBUG - Unhandled exception
Traceback (most recent call last):
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1007, in _send_output
self.send(msg)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 947, in send
self.connect()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/transport/unixconn.py", line 43, 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 "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/util/retry.py", line 410, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1007, in _send_output
self.send(msg)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 947, in send
self.connect()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/transport/unixconn.py", line 43, 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 "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/adapters.py", line 498, 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 "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/cli.py", line 100, in main
args.command(args)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/submit.py", line 15, in submit
project.submit(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/project.py", line 475, in submit
self._add_resources_content_to_zip(zip_file)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/project.py", line 503, in _add_resources_content_to_zip
self._plugin.package(self, zip_file)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 185, in package
self._build(project.root)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 204, in _build
self._docker_build(base_path)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 237, in _docker_build
docker_client = docker.from_env()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/client.py", line 96, in from_env
return cls(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/client.py", line 45, in __init__
self.api = APIClient(*args, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/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.', FileNotFoundError(2, 'No such file or directory'))
[2021-05-30T08:44:48Z] DEBUG - Logging set up successfully
[2021-05-30T08:44:48Z] DEBUG - Running validate: Namespace(command=<function validate at 0x7fd476cd0dc0>, subparser_name='validate', verbose=0, version=False)
[2021-05-30T08:44:48Z] DEBUG - Root directory: /home/ec2-user/unicornExample
[2021-05-30T08:44:48Z] DEBUG - Loading project file '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:44:48Z] INFO - Validating your resource specification...
[2021-05-30T08:44:48Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:44:48Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:48Z] DEBUG - Edge from '(<BASE>, 'properties', 'DueDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:48Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:44:48Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:48Z] DEBUG - Edge from '(<BASE>, 'properties', 'ApprovalDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:48Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:44:48Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:48Z] DEBUG - Edge from '(<BASE>, 'properties', 'Memo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:48Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:44:48Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:48Z] DEBUG - Edge from '(<BASE>, 'properties', 'SecondCopyOfMemo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:48Z] DEBUG - Resolved '#/definitions/Tag' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag'
[2021-05-30T08:44:48Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:44:48Z] DEBUG - Edge from '(<BASE>, 'properties', 'Tags', 'items')' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:44:48Z] DEBUG - Rewriting refs in '<BASE>' (file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json)
[2021-05-30T08:44:48Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:44:48Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:44:48Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:44:48Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:44:48Z] DEBUG - '#/definitions/Tag' -> '#/definitions/Tag'
[2021-05-30T08:44:48Z] WARNING - Resource schema is valid.
[2021-05-30T08:44:48Z] DEBUG - Finished validate
[2021-05-30T08:44:58Z] DEBUG - Logging set up successfully
[2021-05-30T08:44:58Z] DEBUG - Running build-image: Namespace(command=<function build_image at 0x7ff0f1d40c10>, executable=None, image_name=None, subparser_name='build-image', verbose=0, version=False)
[2021-05-30T08:44:58Z] DEBUG - Root directory: /home/ec2-user/unicornExample
[2021-05-30T08:44:58Z] DEBUG - Loading project file '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:44:58Z] INFO - Validating your resource specification...
[2021-05-30T08:44:58Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:44:58Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:58Z] DEBUG - Edge from '(<BASE>, 'properties', 'DueDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:58Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:44:58Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:58Z] DEBUG - Edge from '(<BASE>, 'properties', 'ApprovalDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:44:58Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:44:58Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:58Z] DEBUG - Edge from '(<BASE>, 'properties', 'Memo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:58Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:44:58Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:58Z] DEBUG - Edge from '(<BASE>, 'properties', 'SecondCopyOfMemo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:44:58Z] DEBUG - Resolved '#/definitions/Tag' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag'
[2021-05-30T08:44:58Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:44:58Z] DEBUG - Edge from '(<BASE>, 'properties', 'Tags', 'items')' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:44:58Z] DEBUG - Rewriting refs in '<BASE>' (file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json)
[2021-05-30T08:44:58Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:44:58Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:44:58Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:44:58Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:44:58Z] DEBUG - '#/definitions/Tag' -> '#/definitions/Tag'
[2021-05-30T08:44:58Z] WARNING - Resource schema is valid.
[2021-05-30T08:44:58Z] DEBUG - Caught exit recommendation
Traceback (most recent call last):
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/cli.py", line 100, in main
args.command(args)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/build_image.py", line 20, in build_image
config = project.generate_image_build_config()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/project.py", line 570, in generate_image_build_config
raise InvalidProjectError(
rpdk.core.exceptions.InvalidProjectError: Plugin for the python3.7 runtime does not support building an image
[2021-05-30T08:44:58Z] CRITICAL - Plugin for the python3.7 runtime does not support building an image
[2021-05-30T08:47:12Z] DEBUG - Logging set up successfully
[2021-05-30T08:47:12Z] DEBUG - Running build-image: Namespace(command=<function build_image at 0x7fd85dd34c10>, executable=None, image_name=None, subparser_name='build-image', verbose=0, version=False)
[2021-05-30T08:47:12Z] DEBUG - Root directory: /home/ec2-user/unicornExample
[2021-05-30T08:47:12Z] DEBUG - Loading project file '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:47:12Z] INFO - Validating your resource specification...
[2021-05-30T08:47:12Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:47:12Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:12Z] DEBUG - Edge from '(<BASE>, 'properties', 'DueDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:12Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:47:12Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:12Z] DEBUG - Edge from '(<BASE>, 'properties', 'ApprovalDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:12Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:47:12Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:12Z] DEBUG - Edge from '(<BASE>, 'properties', 'Memo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:12Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:47:12Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:12Z] DEBUG - Edge from '(<BASE>, 'properties', 'SecondCopyOfMemo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:12Z] DEBUG - Resolved '#/definitions/Tag' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag'
[2021-05-30T08:47:12Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:47:12Z] DEBUG - Edge from '(<BASE>, 'properties', 'Tags', 'items')' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:47:12Z] DEBUG - Rewriting refs in '<BASE>' (file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json)
[2021-05-30T08:47:12Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:47:12Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:47:12Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:47:12Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:47:12Z] DEBUG - '#/definitions/Tag' -> '#/definitions/Tag'
[2021-05-30T08:47:12Z] WARNING - Resource schema is valid.
[2021-05-30T08:47:12Z] DEBUG - Caught exit recommendation
Traceback (most recent call last):
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/cli.py", line 100, in main
args.command(args)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/build_image.py", line 20, in build_image
config = project.generate_image_build_config()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/project.py", line 570, in generate_image_build_config
raise InvalidProjectError(
rpdk.core.exceptions.InvalidProjectError: Plugin for the python3.7 runtime does not support building an image
[2021-05-30T08:47:12Z] CRITICAL - Plugin for the python3.7 runtime does not support building an image
[2021-05-30T08:47:25Z] DEBUG - Logging set up successfully
[2021-05-30T08:47:25Z] DEBUG - Running submit: Namespace(command=<function submit at 0x7fd18fcc7c10>, dry_run=False, endpoint_url=None, region=None, role_arn=None, set_default=False, subparser_name='submit', use_role=True, verbose=0, version=False)
[2021-05-30T08:47:25Z] DEBUG - Root directory: /home/ec2-user/unicornExample
[2021-05-30T08:47:25Z] DEBUG - Loading project file '/home/ec2-user/unicornExample/.rpdk-config'
[2021-05-30T08:47:25Z] INFO - Validating your resource specification...
[2021-05-30T08:47:25Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:47:25Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:25Z] DEBUG - Edge from '(<BASE>, 'properties', 'DueDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:25Z] DEBUG - Resolved '#/definitions/InitechDateFormat' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat'
[2021-05-30T08:47:25Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/InitechDateFormat' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:25Z] DEBUG - Edge from '(<BASE>, 'properties', 'ApprovalDate')' to '(<BASE>, 'definitions', 'InitechDateFormat')'
[2021-05-30T08:47:25Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:47:25Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:25Z] DEBUG - Edge from '(<BASE>, 'properties', 'Memo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:25Z] DEBUG - Resolved '#/definitions/Memo' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo'
[2021-05-30T08:47:25Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Memo' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:25Z] DEBUG - Edge from '(<BASE>, 'properties', 'SecondCopyOfMemo')' to '(<BASE>, 'definitions', 'Memo')'
[2021-05-30T08:47:25Z] DEBUG - Resolved '#/definitions/Tag' to 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag'
[2021-05-30T08:47:25Z] DEBUG - Parsed 'file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json#/definitions/Tag' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:47:25Z] DEBUG - Edge from '(<BASE>, 'properties', 'Tags', 'items')' to '(<BASE>, 'definitions', 'Tag')'
[2021-05-30T08:47:25Z] DEBUG - Rewriting refs in '<BASE>' (file:///home/ec2-user/unicornExample/brainterry-unicorn-maker.json)
[2021-05-30T08:47:25Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:47:25Z] DEBUG - '#/definitions/InitechDateFormat' -> '#/definitions/InitechDateFormat'
[2021-05-30T08:47:25Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:47:25Z] DEBUG - '#/definitions/Memo' -> '#/definitions/Memo'
[2021-05-30T08:47:25Z] DEBUG - '#/definitions/Tag' -> '#/definitions/Tag'
[2021-05-30T08:47:25Z] WARNING - Resource schema is valid.
[2021-05-30T08:47:25Z] DEBUG - inputs not found. Not writing to package.
[2021-05-30T08:47:25Z] DEBUG - Package started
[2021-05-30T08:47:25Z] DEBUG - '/home/ec2-user/unicornExample/build' not found, skipping removal
Traceback (most recent call last):
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 197, in _remove_build_artifacts
shutil.rmtree(deps_path)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/shutil.py", line 709, in rmtree
onerror(os.lstat, path, sys.exc_info())
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/shutil.py", line 707, in rmtree
orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/unicornExample/build'
[2021-05-30T08:47:25Z] DEBUG - Dependencies build started from '/home/ec2-user/unicornExample'
[2021-05-30T08:47:25Z] DEBUG - command is 'pip install --no-cache-dir --no-color --disable-pip-version-check --upgrade --requirement /project/requirements.txt --target /project/build'
[2021-05-30T08:47:25Z] WARNING - Starting Docker build. This may take several minutes if the image 'lambci/lambda:build-python3.7' needs to be pulled first.
[2021-05-30T08:47:25Z] DEBUG - Trying paths: ['/home/ec2-user/.docker/config.json', '/home/ec2-user/.dockercfg']
[2021-05-30T08:47:25Z] DEBUG - No config file found
[2021-05-30T08:47:26Z] DEBUG - Trying paths: ['/home/ec2-user/.docker/config.json', '/home/ec2-user/.dockercfg']
[2021-05-30T08:47:26Z] DEBUG - No config file found
[2021-05-30T08:47:26Z] DEBUG - Unhandled exception
Traceback (most recent call last):
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1007, in _send_output
self.send(msg)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 947, in send
self.connect()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/transport/unixconn.py", line 43, 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 "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/util/retry.py", line 410, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 1007, in _send_output
self.send(msg)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/http/client.py", line 947, in send
self.connect()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/transport/unixconn.py", line 43, 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 "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/requests/adapters.py", line 498, 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 "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/cli.py", line 100, in main
args.command(args)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/submit.py", line 15, in submit
project.submit(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/project.py", line 475, in submit
self._add_resources_content_to_zip(zip_file)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/core/project.py", line 503, in _add_resources_content_to_zip
self._plugin.package(self, zip_file)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 185, in package
self._build(project.root)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 204, in _build
self._docker_build(base_path)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/rpdk/python/codegen.py", line 237, in _docker_build
docker_client = docker.from_env()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/client.py", line 96, in from_env
return cls(
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/client.py", line 45, in __init__
self.api = APIClient(*args, **kwargs)
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/site-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
File "/home/ec2-user/.linuxbrew/opt/[email protected]/lib/python3.8/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.', FileNotFoundError(2, 'No such file or directory'))
@RaviRk0522 I ran into this same issue. For me the root cause was that I don't have Docker Desktop installed on my Mac. I instead use minikube, but the cfn submit
command specifically looks for Docker. I haven't found a workaround other than running the command in an environment where Docker is present. Were you able to troubleshoot this error?