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

MacOS 14 Runner Cant Resolve keyserver.ubuntu.com #9777

Closed
2 of 13 tasks
steelhead31 opened this issue May 2, 2024 · 5 comments
Closed
2 of 13 tasks

MacOS 14 Runner Cant Resolve keyserver.ubuntu.com #9777

steelhead31 opened this issue May 2, 2024 · 5 comments

Comments

@steelhead31
Copy link

Description

The MACOS 14 github action runner is unable to resolve keyserver.ubuntu.com for retrieving GPG keys.

Currently using this workaround to replace the keyserver name with its IP address which works

sed -i '' 's/keyserver\.ubuntu\.com/185.125.188.27/g'

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Link : https://github.com/adoptium/infrastructure/actions/runs/8922598468/job/24505071773

Current runner version: '2.316.0'
Operating System
macOS
14.4.1
23E224
Runner Image
Runner Image Provisioner
GITHUB_TOKEN Permissions
Secret source: None
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633' (SHA:9bb56186c3b09b4f86b1c65136769dd318469633)
Complete job name: macOS (macos-14)

Is it regression?

No

Expected behavior

The machine should be able to resolve the DNS name to its IP address

Actual behavior

TASK [ant : GPG Signature verification] ****************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None
fatal: [localhost]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 2, "stderr": "gpg: directory '/Users/runner/.gnupg' created\ngpg: keyserver receive failed: No route to host\n", "stderr_lines": ["gpg: directory '/Users/runner/.gnupg' created", "gpg: keyserver receive failed: No route to host"], "stdout": "", "stdout_lines": []}

Repro steps

Import a gpg key from keyserver.ubuntu.com on a macos14 runner.

@shamil-mubarakshin
Copy link
Contributor

Hey @steelhead31. System itself is resolving keyserver.ubuntu.com correctly. There might be some name resolution issue when using gpg which I will check and get back

@shamil-mubarakshin shamil-mubarakshin added OS: macOS Area: Common Tools investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels May 7, 2024
@shamil-mubarakshin shamil-mubarakshin self-assigned this May 7, 2024
@steelhead31
Copy link
Author

@shamil-mubarakshin Thanks!

@shamil-mubarakshin
Copy link
Contributor

@steelhead31, looks like it is something MacOs specific. I get similar results when running command on a local Mac machine, as well as Actions MacOS offerings. It is also sporadic (some complete successfully over a number of attempts).
In Actions I found using dirmngr.conf and standard-resolver yielding results:

  - run: |
      mkdir -p ~/.gnupg/
      touch ~/.gnupg/dirmngr.conf
      echo "standard-resolver" >  ~/.gnupg/dirmngr.conf

So far it doesn't look like something to be resolved on an image side. Let me know if you have any additional information

@shamil-mubarakshin shamil-mubarakshin removed the investigate Collect additional information, like space on disk, other tool incompatibilities etc. label May 9, 2024
@steelhead31
Copy link
Author

Thanks for the response, I'll check with some of our Mac developers, see if anyone else has seen this behaviour outside of the runner. The workaround works for now.

@steelhead31
Copy link
Author

Ok, since it looks intermittent, I'll assume its server side @ Ubuntu, will keep an eye on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants