You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We have an issue running the cfn-cli in our CI/CD system (based on Jenkins) to build and deploy a new version of our resources.
The issue is happening while updating an existing resource. Still, I don't think this makes any difference because the issue is related to the logs of the first container used to install the dependencies to build the resource.
Below, I'm attaching all the information I have to help debug the issue in different files.
Build running. Output:
Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/rpdk/core/cli.py", line 105, in main
args.command(args)
File "/usr/local/lib/python3.7/site-packages/rpdk/core/submit.py", line 26, in submit
args.profile,
File "/usr/local/lib/python3.7/site-packages/rpdk/core/project.py", line 652, in submit
self._add_resources_content_to_zip(zip_file)
File "/usr/local/lib/python3.7/site-packages/rpdk/core/project.py", line 686, in _add_resources_content_to_zip
self._plugin.package(self, zip_file)
File "/usr/local/lib/python3.7/site-packages/rpdk/python/codegen.py", line 291, in package
self._build(project.root)
File "/usr/local/lib/python3.7/site-packages/rpdk/python/codegen.py", line 308, in _build
self._docker_build(base_path)
File "/usr/local/lib/python3.7/site-packages/rpdk/python/codegen.py", line 392, in _docker_build
for line in logs:
TypeError: 'NoneType' object is not iterable
=== 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'
I tried to understand what was happening, and I saw that the submit command started and the first container to install the dependencies ran successfully. I collected the following logs from that container:
The container exists with code 0, but the pipeline doesn't show the container logs because it fails running at line being the variable logs equal to None. Because of that, the whole procedure fails with the output above.
Right before the docker daemon removed the container, I was able to inspect the container two times (the first time while it was running, the second one when the container stopped)
Hi,
We have an issue running the
cfn-cli
in our CI/CD system (based on Jenkins) to build and deploy a new version of our resources.The issue is happening while updating an existing resource. Still, I don't think this makes any difference because the issue is related to the logs of the first container used to install the dependencies to build the resource.
Below, I'm attaching all the information I have to help debug the issue in different files.
Instance setup:
instance-setup.txt
The command we run:
The error:
The full output
rpdk.log
I tried to understand what was happening, and I saw that the
submit
command started and the first container to install the dependencies ran successfully. I collected the following logs from that container:The container exists with code
0
, but the pipeline doesn't show the container logs because it fails running at line being the variablelogs
equal toNone
. Because of that, the whole procedure fails with the output above.Right before the docker daemon removed the container, I was able to inspect the container two times (the first time while it was running, the second one when the container stopped)
Container running:
container-running.txt
Container removing:
container-removing.txt
The resource definition:
resource.json
Thank you for the help
The text was updated successfully, but these errors were encountered: