RabbitMQ Smoke test errand fails with locked Ruby Buildpack
search cancel

RabbitMQ Smoke test errand fails with locked Ruby Buildpack

book

Article ID: 293258

calendar_today

Updated On:

Products

VMware RabbitMQ

Issue/Introduction

RabbitMQ Smoke test errand fails with the following error
 [32m[2022-11-01 17:30:11.20 (UTC)]> cf start rmq-smoke-tests-ruby [0m Starting app rmq-smoke-tests-ruby in org system / space rmq-smoke-tests-1-SPACE-809f0baa18361210 as tile_installer... Staging app and tracing logs... Downloading ruby_buildpack... Downloaded ruby_buildpack Cell 0c20a1d9-3855-4d92-a8e1-8777e00abcf2 creating container for instance 50988fc7-f607-4007-b272-f5be4d2aa3d0 Cell 0c20a1d9-3855-4d92-a8e1-8777e00abcf2 successfully created container for instance 50988fc7-f607-4007-b272-f5be4d2aa3d0 Downloading app package... Downloaded app package (3.2M) -----> Ruby Buildpack version 1.8.39 Errand 'smoke-tests' completed with error (exit code 1) Exit code 1 -----> Supplying Ruby -----> Installing bundler 2.2.17 Copy [/tmp/buildpacks/b436a08968076a5b37784b5b9c0600e2/dependencies/8a698842dbc3aaf16385a5f5d669e576/bundler_2.2.17_linux_noarch_any-stack_9ed25e04.tgz] -----> Installing ruby 2.7.3 Copy [/tmp/buildpacks/b436a08968076a5b37784b5b9c0600e2/dependencies/d9ad1811e4f2133ce30ef11523584d78/ruby_2.7.3_linux_x64_cflinuxfs3_daf118b9.tgz] -----> Update rubygems from 3.1.6 to 3.2.17 -----> Installing rubygems 3.2.17 Copy [/tmp/buildpacks/b436a08968076a5b37784b5b9c0600e2/dependencies/590e1794ef765f808e33f9d39e2d4dce/rubygems_3.2.17_linux_noarch_any-stack_8c2e6667.tgz] -----> Installing dependencies using bundler 2.2.17 Running: bundle install --jobs=4 --retry=4 --local Warning: the running version of Bundler (2.2.17) is older than the version that created the lockfile (2.3.21). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.3.21`. Installing thin 1.8.1 with native extensions Error staging application: BuildpackCompileFailed - App staging failed in the buildpack compile phase FAILED Retried: 0 out of 5 [32m[2022-11-01 17:30:50.41 (UTC)]> cf start rmq-smoke-tests-ruby [0m Starting app rmq-smoke-tests-ruby in org system / space rmq-smoke-tests-1-SPACE-809f0baa18361210 as tile_installer... Staging app and tracing logs... Failed to compile droplet: Failed to run all supply scripts: exit status 15 Exit status 223


Environment

Product Version: Other

Resolution

The smoke test creates a new service instance and binds a sample ruby app to the service instance to verify the deployment. The error ' Warning: the running version of Bundler (2.2.17) is older than the version that created the lockfile (2.3.21). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.3.21`’ is an indication that the buildpack version currently available in the platform is not the expected version and has been locked. Run the command cf buildpacks to verify this.

To workaround this issue, unlock and update the buildpack using the --unlock flag. Refer to https://cli.cloudfoundry.org/en-US/v6/update-buildpack.html for instructions.

More information on why buildpacks are locked is described in the documentation linked here -https://docs.cloudfoundry.org/adminguide/buildpacks.html#lock.