Closed mohamed-caylent closed 2 years ago
It seems that some of the lib6*
packages were upgraded today and they are causing the pipeline to fail. As a temporary workaround, you can add this line - sudo apt-mark hold libc6*
before - apt-get update && apt-get upgrade -y
in the buildspec.yml
file in the Codebuild Build stage.
Edit: As mentioned by @WarrEagle below, you will need to add this one line to the build stage, the SCP stage and the Cloudformation stage for the entire pipeline to work.
check this :) https://github.com/aws-solutions/aws-control-tower-customizations/pull/93 it works!
Related upstream issue: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1962225
It seems that some of the
lib6*
packages were upgraded today and they are causing the pipeline to fail. As a temporary workaround, you can add this line- sudo apt-mark hold libc6*
before- apt-get update && apt-get upgrade -y
in thebuildspec.yml
file in the Codebuild Build stage.
This affects stages 2,3, and 4 in the same manner. This one-liner added to each stages buildspec.yaml allowed my orgs deployments to complete successfully for our automatic account provisioning triggers.
We are aware of this issue and are working with the AWS CodeBuild team to resolve the issue upstream. AWS CodeBuild is actively working on a fix and we do not expect needing to patch CFCT as part of the resolution.
As mentioned above, not upgrading libc6 at runtime by adding sudo apt-mark hold libc6*
before apt-get upgrade
in buildspec stages should work if you require an immediate workaround.
We will provide additional details as we receive more information. Thank you for your patience.
For those of you following this thread, I started getting errors like /codebuild/output/tmp/script.sh: 4: /codebuild/output/tmp/script.sh: sudo: not found
with the workaround so make sure to remove the sudo
in the beginning of the command and it will work fine.
In other words, add this line - apt-mark hold libc6*
before - apt-get update && apt-get upgrade -y
in the buildspec.yml
for all stages Build, SCP and Cloudformation.
The CodeBuild team has released a fix that should resolve this. Please reopen this issue if you continue to experience this problem.
Confirming that the issue was fixed. Thank you!
Describe the bug The pipeline is current broken at the build stage due to a Kernel Version error:
To Reproduce Just run the pipeline using the defaults that AWS providers.
Expected behavior The dependencies step should at least pass no problem
Please complete the following information about the solution:
Screenshots N/A
Additional context I tried changing the image used in the Codebuild to:
aws/codebuild/standard:5.0
and also a non-latest version ofaws/codebuild/standard:4.0
and no luck.