Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.79k stars 12.45k forks source link

HomeBrew stopped working in Brazil - `brew update` #196356

Open arnonrdp opened 3 weeks ago

arnonrdp commented 3 weeks ago

brew gist-logs <formula> link OR brew config AND brew doctor output

➜  ~ brew config
HOMEBREW_VERSION: 4.4.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 91f3671b16fe62121364c465c14e0dfd088d7ead
Last commit: 5 days ago
Core tap JSON: 01 Nov 11:56 UTC
Core cask tap JSON: 30 Oct 13:33 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/bin/ruby
CPU: dodeca-core 64-bit arm_lobos
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: N/A
Rosetta 2: false
➜  ~ brew doctor
Your system is ready to brew.

Verification

What were you trying to do (and why)?

brew update

What happened (include all command output)?

==> Updating Homebrew... Error: Failed to download https://formulae.brew.sh/api/formula.jws.json! Failed to download https://formulae.brew.sh/api/cask.jws.json! Failed to download https://formulae.brew.sh/api/formula_tap_migrations.jws.json! Failed to download https://formulae.brew.sh/api/cask_tap_migrations.jws.json!

What did you expect to happen?

I expected it works. Also for brew update it doesn't work.

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

I also tried to install a package:
`brew install docker` but I have a similar error like:

==> Downloading https://formulae.brew.sh/api/formula.jws.json
curl: (28) Failed to connect to formulae.brew.sh port 443 after 300003 ms: Couldn't connect to server

Warning: formula.jws.json: update failed, falling back to cached version.
==> Downloading https://formulae.brew.sh/api/formula_tap_migrations.jws.json
curl: (28) Failed to connect to formulae.brew.sh port 443 after 300016 ms: Couldn't connect to server

Warning: formula_tap_migrations.jws.json: update failed, falling back to cached version.

I said "in Brazil" because I talked to some partners from other places in the world and it works there.

I tried to running those commands in 2 different Mac I have at home and both have the same error.

arnonrdp commented 3 weeks ago

UPDATE:

Bo98 commented 3 weeks ago

Looks like a wider outage in Brazil: https://github.com/orgs/community/discussions/143145. Someone from GitHub is in that thread asking for information to help debug.