CircleCI-Public / aws-ecr-orb

CircleCI orb for interacting with Amazon's Elastic Container Registry (ECR)
https://circleci.com/orbs/registry/orb/circleci/aws-ecr
MIT License
80 stars 142 forks source link

ECR login fails in install_aws_ecr_credential_helper. #367

Closed ogaty closed 3 weeks ago

ogaty commented 3 weeks ago

Orb version

orbs:
  aws-cli: circleci/aws-cli@5.1.1
  aws-ecr: circleci/aws-ecr@9.3.6
  aws-ecs: circleci/aws-ecs@6.0.0

What happened

ECR login fails in install_aws_ecr_credential_helper. In last month, this job was successful.

Detected OS: Linux.
Installing AWS ECR Credential Helper...
^@^@
0% [Working]

Ign:1 https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy InRelease

0% [Connecting to archive.ubuntu.com (185.125.190.83)] [Connecting to security.

Get:2 https://download.docker.com/linux/ubuntu jammy InRelease [48.8 kB]

0% [Connecting to archive.ubuntu.com (185.125.190.83)] [Connecting to security.
0% [Connecting to archive.ubuntu.com (185.125.190.83)] [Connecting to security.

Get:3 https://apt.releases.hashicorp.com jammy InRelease [12.9 kB]

0% [Connecting to archive.ubuntu.com (185.125.190.83)] [Connecting to security.
0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte

Get:4 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.29/deb  InRelease [1,189 B]

0% [4 InRelease 1,189 B/1,189 B 100%] [Waiting for headers] [Waiting for header
0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte

Ign:5 https://repo.goreleaser.com/apt  InRelease

0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte

Ign:6 https://repo.goreleaser.com/apt  Release

0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte

Get:7 https://repo.goreleaser.com/apt  Packages

0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte
0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte
0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte
0% [7 Packages store 0 B] [Waiting for headers] [Waiting for headers] [Connecte

Get:8 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages [48.4 kB]

0% [7 Packages store 0 B] [Waiting for headers] [Waiting for headers] [8 Packag
0% [7 Packages store 0 B] [Waiting for headers] [Waiting for headers] [Connecte
0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte
0% [8 Packages store 0 B] [Waiting for headers] [Waiting for headers] [Connecte
0% [Waiting for headers] [Waiting for headers] [Connected to ppa.launchpadconte

Get:9 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]

0% [Waiting for headers] [9 InRelease 12.7 kB/129 kB 10%] [Connected to ppa.lau

Get:10 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]

0% [10 InRelease 14.2 kB/270 kB 5%] [9 InRelease 14.2 kB/129 kB 11%] [Connected
0% [10 InRelease 14.2 kB/270 kB 5%] [9 InRelease 14.2 kB/129 kB 11%] [Waiting f

Get:11 https://apt.releases.hashicorp.com jammy/main amd64 Packages [194 kB]

0% [10 InRelease 14.2 kB/270 kB 5%] [9 InRelease 14.2 kB/129 kB 11%] [Waiting f
0% [10 InRelease 14.2 kB/270 kB 5%] [9 InRelease 14.2 kB/129 kB 11%] [Waiting f
0% [11 Packages store 0 B] [10 InRelease 14.2 kB/270 kB 5%] [9 InRelease 14.2 k
0% [10 InRelease 14.2 kB/270 kB 5%] [9 InRelease 14.2 kB/129 kB 11%] [Waiting f

Err:4 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.29/deb  InRelease
  The following signatures were invalid: EXPKEYSIG 234654DA9A296436 isv:kubernetes OBS Project <isv:kubernetes@build.opensuse.org>

0% [10 InRelease 14.2 kB/270 kB 5%] [9 InRelease 14.2 kB/129 kB 11%] [Waiting f
0% [10 InRelease 43.1 kB/270 kB 16%] [9 InRelease 41.7 kB/129 kB 32%] [Waiting 

Get:12 https://packagecloud.io/github/git-lfs/ubuntu jammy InRelease [28.0 kB]

0% [12 InRelease 15.8 kB/28.0 kB 56%] [10 InRelease 48.9 kB/270 kB 18%] [9 InRe
0% [10 InRelease 48.9 kB/270 kB 18%] [9 InRelease 47.5 kB/129 kB 37%] [Waiting 
0% [10 InRelease 73.5 kB/270 kB 27%] [9 InRelease 67.7 kB/129 kB 53%] [Waiting 
0% [10 InRelease 137 kB/270 kB 51%] [Waiting for headers] [Waiting for headers]

0% [10 InRelease 152 kB/270 kB 56%] [Waiting for headers]

Get:14 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease [24.6 kB]

0% [Waiting for headers] [10 InRelease 169 kB/270 kB 63%] [14 InRelease 16.0 kB

0% [Waiting for headers] [10 InRelease 192 kB/270 kB 71%]
0% [Waiting for headers] [10 InRelease 230 kB/270 kB 85%]

0% [Waiting for headers] [Waiting for headers]

Get:13 https://packagecloud.io/github/git-lfs/ubuntu jammy/main amd64 Packages [1,842 B]

0% [13 Packages 1,842 B/1,842 B 100%] [Waiting for headers] [Waiting for header

0% [Waiting for headers] [Waiting for headers]
0% [Waiting for headers] [Waiting for headers]
0% [Waiting for headers] [Waiting for headers]

Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [3,241 kB]

0% [Waiting for headers] [15 Packages 2,685 B/3,241 kB 0%] [Waiting for headers

Get:16 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]

0% [16 InRelease 4,036 B/128 kB 3%] [15 Packages 46.1 kB/3,241 kB 1%] [Waiting 

0% [15 Packages 105 kB/3,241 kB 3%] [Waiting for headers]
0% [Waiting for headers] [15 Packages 120 kB/3,241 kB 4%] [Waiting for headers]

Get:17 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy/main amd64 Packages [2,959 B]

0% [Waiting for headers] [15 Packages 142 kB/3,241 kB 4%] [17 Packages 2,959 B/

0% [Waiting for headers] [15 Packages 145 kB/3,241 kB 4%]
0% [17 Packages store 0 B] [Waiting for headers] [15 Packages 145 kB/3,241 kB 4

0% [Waiting for headers] [15 Packages 145 kB/3,241 kB 4%]
0% [Waiting for headers] [15 Packages 236 kB/3,241 kB 7%]

Get:18 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]

0% [18 InRelease 4,036 B/127 kB 3%] [15 Packages 250 kB/3,241 kB 8%]

0% [15 Packages 328 kB/3,241 kB 10%]
0% [Waiting for headers] [15 Packages 659 kB/3,241 kB 20%]

Get:19 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]

0% [19 Packages 4,101 B/17.5 MB 0%] [15 Packages 748 kB/3,241 kB 23%]

0% [19 Packages 751 kB/17.5 MB 4%]
0% [15 Packages store 0 B] [19 Packages 757 kB/17.5 MB 4%] [Waiting for headers

Get:20 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.7 kB]

0% [15 Packages store 0 B] [19 Packages 1,701 kB/17.5 MB 10%] [20 Packages 36.9

0% [15 Packages store 0 B] [19 Packages 1,701 kB/17.5 MB 10%]

Get:21 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2,397 kB]

0% [15 Packages store 0 B] [19 Packages 1,716 kB/17.5 MB 10%] [21 Packages 57.3
0% [15 Packages store 0 B] [19 Packages 2,471 kB/17.5 MB 14%] [21 Packages 2,39
0% [15 Packages store 0 B] [19 Packages 2,471 kB/17.5 MB 14%] [21 Packages 2,39

0% [15 Packages store 0 B] [19 Packages 2,488 kB/17.5 MB 14%]

Get:22 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1,163 kB]

0% [15 Packages store 0 B] [19 Packages 2,488 kB/17.5 MB 14%] [22 Packages 62.1

Ign:1 https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy InRelease

0% [15 Packages store 0 B] [19 Packages 2,511 kB/17.5 MB 14%] [22 Packages 124 

0% [19 Packages 2,593 kB/17.5 MB 15%] [22 Packages 255 kB/1,163 kB 22%]
0% [20 Packages store 0 B] [19 Packages 2,593 kB/17.5 MB 15%] [22 Packages 255 

0% [19 Packages 2,631 kB/17.5 MB 15%] [22 Packages 382 kB/1,163 kB 33%]
0% [21 Packages store 0 B] [19 Packages 2,631 kB/17.5 MB 15%] [22 Packages 382 

0% [21 Packages store 0 B] [19 Packages 3,992 kB/17.5 MB 23%]

0% [19 Packages 5,771 kB/17.5 MB 33%]
0% [22 Packages store 0 B] [19 Packages 5,771 kB/17.5 MB 33%]

0% [19 Packages 7,078 kB/17.5 MB 41%]

0% [Working]

Get:23 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]

0% [23 Packages 24.3 kB/164 kB 15%]
0% [19 Packages store 0 B] [23 Packages 69.6 kB/164 kB 42%]

0% [19 Packages store 0 B] [Waiting for headers]

Get:24 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]

0% [19 Packages store 0 B] [24 Packages 86.6 kB/266 kB 33%]

0% [19 Packages store 0 B] [Waiting for headers]

Get:25 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1,792 kB]

0% [19 Packages store 0 B] [25 Packages 8,192 B/1,792 kB 0%]

0% [19 Packages store 0 B] [Waiting for headers]

Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [51.8 kB]

0% [19 Packages store 0 B] [26 Packages 20.5 kB/51.8 kB 40%]

0% [19 Packages store 0 B] [Waiting for headers]

Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [3,319 kB]

0% [19 Packages store 0 B] [27 Packages 43.1 kB/3,319 kB 1%]

0% [19 Packages store 0 B] [Waiting for headers]

Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2,672 kB]

0% [19 Packages store 0 B] [28 Packages 64.9 kB/2,672 kB 2%]

0% [19 Packages store 0 B] [Waiting for headers]

Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,452 kB]

0% [19 Packages store 0 B] [29 Packages 130 kB/1,452 kB 9%]

0% [19 Packages store 0 B] [Waiting for headers]

Get:30 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [81.4 kB]

0% [19 Packages store 0 B] [30 Packages 64.9 kB/81.4 kB 80%]

0% [19 Packages store 0 B]

Get:31 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [33.7 kB]

0% [19 Packages store 0 B] [31 Packages 33.7 kB/33.7 kB 100%]

0% [19 Packages store 0 B]

0% [Working]
0% [23 Packages store 0 B]

0% [Working]
0% [24 Packages store 0 B]

0% [Working]
0% [25 Packages store 0 B]

0% [Working]
0% [26 Packages store 0 B]

0% [Working]
0% [27 Packages store 0 B]

0% [Working]
0% [28 Packages store 0 B]

0% [Working]
0% [29 Packages store 0 B]

0% [Working]
0% [30 Packages store 0 B]

0% [Working]
0% [31 Packages store 0 B]

0% [Working]
0% [Working]
0% [Working]
0% [Working]

Ign:1 https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy InRelease

0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]
0% [Working]                                                      5,839 kB/s 0s
0% [Working]                                                      5,839 kB/s 0s
0% [Working]                                                      5,839 kB/s 0s
0% [Working]                                                      5,839 kB/s 0s

Err:1 https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy InRelease
  Could not resolve 'repo.saltproject.io'

99% [Working]                                                     5,839 kB/s 0s

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 4%

Reading package lists... 4%

Reading package lists... 5%

Reading package lists... 5%

Reading package lists... 50%

Reading package lists... 50%

Reading package lists... 51%

Reading package lists... 51%

Reading package lists... 59%

Reading package lists... 59%

Reading package lists... 70%

Reading package lists... 70%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 75%

Reading package lists... 83%

Reading package lists... 83%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 98%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... Done

W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.29/deb  InRelease: The following signatures were invalid: EXPKEYSIG 234654DA9A296436 isv:kubernetes OBS Project <isv:kubernetes@build.opensuse.org>
E: The repository 'https://pkgs.k8s.io/core:/stable:/v1.29/deb  InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Expected behavior

marboledacci commented 3 weeks ago

Which executor are you using? This looks like a problem updating packages.

ogaty commented 3 weeks ago

I'm using docker cimg/deploy:2024.08.1.

I think this is repository problem. https://saltproject.io/blog/salt-project-package-repo-migration-and-guidance/

marboledacci commented 3 weeks ago

this is a problem with the image, not with the orb. If you need to use that specific image, try to use the latest version, 2024.11.1, I know it received some updates for that error you had.

ogaty commented 3 weeks ago

Ok. The job was successful after update the docker version. Thank you.