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

GitHub Packages HTTP 401 errors #13460

Closed
1 of 2 tasks
nre-ableton opened this issue Jun 22, 2022 · 13 comments
Closed
1 of 2 tasks

GitHub Packages HTTP 401 errors #13460

nre-ableton opened this issue Jun 22, 2022 · 13 comments
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@nre-ableton
Copy link

nre-ableton commented Jun 22, 2022

brew config output

HOMEBREW_VERSION: 3.5.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: fba051f98f609634ae4392d0053ddfc627f8cdb3
Last commit: 9 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d1945aece64d3c5bbf47d6251311ebfa79f77c04
Core tap last commit: 76 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/bin/ruby
CPU: octa-core 64-bit skylake
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6.7-x86_64
CLT: 13.2.0.0.1.1638488800
Xcode: 12.5.1

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/ci/.cache/pyenv/shims/python2-config
  /Users/ci/.cache/pyenv/shims/python3.7-config
  /Users/ci/.cache/pyenv/shims/python2.7-config
  /Users/ci/.cache/pyenv/shims/python3.7m-config
  /Users/ci/.cache/pyenv/shims/python-config
  /Users/ci/.cache/pyenv/shims/python3-config

Warning: Your Xcode (12.5.1) is outdated.
Please update to Xcode 13.2.1 (or delete it).
Xcode can be updated from the App Store.

Verification

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

I'm trying to install various packages that have a dependency on ca-certificates (such as tmux).

FWIW, I'm using a Big Sur VM that is part of a build farm with different compiler versions, hence I cannot update Xcode to a more recent version. Likewise, the pyenv directories are required for other reasons. I highly doubt that either of these things are the cause of the issue here; it seems to be that https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:c05a44feba2a630de2e1cefba90d3aa3f74e4d57146c0117858f648c419abeae is simply unauthorized and cannot be downloaded.

What happened (include all command output)?

$ brew install ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2022-04-26
Already downloaded: /Users/ci/Library/Caches/Homebrew/downloads/21a4c3d0a8e54b4921528b9379605fac4a683424a7a4cb0a2b5f098e18f3e229--ca-certificates-2022-04-26.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:c05a44feba2a630de2e1cefba90d3aa3f74e4d5
#=#=#
curl: (22) The requested URL returned error: 401
Error: ca-certificates: Failed to download resource "ca-certificates"
Download failed: https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:c05a44feba2a630de2e1cefba90d3aa3f74e4d57146c0117858f648c419abeae

What did you expect to happen?

The package to be installed without problems.

Step-by-step reproduction instructions (by running brew commands)

1. `brew install ca-certificates`
@nre-ableton nre-ableton added the bug Reproducible Homebrew/brew bug label Jun 22, 2022
@vagari
Copy link

vagari commented Jun 22, 2022

I'm in a similar boat... With loads of packages. Ran a brew upgrade this morning and pretty much everything that tried to update threw a 401 error.

After seeing some old references to curl being the problem, switched to the more recent brew installed version via HOMEBREW_FORCE_BREWED_CURL. Still got the the 401s. Think this might be a larger issue.

@nre-ableton, are you able to install or upgrade other packages?

@tw11509
Copy link

tw11509 commented Jun 22, 2022

Same problem, I cannot install or upgrade any packages.
It always show this message 'curl: (22) The requested URL returned error: 401'

@bvnp43
Copy link

bvnp43 commented Jun 22, 2022

yep, cant install new or update existing packages

@bigboy1122
Copy link

Same issue, getting 401's on installs

@ntersol-tom
Copy link

$ curl https://ghcr.io/v2/ -i
HTTP/2 401
content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://ghcr.io/token",service="ghcr.io",scope="repository:user/image:pull"
date: Wed, 22 Jun 2022 12:32:07 GMT
content-length: 73
x-github-request-id: D402:3C10:15F27:37308:62B30BC7

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}

@MikeMcQuaid MikeMcQuaid changed the title Can't install ca-certificates package due to HTTP 401 error GitHub Packages HTTP 401 errors Jun 22, 2022
@MikeMcQuaid MikeMcQuaid pinned this issue Jun 22, 2022
@ntersol-tom
Copy link

@MikeMcQuaid
Copy link
Member

Thanks all. Getting a lot of issues about this. Please hold off "me too" comments. I work at GitHub and am communicating with them about this issue report.

@nre-ableton
Copy link
Author

Glad to hear it isn't just me. 😄 Thanks for the quick response and investigation @MikeMcQuaid.

@MikeMcQuaid
Copy link
Member

GitHub's reporting an incident here now: https://www.githubstatus.com/incidents/10vm6ctn52gx

@MikeMcQuaid
Copy link
Member

Can anyone still reproduce this now? There has been a rollback.

@nre-ableton
Copy link
Author

I was just able to install ca-certificates. 🎉 Thanks again for the quick fix @MikeMcQuaid!

I'm going to take the liberty of closing this issue.

@yermulnik
Copy link

yermulnik commented Jun 22, 2022

Can confirm the issue is gone.
Thanks @MikeMcQuaid

@Bo98 Bo98 unpinned this issue Jun 22, 2022
@akougblenou
Copy link

akougblenou commented Jul 13, 2022

I am still having the issue, can't perform a brew upgrade or install the ca-certificate were there people still stuck on the issue?
I am going to try a fresh install and see if that fixes it.

EDIT: reinstalling does not fix the issue for me

@github-actions github-actions bot added the outdated PR was locked due to age label Aug 13, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

9 participants