We have our CI job running on buddybuild successfully for years. Today it failed suddenly with some errors like
==> Downloading https://homebrew.bintray.com/xcodegen-2.20.0.catalina.bottle.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://ghcr.io/v2/homebrew/core/xcodegen-2.20.0.catalina.bottle.tar.gz
==> Downloading from https://github.com/-/v2/packages/container/package/homebrew%2Fcore%2Fxcodegen-2.20.0.catalina.bottle.tar.gz
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "xcodegen"
Download failed: https://ghcr.io/v2/homebrew/core/xcodegen-2.20.0.catalina.bottle.tar.gz
(We use xcodegen to generate the our iOS project/workspace.)
Searching online we found a similar post https://travis-ci.community/t/cannot-install-anything-from-homebrew/11445 but were not sure how to update homebrew on buddybuild. Any ideas will be highly appreciated.
Related
For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
After some investigations, I concluded that brew has new style of .rb files and old versions may not be compatible. To fix it, I run brew style --fix icu4c.rb which seemed to fix the style issues. However, now, I got the following error:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
I saw a number of places that this might be due to curl or xcode command line tools. I updated both of them but could not proceed further. Any help would be greatly appreciated.
Being in China means sometimes you just can't upgrade brew packages via brew upgrade it would run into error as such:
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku"
Download failed: https://cli-assets.heroku.com/heroku-v7.18.10/heroku-v7.18.10.tar.xz
I used to download these failed packages to ~/Library/Caches/Homebrew and then run the command again but this seems to work no longer after brew changed its cache structure for the better or worse (worse for me apparently).
What can I do now if I want to keep using brew to upgrade all my packages?
After I tried your method, this is the error that pops up:
==> Upgrading heroku/brew/heroku
==> Installing dependencies for heroku/brew/heroku: heroku/brew/heroku-node
==> Installing heroku/brew/heroku dependency: heroku/brew/heroku-node
==> Downloading https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku-node"
Download failed: https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
Also, say if I download go from https://dl.google.com/go/go1.11.4.src.tar.gz and rename it to go--git, which is the output of brew --cache go, but it still failed the installation.
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "go--gotools"
Failure while executing; `git clone --branch release-branch.go1.11 https://go.googlesource.com/tools.git /Users/aero/Library/Caches/Homebrew/go--gotools--git` exited with 128. Here's the output:
Cloning into '/Users/aero/Library/Caches/Homebrew/go--gotools--git'...
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
If I run brew --cache go--gotools, it will say Error: No available formula with the name "go--gotools"
If, for example, you want to upgrade Gradle, you can find the location and the name of the cached file expected by Homebrew with:
brew --cache gradle
You will obtain:
/Users/myself/Library/Caches/Homebrew/downloads/ae76f5a0a19f5c141d5ee602a2ecb45011393fbba2206f3a960599d7bba92b9b--gradle-5.0-all.zip
Extract the url of the zip file from:
brew edit gradle
Download the file and rename it as in the output of brew --cache
You can then upgrade Gradle even offline with:
brew upgrade gradle
Depending on formulas, you will have to manually install all their dependencies.
If you use the -v option of brew upgrade or brew install or whichever command you used that needs to download the file, it will give you the output file where the downloaded file would have gone. You can then download your file manually to this place.
I'm trying to download and install phalconphp using Homebrew on my Mac (Sierra). I’m getting this error:
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Things I did:
Reinstalled Homebrew
brew update
Tried to download portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz (result: This site can’t be reached)
Any idea what is the problem? :/
I am having trouble installing Grails via SDK.I installed SDK via the instruction on https://grails.org/download.html#sdkman and sdk installed correctly
$ sdk version
SDKMAN 5.1.4+78`
But when I executed
$ sdk install grails
I am getting output in the terminal
$ sdk install grails
Downloading: grails 3.2.0.RC2
In progress...
######################################################################## 100.0%
curl: (56) SSLRead() return error -36
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip or
/Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip.zip, and cannot find /Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.
I do restarting the terminal and installed again but same issue again.
What am I missing in installation? is there other dependency is needed ? Any help is much appreciated!
I just downloaded the latest version of the dart editor and did the following:
1) Created a new web application. When I try to run, I get the following error:
> Failed to load resource: the server responded with a status of 404
> (Not Found)
> http://127.0.0.1:3030/C:/DartApps/HelloWeb/web/packages/browser/dart.js
2) After some research, I tried the following - thinking I may need some dependencies - Pub install. Now I get the following error:
> Pub install failed, [1] Resolving dependencies... Got socket error
> trying to find package "browser" at https://pub.dartlang.org. OS
> Error: Peer's Certificate issuer is not recognized., errno = -8179
Any ideas what I can do to get past this issue? I'm not getting very far.
Thanks,
Shon
Try running the pub update command first. That should update your dependencies.
http://pub.dartlang.org/doc/pub-update.html