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

brew upgrade calibre hangs indefinitely #185761

Closed
6 tasks done
AleMaMi opened this issue Sep 17, 2024 · 2 comments
Closed
6 tasks done

brew upgrade calibre hangs indefinitely #185761

AleMaMi opened this issue Sep 17, 2024 · 2 comments

Comments

@AleMaMi
Copy link

AleMaMi commented Sep 17, 2024

Verification

Description of issue

When run brew upgrade calibre, it doesn't start downloading and hangs forever. If run with --debug, it is possible to see curl command at last line and no other activity.

If I try to directly download calibre package from URL, it is possible to download it without any issues.

Command that failed

brew upgrade calibre

Output of command with --verbose --debug

/opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading calibre
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading calibre
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading calibre
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading calibre
==> Upgrading 1 outdated package:
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromPathLoader): loading /opt/homebrew/Caskroom/calibre/.metadata/7.17.0/20240826052058.689/Casks/calibre.json
calibre 7.17.0 -> 7.18.0
==> Started upgrade process for Cask calibre
==> Upgrading calibre
==> Printing caveats
==> Cask::Installer#fetch
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.3.23\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.0\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://download.calibre-ebook.com/7.18.0/calibre-7.18.0.dmg
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.3.23\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.0\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://download.calibre-ebook.com/7.18.0/calibre-7.18.0.dmg

Output of brew doctor and brew config

Your system is ready to brew.

HOMEBREW_VERSION: 4.3.23
ORIGIN: https://github.com/Homebrew/brew
HEAD: 42c11a4dedf352229271593de831161071603c66
Last commit: 17 hours ago
Core tap JSON: 17 Sep 19:55 UTC
Core cask tap JSON: 17 Sep 19:55 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0-arm64
CLT: 16.0.0.0.1.1724870825
Xcode: 16.0
Rosetta 2: false

Output of brew tap

homebrew/bundle
railwaycat/emacsmacport
yonaskolb/xcodegen
@aphedges
Copy link
Contributor

I was encountering this same problem, and it fortunately didn't hang forever. However, brew upgrade --verbose --debug calibre was stuck for ~15 minutes at the same curl command you reported. After the command finished, Calibre was downloaded and installed successfully.

I don't know what the solution is here. There might be something wrong with Calibre's distribution infrastructure that is causing the hang, or it might be a bug in Homebrew. At the very least, I feel that brew shouldn't hang for 15 minutes without any indication of work being done.

@bevanjkay
Copy link
Member

This is an issue with Calibre's download servers, they can be patchy at times.
Downloading from the GitHub location is significantly faster. However, we can't use this for Homebrew, as old versions are removed when a new version becomes available.

See #183664 for information.

@bevanjkay bevanjkay closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants