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
Hello everyone! I'm currently running through Module 2 of the AWS Modern Application Workshop, and having the Dockerfile, buildspec.yml, code-build-project.json, code-pipeline.json files updated and the container image built and pushed to the Amazon ECR repository within my local environment, things went smoothly at first, so I presumed this would be the case upon having AWS CodeBuild building the image successfully. However, upon running the CI/CD pipeline via AWS CodePipeline, I encountered a failure with the Codebuild task, wherein it provided a log showing the following:
I have a suspicion that either the docker or aws version might be contributing to why the "missing signature key" error is showing up in the CodeBuild attempt, but thus far, I cannot say with 100% certainty whether that is the case? Has anyone encountered this issue before, and if not, know of an approach or method that could be helpful in addressing the error, so that it can successfully build and push the image?
The text was updated successfully, but these errors were encountered:
Hello everyone! I'm currently running through Module 2 of the AWS Modern Application Workshop, and having the Dockerfile, buildspec.yml, code-build-project.json, code-pipeline.json files updated and the container image built and pushed to the Amazon ECR repository within my local environment, things went smoothly at first, so I presumed this would be the case upon having AWS CodeBuild building the image successfully. However, upon running the CI/CD pipeline via AWS CodePipeline, I encountered a failure with the Codebuild task, wherein it provided a log showing the following:
Note: the error shows up at line 155!
`
[Container] 2024/07/16 01:58:59.034316 Running on CodeBuild On-demand
2 | [Container] 2024/07/16 01:58:59.034359 Waiting for agent ping
3 | [Container] 2024/07/16 01:58:59.135446 Waiting for DOWNLOAD_SOURCE
4 | [Container] 2024/07/16 01:58:59.326834 Phase is DOWNLOAD_SOURCE
5 | [Container] 2024/07/16 01:58:59.327725 CODEBUILD_SRC_DIR=/codebuild/output/src2074736770/src
6 | [Container] 2024/07/16 01:58:59.328167 YAML location is /codebuild/output/src2074736770/src/buildspec.yml
7 | [Container] 2024/07/16 01:58:59.329971 Setting HTTP client timeout to higher timeout for S3 source
8 | [Container] 2024/07/16 01:58:59.330046 Processing environment variables
9 | [Container] 2024/07/16 01:58:59.350542 Moving to directory /codebuild/output/src2074736770/src
10 | [Container] 2024/07/16 01:58:59.352019 Unable to initialize cache download: no paths specified to be cached
11 | [Container] 2024/07/16 01:58:59.352315 Registering with agent
12 | [Container] 2024/07/16 01:58:59.385560 Phases found in YAML: 4
13 | [Container] 2024/07/16 01:58:59.385587 INSTALL: 2 commands
14 | [Container] 2024/07/16 01:58:59.385592 PRE_BUILD: 4 commands
15 | [Container] 2024/07/16 01:58:59.385595 BUILD: 4 commands
16 | [Container] 2024/07/16 01:58:59.385599 POST_BUILD: 5 commands
17 | [Container] 2024/07/16 01:58:59.385830 Phase complete: DOWNLOAD_SOURCE State: SUCCEEDED
18 | [Container] 2024/07/16 01:58:59.385841 Phase context status code: Message:
19 | [Container] 2024/07/16 01:58:59.447374 Entering phase INSTALL
20 | [Container] 2024/07/16 01:58:59.447894 Running command aws --version
21 | aws-cli/1.16.21 Python/3.6.5 Linux/4.14.291-218.527.amzn2.x86_64 exec-env/AWS_ECS_EC2 botocore/1.12.11
22 |
23 | [Container] 2024/07/16 01:59:00.483822 Running command docker info
24 | Containers: 0
25 | Running: 0
26 | Paused: 0
27 | Stopped: 0
28 | Images: 0
29 | Server Version: 17.09.0-ce
30 | Storage Driver: overlay
31 | Backing Filesystem: xfs
32 | Supports d_type: true
33 | Logging Driver: json-file
34 | Cgroup Driver: cgroupfs
35 | Plugins:
36 | Volume: local
37 | Network: bridge host macvlan null overlay
38 | Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
39 | Swarm: inactive
40 | Runtimes: runc
41 | Default Runtime: runc
42 | Init Binary: docker-init
43 | containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
44 | runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
45 | init version: 949e6fa
46 | Security Options:
47 | seccomp
48 | Profile: default
49 | Kernel Version: 4.14.291-218.527.amzn2.x86_64
50 | Operating System: Ubuntu 14.04.5 LTS (containerized)
51 | OSType: linux
52 | Architecture: x86_64
53 | CPUs: 2
54 | Total Memory: 3.644GiB
55 | Name: 9c4f7f0e1826
56 | ID: RCKW:LJPP:RDOL:V3I5:NAGZ:IPX7:SFNJ:Q3BN:IOBB:ALCS:34IY:NPUO
57 | Docker Root Dir: /var/lib/docker
58 | Debug Mode (client): false
59 | Debug Mode (server): false
60 | Registry: https://index.docker.io/v1/
61 | Experimental: false
62 | Insecure Registries:
63 | 127.0.0.0/8
64 | Live Restore Enabled: false
65 |
66 | WARNING: bridge-nf-call-iptables is disabled
67 | WARNING: bridge-nf-call-ip6tables is disabled
68 |
69 | [Container] 2024/07/16 01:59:00.503484 Phase complete: INSTALL State: SUCCEEDED
70 | [Container] 2024/07/16 01:59:00.503506 Phase context status code: Message:
71 | [Container] 2024/07/16 01:59:00.532997 Entering phase PRE_BUILD
72 | [Container] 2024/07/16 01:59:00.533552 Running command docker version
73 | Client:
74 | Version: 17.09.0-ce
75 | API version: 1.32
76 | Go version: go1.8.3
77 | Git commit: afdb6d4
78 | Built: Tue Sep 26 22:39:28 2017
79 | OS/Arch: linux/amd64
80 |
81 | Server:
82 | Version: 17.09.0-ce
83 | API version: 1.32 (minimum version 1.12)
84 | Go version: go1.8.3
85 | Git commit: afdb6d4
86 | Built: Tue Sep 26 22:45:38 2017
87 | OS/Arch: linux/amd64
88 | Experimental: false
89 |
90 | [Container] 2024/07/16 01:59:00.548158 Running command docker info
91 | Containers: 0
92 | Running: 0
93 | Paused: 0
94 | Stopped: 0
95 | Images: 0
96 | Server Version: 17.09.0-ce
97 | Storage Driver: overlay
98 | Backing Filesystem: xfs
99 | Supports d_type: true
100 | Logging Driver: json-file
101 | Cgroup Driver: cgroupfs
102 | Plugins:
103 | Volume: local
104 | Network: bridge host macvlan null overlay
105 | Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
106 | Swarm: inactive
107 | Runtimes: runc
108 | Default Runtime: runc
109 | Init Binary: docker-init
110 | containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
111 | runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
112 | init version: 949e6fa
113 | Security Options:
114 | seccomp
115 | Profile: default
116 | Kernel Version: 4.14.291-218.527.amzn2.x86_64
117 | Operating System: Ubuntu 14.04.5 LTS (containerized)
118 | OSType: linux
119 | Architecture: x86_64
120 | CPUs: 2
121 | Total Memory: 3.644GiB
122 | Name: 9c4f7f0e1826
123 | ID: RCKW:LJPP:RDOL:V3I5:NAGZ:IPX7:SFNJ:Q3BN:IOBB:ALCS:34IY:NPUO
124 | Docker Root Dir: /var/lib/docker
125 | Debug Mode (client): false
126 | Debug Mode (server): false
127 | Registry: https://index.docker.io/v1/
128 | Experimental: false
129 | Insecure Registries:
130 | 127.0.0.0/8
131 | Live Restore Enabled: false
132 |
133 | WARNING: bridge-nf-call-iptables is disabled
134 | WARNING: bridge-nf-call-ip6tables is disabled
135 |
136 | [Container] 2024/07/16 01:59:00.566683 Running command echo Logging in to Amazon ECR...
137 | Logging in to Amazon ECR...
138 |
139 | [Container] 2024/07/16 01:59:00.570949 Running command aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION
140 | docker login -u AWS -p ey....[REDACTED for confidentiality]
141 |
142 | [Container] 2024/07/16 01:59:00.957953 Phase complete: PRE_BUILD State: SUCCEEDED
143 | [Container] 2024/07/16 01:59:00.957974 Phase context status code: Message:
144 | [Container] 2024/07/16 01:59:00.990205 Entering phase BUILD
145 | [Container] 2024/07/16 01:59:00.990689 Running command echo Build started on
date
146 | Build started on Tue Jul 16 01:59:00 UTC 2024
147 |
148 | [Container] 2024/07/16 01:59:00.996457 Running command echo Building the Docker image...
149 | Building the Docker image...
150 |
151 | [Container] 2024/07/16 01:59:01.000891 Running command docker build -t mythicalmysfits/service:latest .
152 | Sending build context to Docker daemon 14.85kB
153 |
154 | Step 1/13 : FROM ubuntu:latest
155 | missing signature key
156 |
157 | [Container] 2024/07/16 01:59:01.899035 Command did not exit successfully docker build -t mythicalmysfits/service:latest . exit status 1
158 | [Container] 2024/07/16 01:59:01.902910 Phase complete: BUILD State: FAILED
159 | [Container] 2024/07/16 01:59:01.902927 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: docker build -t mythicalmysfits/service:latest .. Reason: exit status 1
160 | [Container] 2024/07/16 01:59:01.943335 Entering phase POST_BUILD
161 | [Container] 2024/07/16 01:59:01.943848 Running command echo Build completed on
date
162 | Build completed on Tue Jul 16 01:59:01 UTC 2024
163 |
164 | [Container] 2024/07/16 01:59:01.950695 Running command echo Pushing the Docker image..
165 | Pushing the Docker image..
166 |
167 | [Container] 2024/07/16 01:59:01.956261 Running command docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/mythicalmysfits/service:latest
168 | The push refers to a repository [$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/mythicalmysfits/service]
169 | An image does not exist locally with the tag: $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/mythicalmysfits/service
170 |
171 | [Container] 2024/07/16 01:59:01.973715 Command did not exit successfully docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/mythicalmysfits/service:latest exit status 1
172 | [Container] 2024/07/16 01:59:01.977124 Phase complete: POST_BUILD State: FAILED
173 | [Container] 2024/07/16 01:59:01.977140 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/mythicalmysfits/service:latest. Reason: exit status 1
174 | [Container] 2024/07/16 01:59:02.084450 Expanding base directory path: .
175 | [Container] 2024/07/16 01:59:02.086354 Assembling file list
176 | [Container] 2024/07/16 01:59:02.086366 Expanding .
177 | [Container] 2024/07/16 01:59:02.088018 Expanding file paths for base directory .
178 | [Container] 2024/07/16 01:59:02.088029 Assembling file list
179 | [Container] 2024/07/16 01:59:02.088032 Expanding imagedefinitions.json
180 | [Container] 2024/07/16 01:59:02.089562 Skipping invalid file path imagedefinitions.json
181 | [Container] 2024/07/16 01:59:02.089918 Phase complete: UPLOAD_ARTIFACTS State: FAILED
182 | [Container] 2024/07/16 01:59:02.089933 Phase context status code: CLIENT_ERROR Message: no matching artifact paths found
183
`I have a suspicion that either the docker or aws version might be contributing to why the "missing signature key" error is showing up in the CodeBuild attempt, but thus far, I cannot say with 100% certainty whether that is the case? Has anyone encountered this issue before, and if not, know of an approach or method that could be helpful in addressing the error, so that it can successfully build and push the image?
The text was updated successfully, but these errors were encountered: