bitcoin / bitcoin

Bitcoin Core integration/staging tree
https://bitcoincore.org/en/download
MIT License
78.48k stars 36.18k forks source link

ci: failure in Docker build step #27492

Closed fanquake closed 1 year ago

fanquake commented 1 year ago

Failure here: https://cirrus-ci.com/task/4581145136857088 in #27479. Does this just need a rebase? cc @MarcoFalke

docker build --tag gcr.io/cirrus-ci-community/bitcoin/bitcoin/ci/test_imagefile:d050f5b1ebc8c0ebdf779e9eda85ea03bfd0fca46391a14e57fbe478652e6623 --file ci/test_imagefile --build-arg CI_IMAGE_NAME_TAG="ubuntu:focal" --build-arg FILE_ENV="./ci/test/00_setup_env_native_nowallet_libbitcoinkernel.sh" ${CIRRUS_DOCKER_CONTEXT:-$CIRRUS_WORKING_DIR}
Sending build context to Docker daemon  53.57MB
Step 1/7 : ARG CI_IMAGE_NAME_TAG
Step 2/7 : FROM ${CI_IMAGE_NAME_TAG}
focal: Pulling from library/ubuntu
ca1778b69356: Pulling fs layer
ca1778b69356: Verifying Checksum
ca1778b69356: Download complete
ca1778b69356: Pull complete
Digest: sha256:db8bf6f4fb351aa7a26e27ba2686cf35a6a409f65603e59d4c203e58387dc6b3
Status: Downloaded newer image for ubuntu:focal
 ---> 88bd68917189
Step 3/7 : ARG FILE_ENV
 ---> Running in 77bc178b543a
Removing intermediate container 77bc178b543a
 ---> a52b7bf6ebc8
Step 4/7 : ENV FILE_ENV=${FILE_ENV}
 ---> Running in 2d35ad9e7577
Removing intermediate container 2d35ad9e7577
 ---> 6bdfd4b02a40
Step 5/7 : COPY ./ci/retry/retry /usr/bin/retry
 ---> 8d3f67387e0d
Step 6/7 : COPY ./ci/test/00_setup_env.sh ./${FILE_ENV} ./ci/test/01_base_install.sh /ci_base_install/ci/test/
 ---> ca5c1a6cf9b3
Step 7/7 : RUN ["bash", "-c", "cd /ci_base_install/ && set -o errexit && source ./ci/test/00_setup_env.sh && ./ci/test/01_base_install.sh"]
 ---> Running in bda994800fa2
Setting specific values in env
Fallback to default values in env (if not yet set)
./ci/test/00_setup_env.sh: line 33: /ci_base_install/depends/config.guess: No such file or directory
./ci/test/01_base_install.sh: line 11: git: command not found
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:7 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3111 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1329 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [31.2 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2277 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2139 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1033 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2629 kB]
Get:19 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [28.5 kB]
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #1: sleeping 0.3 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #2: sleeping 0.6 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #3: sleeping 1.2 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #4: sleeping 2.4 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #5: sleeping 4.8 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #6: sleeping 9.6 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #7: sleeping 19.2 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #8: sleeping 38.4 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #9: sleeping 60 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Before retry #10: sleeping 60 seconds
Get:1 http://deb.debian.org/debian buster-backports InRelease [51.4 kB]
Err:1 http://deb.debian.org/debian buster-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Retries exhausted
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #1: sleeping 0.3 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #2: sleeping 0.6 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #3: sleeping 1.2 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #4: sleeping 2.4 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #5: sleeping 4.8 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #6: sleeping 9.6 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #7: sleeping 19.2 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #8: sleeping 38.4 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #9: sleeping 60 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Before retry #10: sleeping 60 seconds
Reading package lists...
E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources
Retries exhausted
./ci/test/01_base_install.sh: line 87: git: command not found
The command 'bash -c cd /ci_base_install/ && set -o errexit && source ./ci/test/00_setup_env.sh && ./ci/test/01_base_install.sh' returned a non-zero code: 127
Exit status: 127
maflcko commented 1 year ago

I guess the Prebuild task needs to run after the merge_base step, or similar.

maflcko commented 1 year ago

Not sure how to easily run a step before the build.

Ideally this is something fixed by upstream, see:

maflcko commented 1 year ago

For now the only workarounds I see are:

fanquake commented 1 year ago

I think "rebase if this is seen" is an ok solution here. Should we close for now?

maflcko commented 1 year ago

Note for reviewers if they encounter a rebase: https://github.com/bitcoin/bitcoin/blob/master/doc/productivity.md#diff-the-diffs-with-git-range-diff

hebasto commented 1 year ago

I think "rebase if this is seen" is an ok solution here.

~It doesn't work: before rebasing --> after rebasing.~

UPD. nm

maflcko commented 1 year ago

That seems unrelated, see https://github.com/bitcoin/bitcoin/pull/25797/files#r1206672381

hebasto commented 1 year ago

That seems unrelated, see #25797 (files)

Indeed. Sorry for noise.

fanquake commented 1 year ago

Closing this again.

maflcko commented 1 year ago

Jup, this was fixed upstream