acantril / learn-cantrill-io-labs

Standard and Advanced Demos for learn.cantrill.io courses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error with catpipeline

wimvandenborre opened this issue · comments

When trying to build I get this error: Any ideas?

24 | [Container] 2024/03/05 18:49:31.181522 Entering phase BUILD
25 | [Container] 2024/03/05 18:49:31.182098 Running command buildspec.yml
26 | /codebuild/output/tmp/script.sh: line 4: buildspec.yml: command not found
27 |  
28 | [Container] 2024/03/05 18:49:31.192380 Command did not exit successfully buildspec.yml exit status 127
29 | [Container] 2024/03/05 18:49:31.197588 Phase complete: BUILD State: FAILED
30 | [Container] 2024/03/05 18:49:31.197604 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: buildspec.yml. Reason: exit status 127

HI
it looks like you don't have your buildspec.yml file there ? or in the correct place ?

Thank you for responding, it is there, don't see the issue. I could only select as server Linux and not Linux 2. That's the only difference.

[Container] 2024/03/06 09:23:30.150234 Waiting for agent ping
2 | [Container] 2024/03/06 09:23:30.351618 Waiting for DOWNLOAD_SOURCE
3 | [Container] 2024/03/06 09:23:35.747012 Phase is DOWNLOAD_SOURCE
4 | [Container] 2024/03/06 09:23:35.748484 CODEBUILD_SRC_DIR=/codebuild/output/src474112195/src/git-codecommit.us-east-1.amazonaws.com/v1/repos/catpipeline-codecommit-1337
5 | [Container] 2024/03/06 09:23:35.748942 YAML location is /codebuild/readonly/buildspec.yml
6 | [Container] 2024/03/06 09:23:35.750570 Not setting HTTP client timeout for source type codecommit
7 | [Container] 2024/03/06 09:23:35.750707 Processing environment variables
8 | [Container] 2024/03/06 09:23:35.969542 No runtime version selected in buildspec.
9 | [Container] 2024/03/06 09:23:36.027793 Moving to directory /codebuild/output/src474112195/src/git-codecommit.us-east-1.amazonaws.com/v1/repos/catpipeline-codecommit-1337
10 | [Container] 2024/03/06 09:23:36.030483 Unable to initialize cache download: no paths specified to be cached
11 | [Container] 2024/03/06 09:23:36.153825 Configuring ssm agent with target id: codebuild:b0b7b0bb-3c73-4e3d-b2df-ff68f0b76347
12 | [Container] 2024/03/06 09:23:36.179973 Successfully updated ssm agent configuration
13 | [Container] 2024/03/06 09:23:36.180348 Registering with agent
14 | [Container] 2024/03/06 09:23:36.180363 Phases found in YAML: 1
15 | [Container] 2024/03/06 09:23:36.180449 BUILD: 1 commands
16 | [Container] 2024/03/06 09:23:36.180761 Phase complete: DOWNLOAD_SOURCE State: SUCCEEDED
17 | [Container] 2024/03/06 09:23:36.180773 Phase context status code: Message:
18 | [Container] 2024/03/06 09:23:36.249783 Entering phase INSTALL
19 | [Container] 2024/03/06 09:23:36.284638 Phase complete: INSTALL State: SUCCEEDED
20 | [Container] 2024/03/06 09:23:36.284656 Phase context status code: Message:
21 | [Container] 2024/03/06 09:23:36.316056 Entering phase PRE_BUILD
22 | [Container] 2024/03/06 09:23:36.318525 Phase complete: PRE_BUILD State: SUCCEEDED
23 | [Container] 2024/03/06 09:23:36.318541 Phase context status code: Message:
24 | [Container] 2024/03/06 09:23:36.348229 Entering phase BUILD
25 | [Container] 2024/03/06 09:23:36.348739 Running command buildspec.yml
26 | /codebuild/output/tmp/script.sh: line 4: buildspec.yml: command not found
27 |  
28 | [Container] 2024/03/06 09:23:36.354982 Command did not exit successfully buildspec.yml exit status 127
29 | [Container] 2024/03/06 09:23:36.359821 Phase complete: BUILD State: FAILED
30 | [Container] 2024/03/06 09:23:36.359836 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: buildspec.yml. Reason: exit status 127
31 | [Container] 2024/03/06 09:23:36.387419 Entering phase POST_BUILD
32 | [Container] 2024/03/06 09:23:36.389178 Phase complete: POST_BUILD State: SUCCEEDED
33 | [Container] 2024/03/06 09:23:36.389191 Phase context status code: Message:
34


HI
It's telling you it's NOT there.
is it in the correct location
is the spelling correct ?

So sorry... I had it on insert build commands... It works!!
Screenshot 2024-03-06 at 10 58 13