aws / jsii

jsii allows code in any language to naturally interact with JavaScript classes. It is the technology that enables the AWS Cloud Development Kit to deliver polyglot libraries from a single codebase!
https://aws.github.io/jsii
Apache License 2.0
2.59k stars 242 forks source link

`Docker Images` workflow failing sporadically #3303

Open iliapolo opened 2 years ago

iliapolo commented 2 years ago

We've been saying quite a few failures in this workflow recently, that resolve after a retry.

Lets curate these errors as we see them here, so that at some point we can come up with a robust enough mitigation.

iliapolo commented 2 years ago
10 7.798 Get:112 https://download.mono-project.com/repo/debian stable-buster/main amd64 libmono-system-identitymodel-selectors4.0-cil all 6.12.0.122-0xamarin1+debian10b1 [35.6 kB]
#10 CANCELED

#44 [linux/arm64 staging  2/30] RUN apt-get update                                                                                                        && apt-get -y install                                                                                                   apt-transport-https                                                                                                     build-essential                                                                                                         ca-certificates                                                                                                         curl                                                                                                                    dirmngr                                                                                                                 git                                                                                                                     gnupg                                                                                                                   gzip                                                                                                                    libffi-dev                                                                                                              libicu63                                                                                                                libssl-dev                                                                                                              openssl                                                                                                                 rsync                                                                                                                   sudo                                                                                                                    unzip                                                                                                                   zip                                                                                                                     && rm -rf /var/lib/apt/lists/*
#44 48.89 Selecting previously unselected package libgdbm6:arm64.
#44 48.90 Preparing to unpack .../001-libgdbm6_1.18.1-4_arm64.deb ...
#44 48.92 Unpacking libgdbm6:arm64 (1.18.1-4) ...
#44 CANCELED
------
 > [linux/amd64 bindist 5/6] RUN POWERSHELL_RELEASE=$(curl -fSsL "https://aka.ms/powershell-release?tag=lts" -o /dev/null -w %{url_effective})         && POWERSHELL_VERSION=${POWERSHELL_RELEASE#${POWERSHELL_RELEASES}/tag/v}                                                && ASSET="powershell-${POWERSHELL_VERSION}-linux-${${TARGETPLATFORM#linux/}/amd64/x64}.tar.gz"                          && curl -fSsL "${POWERSHELL_RELEASES}/download/v${POWERSHELL_VERSION}/${ASSET}"                                         -o /tmp/powershell.tar.gz                                                                                               && mkdir -p /opt/microsoft/powershell                                                                                   && tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell                                                          && chmod +x /opt/microsoft/powershell/pwsh:
url: (22) The requested URL returned error: 404

https://github.com/aws/jsii/runs/4629246976?check_suite_focus=true

iliapolo commented 2 years ago
#81 exporting to image
#81 ...

#83 [auth] jsii/superchain:pull,push token for registry-1.docker.io
#83 DONE 0.0s

#84 [auth] jsii/superchain:pull,push token for registry-1.docker.io
#84 DONE 0.0s

#81 exporting to image
#81 pushing layers 0.9s done
#81 ERROR: authorization status: 401: authorization failed

#85 [auth] jsii/superchain:pull,push token for registry-1.docker.io
#85 DONE 0.0s
------
 > exporting to image:
------
error: failed to solve: authorization status: 401: authorization failed

https://github.com/aws/jsii/runs/4628603758?check_suite_focus=true
iliapolo commented 2 years ago

One more:

Dockerfile:21
--------------------
  19 |     # Prepare install images of "manual" binary distributions (runs on BUILD platform for speed)
  20 |     ########################################################################################################################
  21 | >>> FROM --platform=${BUILDPLATFORM} public.ecr.aws/debian/debian:10 as bindist
  22 |     
  23 |     # Build & target platforms, they are provided by buildx and will look like "linux/amd64" or "linux/arm64"
--------------------
error: failed to solve: public.ecr.aws/debian/debian:10: pulling from host public.ecr.aws failed with status code [manifests 10]: 400 Bad Request