cloudfoundry / ruby-buildpack

Cloud Foundry buildpack for Ruby, Sinatra and Rails
http://docs.cloudfoundry.org/buildpacks/
Apache License 2.0
65 stars 160 forks source link

Could not find rake-13.0.1 in any of the sources (Bundler::GemNotFound) #120

Closed vanhob closed 4 years ago

vanhob commented 4 years ago

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

{ "name": "", "build": "", "support": "https://support.run.pivotal.io", "version": 0, "description": "Cloud Foundry sponsored by Pivotal", "authorization_endpoint": "https://login.run.pivotal.io", "token_endpoint": "https://uaa.run.pivotal.io", "min_cli_version": "6.22.0", "min_recommended_cli_version": "latest", "app_ssh_endpoint": "ssh.run.pivotal.io:2222", "app_ssh_host_key_fingerprint": "e7:13:4e:32:ee:39:62:df:54:41:d7:f7:8b:b2:a7:6b", "app_ssh_oauth_client": "ssh-proxy", "doppler_logging_endpoint": "wss://doppler.run.pivotal.io:443", "api_version": "2.144.0", "osbapi_version": "2.15", "routing_endpoint": "https://api.run.pivotal.io/routing", "user": "ee378473-fb06-474e-81e5-4770993bab84" } cf version 6.36.2+18ceab10f.2018-05-16

What version of the buildpack you are using? Buildpack version 1.8.5

If you were attempting to accomplish a task, what was it you were attempting to do? When pushing an app with cf push

What did you expect to happen? Succesfull push

What was the actual behavior? Although bundler seems to have fetched and installed rake v13.0.1, i get an error later in the process: Could not find rake-13.0.1 in any of the sources (Bundler::GemNotFound)

This is similar to the issue reported in #93

Here is the log output: `/bin/bash /Users/bart/RubymineProjects/myFaro_development/bin/cf_push_staging.sh API endpoint: https://api.run.pivotal.io Authenticating... OK

Targeted org RailsEnvironment

Targeted space myFaroStaging

API endpoint: https://api.run.pivotal.io (API version: 2.144.0) User: bart@myfaro.be Org: RailsEnvironment Space: myFaroStaging Pushing from manifest to org RailsEnvironment / space myFaroStaging as bart@myfaro.be... Using manifest file ./manifest_staging.yml Getting app info... Updating app with these attributes... name: myFaro path: /Users/bart/RubymineProjects/myFaro_development disk quota: 1.5G health check http endpoint: /okcomputer/all health check timeout: 180 health check type: http instances: 1 memory: 3.5G stack: cflinuxfs3 services: MongoDBStaging RedisStaging autoscale-myFaroStaging env: DEVISE_TIME_OUT LICENSES_ENFORCED MONGOID_LOG_LEVEL QUOTAGUARDSTATIC_URL RAILS_ENV RAILS_LOG_LEVEL RAILS_MAX_THREADS RESET_PERIOD WEB_CONCURRENCY routes: myfarostaging.cfapps.io

Updating app myFaro... Mapping routes... Comparing local files to remote cache... Packaging files to upload... Uploading files... 2.62 MiB / 2.62 MiB 100.00% 5s

Waiting for API to complete processing files...

Staging app and tracing logs... Downloading web_config_transform_buildpack... Downloading nodejs_buildpack... Downloading python_buildpack... Downloading go_buildpack... Downloading php_buildpack... Downloaded web_config_transform_buildpack Downloading binary_buildpack... Downloaded python_buildpack Downloading dotnet_core_buildpack_beta... Downloaded nodejs_buildpack Downloading ruby_buildpack... Downloaded dotnet_core_buildpack_beta Downloading staticfile_buildpack... Downloaded binary_buildpack Downloading java_buildpack... Downloaded go_buildpack Downloading dotnet_core_buildpack... Downloaded java_buildpack Downloaded ruby_buildpack Downloaded dotnet_core_buildpack Downloaded staticfile_buildpack (7.7M) Downloaded php_buildpack (662.3M) Cell 732975b5-a95c-4e37-b595-a0a3c3a9e2ea creating container for instance 92b320e9-93e8-499f-a41b-742c972ba7e4 Cell 732975b5-a95c-4e37-b595-a0a3c3a9e2ea successfully created container for instance 92b320e9-93e8-499f-a41b-742c972ba7e4 Downloading app package... Downloading build artifacts cache... Downloaded app package (23.8M) Downloading build artifacts cache failed -----> Ruby Buildpack version 1.8.5 -----> Supplying Ruby -----> Installing bundler 1.17.3 Copy [/tmp/buildpacks/fd81baba27570fee60c5b2d2e842a56d/dependencies/1b585b3a526373724c47492bbb271365/bundler-1.17.3-any-stack-b7502506.tgz] -----> Installing bundler 2.1.2 Copy [/tmp/buildpacks/fd81baba27570fee60c5b2d2e842a56d/dependencies/322feee96312cc5d1444e3b76ddc53db/bundler-2.1.2-any-stack-61a9123c.tgz] -----> Installing ruby 2.5.7 Copy [/tmp/buildpacks/fd81baba27570fee60c5b2d2e842a56d/dependencies/2449402ab4f2d7c6a7dda413e88fe8f0/ruby-2.5.7-linux-x64-cflinuxfs3-01b7d7a8.tgz] -----> Update rubygems from 2.7.6.2 to 3.0.6 -----> Installing rubygems 3.0.6 Copy [/tmp/buildpacks/fd81baba27570fee60c5b2d2e842a56d/dependencies/a2296aecba7450cbb278eb7a3941b70f/rubygems-3.0.6-any-stack-1a97a90e.tgz] -----> Installing node 10.18.0 Copy [/tmp/buildpacks/fd81baba27570fee60c5b2d2e842a56d/dependencies/c62c62ca57efb809849924bbcc37c35b/node-10.18.0-linux-x64-cflinuxfs3-7242c51f.tgz] -----> Installing dependencies using bundler 2.1.2 Running: bundle install --without development:test --jobs=4 --retry=4 --path /tmp/contents480829056/deps/0/vendor_bundle --binstubs /tmp/contents480829056/deps/0/binstubs --deployment [DEPRECATED] The --deployment flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set deployment 'true', and stop using this flag [DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path '/tmp/contents480829056/deps/0/vendor_bundle', and stop using this flag [DEPRECATED] The --without flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set without 'development:test', and stop using this flag [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs Fetching gem metadata from https://rubygems.org/........ Fetching https://github.com/winston/google_visualr Fetching rake 13.0.1 Installing rake 13.0.1 Fetching concurrent-ruby 1.1.5 Fetching minitest 5.13.0 Fetching thread_safe 0.3.6 Installing minitest 5.13.0 Installing thread_safe 0.3.6 Installing concurrent-ruby 1.1.5 Fetching builder 3.2.4 Installing builder 3.2.4 Fetching erubi 1.9.0 Installing erubi 1.9.0 Fetching crass 1.0.5 Fetching mini_portile2 2.4.0 Installing mini_portile2 2.4.0 Installing crass 1.0.5 Fetching rack 2.0.8 Installing rack 2.0.8 Fetching nio4r 2.5.2 Installing nio4r 2.5.2 with native extensions Fetching websocket-extensions 0.1.4 Installing websocket-extensions 0.1.4 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching jsonapi-renderer 0.2.2 Installing jsonapi-renderer 0.2.2 Fetching arel 9.0.0 Installing arel 9.0.0 Fetching mimemagic 0.3.3 Installing mimemagic 0.3.3 Fetching public_suffix 4.0.2 Installing public_suffix 4.0.2 Using bundler 2.1.2 Fetching method_source 0.9.2 Installing method_source 0.9.2 Fetching thor 1.0.1 Fetching encryptor 3.0.0 Installing encryptor 3.0.0 Installing thor 1.0.1 Fetching execjs 2.7.0 Fetching bcrypt 3.1.13 Installing execjs 2.7.0 Installing bcrypt 3.1.13 with native extensions Fetching msgpack 1.3.1 Installing msgpack 1.3.1 with native extensions Fetching ffi 1.11.3 Installing ffi 1.11.3 with native extensions Fetching bootstrap-select-rails 1.13.8 Installing bootstrap-select-rails 1.13.8 Fetching bootstrap_form 2.7.0 Installing bootstrap_form 2.7.0 Fetching bson 4.7.0 Installing bson 4.7.0 with native extensions Fetching bson_ext 1.5.1 Installing bson_ext 1.5.1 with native extensions Fetching cancancan 3.0.1 Installing cancancan 3.0.1 Fetching mini_magick 4.9.5 Installing mini_magick 4.9.5 Fetching carrierwave-i18n 0.2.0 Installing carrierwave-i18n 0.2.0 Fetching mime-types-data 3.2019.1009 Installing mime-types-data 3.2019.1009 Fetching chunky_png 1.3.11 Installing chunky_png 1.3.11 Fetching coffee-script-source 1.12.2 Installing coffee-script-source 1.12.2 Fetching connection_pool 2.2.2 Installing connection_pool 2.2.2 Fetching daemons 1.3.1 Installing daemons 1.3.1 Fetching orm_adapter 0.5.0 Installing orm_adapter 0.5.0 Fetching devise-bootstrap-views 1.1.0 Installing devise-bootstrap-views 1.1.0 Fetching rotp 2.1.2 Installing rotp 2.1.2 Fetching unf_ext 0.0.7.6 Installing unf_ext 0.0.7.6 with native extensions Fetching exonio 0.5.3 Installing exonio 0.5.3 Fetching raabro 1.1.6 Installing raabro 1.1.6 Fetching geocoder 1.5.2 Installing geocoder 1.5.2 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Using google_visualr 2.5.1 from https://github.com/winston/google_visualr (at master@17b9711) Fetching http-accept 1.7.0 Installing socksify 1.7.1 Installing http-accept 1.7.0 Fetching socksify 1.7.1 Fetching interactor 3.1.2 Installing interactor 3.1.2 Fetching json 2.3.0 Installing json 2.3.0 with native extensions Fetching jwt 2.2.1 Fetching materialize-form 1.0.8 Installing jwt 2.2.1 Installing materialize-form 1.0.8 Fetching rb-fsevent 0.10.3 Installing rb-fsevent 0.10.3 Fetching mollie-api-ruby 4.6.2 Installing mollie-api-ruby 4.6.2 Fetching nested_form 0.3.2 Installing nested_form 0.3.2 Fetching netrc 0.11.0 Fetching nori 2.6.0 Installing netrc 0.11.0 Installing nori 2.6.0 Fetching okcomputer 1.18.0 Fetching tilt 2.0.10 Installing okcomputer 1.18.0 Installing tilt 2.0.10 Fetching pdfkit 0.8.4.1 Installing pdfkit 0.8.4.1 Fetching popper_js 1.12.9 Installing popper_js 1.12.9 Fetching rails_serve_static_assets 0.0.5 Fetching rails_stdout_logging 0.0.5 Installing rails_stdout_logging 0.0.5 Installing rails_serve_static_assets 0.0.5 Fetching redis 4.1.3 Installing redis 4.1.3 Fetching rubyzip 1.3.0 Fetching rqrcode_core 0.1.1 Installing rqrcode_core 0.1.1 Installing rubyzip 1.3.0 Fetching smarter_csv 1.2.6 Installing smarter_csv 1.2.6 Fetching tzinfo 1.2.6 Fetching wkhtmltopdf-heroku 2.12.5.0 Installing tzinfo 1.2.6 Fetching gyoku 1.3.1 Installing gyoku 1.3.1 Fetching nokogiri 1.10.7 Installing nokogiri 1.10.7 with native extensions Fetching i18n 1.7.0 Installing i18n 1.7.0 Fetching websocket-driver 0.7.1 Installing websocket-driver 0.7.1 with native extensions Installing wkhtmltopdf-heroku 2.12.5.0 Fetching mail 2.7.1 Installing mail 2.7.1 Fetching rack-test 1.1.0 Installing rack-test 1.1.0 Fetching sprockets 3.7.2 Installing sprockets 3.7.2 Fetching warden 1.2.8 Installing warden 1.2.8 Fetching rack-protection 2.0.8.1 Installing rack-protection 2.0.8.1 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching marcel 0.3.3 Installing marcel 0.3.3 Fetching attr_encrypted 3.1.0 Installing attr_encrypted 3.1.0 Fetching autoprefixer-rails 9.7.3 Installing autoprefixer-rails 9.7.3 Fetching uglifier 4.2.0 Installing uglifier 4.2.0 Fetching puma 4.3.1 Fetching bootsnap 1.4.5 Installing puma 4.3.1 with native extensions Installing bootsnap 1.4.5 with native extensions Fetching sassc 2.2.1 Installing sassc 2.2.1 with native extensions Fetching ruby-vips 2.0.16 Installing ruby-vips 2.0.16 Fetching rb-inotify 0.10.1 Installing rb-inotify 0.10.1 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching coffee-script 2.4.1 Installing coffee-script 2.4.1 Fetching mongo 2.11.2 Installing mongo 2.11.2 Fetching httpi 2.4.4 Installing httpi 2.4.4 Fetching unf 0.1.4 Installing unf 0.1.4 Fetching rails_12factor 0.0.3 Installing rails_12factor 0.0.3 Fetching rqrcode 1.1.2 Installing rqrcode 1.1.2 Fetching et-orbi 1.2.2 Installing et-orbi 1.2.2 Fetching activesupport 5.2.3 Installing activesupport 5.2.3 Fetching sidekiq 5.2.2 Installing sidekiq 5.2.2 Fetching down 5.0.1 Installing down 5.0.1 Fetching loofah 2.4.0 Installing loofah 2.4.0 Fetching akami 1.3.1 Installing akami 1.3.1 Fetching roo 2.8.2 Installing roo 2.8.2 Fetching image_processing 1.10.0 Installing image_processing 1.10.0 Fetching sass-listen 4.0.0 Installing sass-listen 4.0.0 Fetching httparty 0.17.3 Fetching wasabi 3.5.0 Installing httparty 0.17.3 Installing wasabi 3.5.0 Fetching domain_name 0.5.20190701 Installing domain_name 0.5.20190701 Fetching fugit 1.3.3 Installing fugit 1.3.3 Fetching rails-dom-testing 2.0.3 Fetching globalid 0.4.2 Installing rails-dom-testing 2.0.3 Installing globalid 0.4.2 Fetching activemodel 5.2.3 Fetching case_transform 0.2 Installing case_transform 0.2 Installing activemodel 5.2.3 Fetching jbuilder 2.9.1 Installing jbuilder 2.9.1 Fetching time_difference 0.7.0 Installing time_difference 0.7.0 Fetching rails-html-sanitizer 1.3.0 Fetching sass 3.7.4 Installing rails-html-sanitizer 1.3.0 Installing sass 3.7.4 Fetching google_custom_search_api 2.0.0 Installing google_custom_search_api 2.0.0 Fetching savon 2.12.0 Installing savon 2.12.0 Fetching http-cookie 1.0.3 Installing http-cookie 1.0.3 Fetching rufus-scheduler 3.6.0 Installing rufus-scheduler 3.6.0 Fetching activerecord 5.2.3 Fetching activejob 5.2.3 Installing activejob 5.2.3 Installing activerecord 5.2.3 Fetching carrierwave 2.0.2 Installing carrierwave 2.0.2 Fetching mongoid 6.4.4 Installing mongoid 6.4.4 Fetching actionview 5.2.3 Installing actionview 5.2.3 Fetching materialize-sass 0.99.0 Installing materialize-sass 0.99.0 Fetching rest-client 2.1.0 Installing rest-client 2.1.0 Fetching actionpack 5.2.3 Installing actionpack 5.2.3 Fetching actioncable 5.2.3 Installing actioncable 5.2.3 Fetching actionmailer 5.2.3 Installing actionmailer 5.2.3 Fetching active_model_serializers 0.10.10 Fetching activestorage 5.2.3 Installing active_model_serializers 0.10.10 Installing activestorage 5.2.3 Fetching railties 5.2.3 Fetching sprockets-rails 3.2.1 Installing sprockets-rails 3.2.1 Installing railties 5.2.3 Fetching mongo_session_store 3.2.0 Installing mongo_session_store 3.2.0 Fetching simple_form 5.0.1 Installing simple_form 5.0.1 Fetching mongoid-grid_fs 2.4.0 Installing mongoid-grid_fs 2.4.0 Fetching localized_fields 0.1.0 Fetching simple-form-datepicker 0.1.3 Installing localized_fields 0.1.0 Installing simple-form-datepicker 0.1.3 Fetching rails 5.2.3 Fetching bootstrap-datepicker-rails 1.8.0.1 Installing rails 5.2.3 Installing bootstrap-datepicker-rails 1.8.0.1 Fetching coffee-rails 5.0.0 Installing coffee-rails 5.0.0 Fetching responders 3.0.0 Installing responders 3.0.0 Fetching doorkeeper 4.4.3 Installing doorkeeper 4.4.3 Fetching jasny-bootstrap-rails 3.1.3 Installing jasny-bootstrap-rails 3.1.3 Fetching jquery-easing-rails 0.0.2 Installing jquery-easing-rails 0.0.2 Fetching jquery-rails 4.3.5 Installing jquery-rails 4.3.5 Fetching jquery-tablesorter 1.27.1 Installing jquery-tablesorter 1.27.1 Fetching jquery-ui-rails 6.0.1 Installing jquery-ui-rails 6.0.1 Fetching material_icons 2.2.1 Fetching momentjs-rails 2.20.1 Installing momentjs-rails 2.20.1 Installing material_icons 2.2.1 Fetching sass-rails 5.1.0 Installing sass-rails 5.1.0 Fetching rails-i18n 5.1.3 Installing rails-i18n 5.1.3 Fetching summernote-rails 0.8.12.0 Installing summernote-rails 0.8.12.0 Fetching wicked 1.3.4 Installing wicked 1.3.4 Fetching carrierwave-mongoid 1.3.0 Installing carrierwave-mongoid 1.3.0 Fetching animate-rails 1.0.10 Installing animate-rails 1.0.10 Fetching bootstrap-tooltip-rails 0.1 Fetching simple_calendar 2.3.0 Installing simple_calendar 2.3.0 Installing bootstrap-tooltip-rails 0.1 Fetching devise 4.7.1 Fetching doorkeeper-mongodb 4.2.0 Installing devise 4.7.1 Installing doorkeeper-mongodb 4.2.0 Fetching pdfjs_viewer-rails 0.3.1 Installing pdfjs_viewer-rails 0.3.1 Fetching rails_bootstrap_sortable 2.0.7 Installing rails_bootstrap_sortable 2.0.7 Fetching devise-i18n 1.9.0 Installing devise-i18n 1.9.0 Fetching devise-two-factor 3.1.0 Installing devise-two-factor 3.1.0 Fetching bootstrap-sass 3.4.1 Fetching font-awesome-sass 5.12.0 Fetching sassc-rails 2.1.2 Installing sassc-rails 2.1.2 Installing bootstrap-sass 3.4.1 Installing font-awesome-sass 5.12.0 Bundle complete! 94 Gemfile dependencies, 167 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into /tmp/contents480829056/deps/0/vendor_bundle Post-install message from i18n:

      HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
      But that may break your application.

      Please check your Rails app for 'config.i18n.fallbacks = true'.
      If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
      'config.i18n.fallbacks = [I18n.default_locale]'.
      If not, fallbacks will be broken in your app by I18n 1.1.x.

      For more info see:
      https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

      Post-install message from encryptor:

      Please be aware that Encryptor v2.0.0 had a major security bug when using AES-*-GCM algorithms.

      By default You will not be able to decrypt data that was previously encrypted using an AES-*-GCM algorithm.

      Please see the README and https://github.com/attr-encrypted/encryptor/pull/22 for more information.

      Post-install message from attr_encrypted:

      WARNING: Several insecure default options and features were deprecated in attr_encrypted v2.0.0.

      Additionally, there was a bug in Encryptor v2.0.0 that insecurely encrypted data when using an AES-*-GCM algorithm.

      This bug was fixed but introduced breaking changes between v2.x and v3.x.

      Please see the README for more information regarding upgrading to attr_encrypted v3.0.0.

      Post-install message from doorkeeper:

        WARNING: This is a security release that addresses token revocation not working for public apps (CVE-2018-1000211)

        There is no breaking change in this release, however to take advantage of the security fix you must:

          1. Run `rails generate doorkeeper:add_client_confidentiality` for the migration
          2. Review your OAuth apps and determine which ones exclusively use public grant flows (eg implicit)
          3. Update their `confidential` column to `false` for those public apps

        This is a backported security release.

        For more information:

          * https://github.com/doorkeeper-gem/doorkeeper/pull/1119
          * https://github.com/doorkeeper-gem/doorkeeper/issues/891

      Post-install message from httparty:
      When youHTTParyyumst pathrd!
      Poisallmsaefom sas:              Ruby Sashs reached end-of-life and should no longer be used.

      *ou use Sass as a com-lin recd using Darts, thw
        primarplemtion: https://sass-lang.com/install

      * If you us a pl for a Ruby web framework, wemmend using the
        sassc gem: https://github.com/sass/sassc-ruby#readme

      * For more detailsblog:
 https://sass-lang.com/blog/pos841

-----> Regenerating bundler binstubs... Cleaning up the bundler cache. -----> Creating runtime environment /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/spec_set.rb:86:in block in materialize': Could not find rake-13.0.1 in any of the sources (Bundler::GemNotFound) from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/spec_set.rb:80:inmap!' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/spec_set.rb:80:in materialize' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/definition.rb:170:inspecs' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/definition.rb:237:in specs_for' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/definition.rb:226:inrequested_specs' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/runtime.rb:101:in block in definition_method' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/runtime.rb:20:insetup' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler.rb:149:in setup' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/setup.rb:20:inblock in <top (required)>' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/ui/shell.rb:136:in with_level' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/ui/shell.rb:88:insilence' from /tmp/contents480829056/deps/0/bundler/gems/bundler-2.1.2/lib/bundler/setup.rb:20:in <top (required)>' from /tmp/contents480829056/deps/0/ruby/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from /tmp/contents480829056/deps/0/ruby/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require' ERROR Unable to write profile.d: Failed to run 'rake secret': exit status 1 Failed to compile droplet: Failed to run all supply scripts: exit status 15 Exit status 223 Cell 732975b5-a95c-4e37-b595-a0a3c3a9e2ea stopping instance 92b320e9-93e8-499f-a41b-742c972ba7e4 Cell 732975b5-a95c-4e37-b595-a0a3c3a9e2ea destroying container for instance 92b320e9-93e8-499f-a41b-742c972ba7e4 FAILED Error staging application: App staging failed in the buildpack compile phase

Process finished with exit code`

Please confirm where necessary:

cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/170523718

The labels on this github issue will be updated when the story is started.

vanhob commented 4 years ago

hi, when i rebuilt the gem set with bundler 1.17.3 i was able to push succesfully. I noticed the following in the log file:

with gemfile.lock created with bundler 2.1.2, you notice the [DEPRECATED MESSAGES] and ultimately the push fails

-----> Installing dependencies using bundler 2.1.2 Running: bundle install --without development:test --jobs=4 --retry=4 --path /tmp/contents480829056/deps/0/vendor_bundle --binstubs /tmp/contents480829056/deps/0/binstubs --deployment [DEPRECATED] The --deployment flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set deployment 'true', and stop using this flag [DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path '/tmp/contents480829056/deps/0/vendor_bundle', and stop using this flag [DEPRECATED] The --without flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set without 'development:test', and stop using this flag [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs Fetching gem metadata from https://rubygems.org/........ Fetching https://github.com/winston/google_visualr

with gemfile.lock created with bundler 1.17.3, it uses bundler 2.1.3, there are no [DEPRECATED] messages and the push succeeds

Installing dependencies using bundler 2.1.3 Running: bundle install --without development:test --jobs=4 --retry=4 --path /tmp/contents089134635/deps/0/vendor_bundle --binstubs /tmp/contents089134635/deps/0/binstubs --deployment /tmp/contents089134635/deps/0/bundler/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated Fetching gem metadata from https://rubygems.org/........ Fetching https://github.com/winston/google_visualr

ShadSterling commented 4 years ago

I'm seeing what looks like the same problem with ruby-buildpack 1.8.7 and bundler 2.1.4. @vanhob's workaround also works for me.

vanhob commented 4 years ago

Here is the output you requested:

cf curl /v2/info && cf version

{ "name": "", "build": "", "support": "https://support.run.pivotal.io", "version": 0, "description": "Cloud Foundry sponsored by Pivotal", "authorization_endpoint": "https://login.run.pivotal.io", "token_endpoint": "https://uaa.run.pivotal.io", "min_cli_version": "6.22.0", "min_recommended_cli_version": "latest", "app_ssh_endpoint": "ssh.run.pivotal.io:2222", "app_ssh_host_key_fingerprint": "e7:13:4e:32:ee:39:62:df:54:41:d7:f7:8b:b2:a7:6b", "app_ssh_oauth_client": "ssh-proxy", "doppler_logging_endpoint": "wss://doppler.run.pivotal.io:443", "api_version": "2.144.0", "osbapi_version": "2.15", "routing_endpoint": "https://api.run.pivotal.io/routing" } cf version 6.36.2+18ceab10f.2018-05-16

Met vriendelijke groeten,

Bart Vanhoutte

myFaro bvba Dennenlaan 7 B-3110 Rotselaar E-mail: info@myfaro.be Telefoon: 0495 590230 BTW: BE 0668666134 Bank: BE68 1030 4741 9934

On 3 Jan 2020, at 19:24, cf-gitbot notifications@github.com wrote:

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/170523718 https://www.pivotaltracker.com/story/show/170523718 The labels on this github issue will be updated when the story is started.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cloudfoundry/ruby-buildpack/issues/120?email_source=notifications&email_token=ABX5LVIIV4S5X4EGTE3C5WDQ357F5A5CNFSM4KCQMXJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIBYIRI#issuecomment-570655813, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABX5LVK76HNJJAKM2YHORKDQ357F5ANCNFSM4KCQMXJA.

ForestEckhardt commented 4 years ago

This appears to be a problem between bundler and rake, not a problem with the buildpack itself. I am going to close this issue but if you have any other comments feel free to reopen it.

tlwr commented 4 years ago

Hi @ForestEckhardt I think this issue should be re-opened and triaged.

The issue is caused change with bundler and rake, but changes to rubygems since 3.1 [citation needed] seem to have introduced this problem to anyone using the buildpack with bundler 2.

Installing, building, and running apps locally works fine with the versions of ruby supported by the buildpack, but the buildpack does not seem to work for many ruby applications using bundler 2, for any buildpack version after (but not including) 1.8.4.

Most of the pull requests that mention this issue that have been aggregated by GitHub contain the technical details associated with GOV.UK PaaS users attempting to use ruby_buildpack version 1.8.8.


https://github.com/cloudfoundry/ruby-buildpack/blob/8e11093c8e6740de65784371298ab6bb39b09774/src/ruby/supply/supply.go#L576

As per @vanhob's comment, the above should end up executing

bundle config set path {filepath.Join(s.Stager.DepDir(), "vendor_bundle")}
bundle config set bin {filepath.Join(s.Stager.DepDir(), "binstubs")}
bundle install ...

instead of using a single bundle install with deprecated arguments

cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/171364379

The labels on this github issue will be updated when the story is started.

tlwr commented 4 years ago

I think this can be closed as of https://github.com/cloudfoundry/ruby-buildpack/tree/v1.8.11

Thanks very much for fixing this!