When trying to run the
push-usage-service errand in Tanzu Application Service (TAS) for VMs or any other apps that use Ruby Buildpack, it fails with the following error message:
Error:
-----> Installing dependencies using bundler 1.17.3
Running: bundle install --jobs=4 --retry=4
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/5): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (3/5): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (4/5): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (5/5): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Could not fetch specs from https://rubygems.org/
[31;1m**ERROR**[0m Unable to install gems: exit status 17
Failed to compile droplet: Failed to run all supply scripts: exit status 15
Exit status 223
...
Error staging application: App staging failed in the buildpack compile phase
FAILED
Please run
cf buildpacks and verify which Ruby Buildpack version is being used. There is a bug in Ruby Buildpack 1.8.11 where the Buildpack does not work in air gapped environments. This was an unintentional change and none of the TAS for VMs releases ship with Ruby Buildpack 1.8.11.