Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] r-package (ubuntu-latest, clang, R 3.6, cmake) job fails when downloading GPG key #6038

Closed
jameslamb opened this issue Aug 14, 2023 · 1 comment · Fixed by #6039
Closed

Comments

@jameslamb
Copy link
Collaborator

Description

The r-package (ubuntu-latest, clang, R3.6, cmake) CI job is failing across several PRs, with the following error

Executing: /tmp/apt-key-gpghome.TJXpN45yKk/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
gpg: keyserver receive failed: Cannot assign requested address

Reproducible example

I've observed this failure over several commits over the last few days. Manually re-running tended to help, but today I saw it fail 3 times in a row: https://github.com/microsoft/LightGBM/actions/runs/5848902304/job/15859758034?pr=6037.

Maybe the decreasing effectiveness of retries means the issue is related to somme change in GitHub Actions that was gradually rolled out over the last few days, and maybe now most/all workflow runs are running under whatever conditions cause this to fail? I'm not sure.

I was also able to reproduce this locally, like this:

docker run --rm -it ubuntu:18.04 bash

apt-get update -y
apt-get install --no-install-recommends -y \
    ca-certificates \
    dirmngr \
    gpg \
    gpg-agent \
    software-properties-common \
    sudo

sudo apt-key adv \
    --keyserver keyserver.ubuntu.com \
    --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

That uses the same container image the job uses

- os: ubuntu-latest
task: r-package
compiler: gcc
r_version: 3.6
build_type: cmake
container: 'ubuntu:18.04'

And similar code to what's running when the job breaks

if [[ $OS_NAME == "linux" ]]; then
sudo apt-key adv \
--keyserver keyserver.ubuntu.com \
--recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 || exit -1

Environment info

LightGBM version or commit hash: multiple PRs in recent days (after 5c9e61d)

Additional Comments

This looks similar to what's documented in usbarmory/usbarmory-debian-base_image#9. That issue suggests that it has something to do with mixed support for IPv6 in the tools involved in downloading and using that GPG key.

shiyu1994 pushed a commit that referenced this issue Aug 15, 2023
* [ci] fix GPG key download for R Linux jobs

* force use of the new config file

* empty commit
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot removed the blocking label Nov 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant