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

Securerandom issue running bundler with rbx 2.2.3 #206

Closed
alex88 opened this issue Jan 17, 2014 · 13 comments
Closed

Securerandom issue running bundler with rbx 2.2.3 #206

alex88 opened this issue Jan 17, 2014 · 13 comments

Comments

@alex88
Copy link

alex88 commented Jan 17, 2014

I'm having issues deploying an app using rubinius 2.2.3, using latest buildpack I get:

-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-2.1.0-rbx-2.2.3
-----> Installing dependencies using Bundler version 1.5.1
       Ruby version change detected. Clearing bundler cache.
       Old: rubinius 2.2.1 (2.1.0 3ed43137 2013-11-17 JI) [x86_64-linux-gnu]
       New: rubinius 2.2.3 (2.1.0 4792e746 2013-12-29 JI) [x86_64-linux-gnu]
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       An exception occurred running vendor/bundle/rbx/2.1/bin/bundle:
       no such file to load -- securerandom (LoadError)
       Backtrace:
              Rubinius::CodeLoader#load_error at kernel/common/code_loader.rb:440
         Rubinius::CodeLoader#resolve_require_path at kernel/common/code_loader.rb:423
          { } in Rubinius::CodeLoader#require at kernel/common/code_loader.rb:103
                         Rubinius.synchronize at kernel/bootstrap/rubinius.rb:137
                 Rubinius::CodeLoader#require at kernel/common/code_loader.rb:102
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:237
         Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:705
       Kernel(Object)#require at vendor/ruby-2.1.0-rbx-2.2.3/library
       /rubygems/core_ext/kernel_require.rb:55
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/fetcher.rb:2
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
                             Autoload#resolve at kernel/common/autoload.rb:55
       Bundler::CLI#install at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:249
       Thor::Command#run at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /command.rb:27
       Thor::Invocation(Bundler::CLI)#invoke_command at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /vendor/thor/invocation.rb:120
       Thor.dispatch at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor
       /thor.rb:363
       Thor::Base::ClassMethods(Class)#start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /base.rb:438
       Bundler::CLI.start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:10
       { } in Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
       Bundler.with_friendly_errors at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /friendly_errors.rb:5
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
                          Kernel(Object)#load at kernel/common/kernel.rb:447
       Object#__script__ at vendor/bundle/rbx/2.1/bin/bundle:23
             Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
             Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:201
                      Rubinius::Loader#script at kernel/loader.rb:649
                        Rubinius::Loader#main at kernel/loader.rb:831
       Bundler Output: An exception occurred running vendor/bundle/rbx/2.1/bin/bundle:

       no such file to load -- securerandom (LoadError)

       Backtrace:

              Rubinius::CodeLoader#load_error at kernel/common/code_loader.rb:440
         Rubinius::CodeLoader#resolve_require_path at kernel/common/code_loader.rb:423
          { } in Rubinius::CodeLoader#require at kernel/common/code_loader.rb:103
                         Rubinius.synchronize at kernel/bootstrap/rubinius.rb:137
                 Rubinius::CodeLoader#require at kernel/common/code_loader.rb:102
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:237
         Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:705
       Kernel(Object)#require at vendor/ruby-2.1.0-rbx-2.2.3/library
       /rubygems/core_ext/kernel_require.rb:55
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/fetcher.rb:2
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
                             Autoload#resolve at kernel/common/autoload.rb:55
       Bundler::CLI#install at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:249
       Thor::Command#run at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /command.rb:27
       Thor::Invocation(Bundler::CLI)#invoke_command at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /vendor/thor/invocation.rb:120
       Thor.dispatch at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor
       /thor.rb:363
       Thor::Base::ClassMethods(Class)#start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /base.rb:438
       Bundler::CLI.start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:10
       { } in Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
       Bundler.with_friendly_errors at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /friendly_errors.rb:5
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
                          Kernel(Object)#load at kernel/common/kernel.rb:447
       Object#__script__ at vendor/bundle/rbx/2.1/bin/bundle:23
             Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
             Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:201
                      Rubinius::Loader#script at kernel/loader.rb:649
                        Rubinius::Loader#main at kernel/loader.rb:831

I've rubysl in the gemfile but of course it's not there yet.

PS: Using older v86 so bundler 1.3.2 it works fine, might be useful to preinstall rubysl-securerandom in case platform is rubinius?

@jeremyvdw
Copy link

As a temporary fix, you can bypass this issue by using an older version of the buildpack

heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-ruby.git#v84 --app YOURAPP

@alex88
Copy link
Author

alex88 commented Jan 17, 2014

I'm already using that, v86 works fine, seems due bundler version which after 1.3.2 got the securerandom requirement inside lib/bundler/fetcher.rb

@schneems
Copy link
Contributor

Can you open up a support ticket for this issue?—
Sent from Mailbox for iPhone

On Fri, Jan 17, 2014 at 8:13 AM, Alessandro Tagliapietra
notifications@github.com wrote:

I'm having issues deploying an app using rubinius 2.2.3, using latest buildpack I get:

-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-2.1.0-rbx-2.2.3
-----> Installing dependencies using Bundler version 1.5.1
       Ruby version change detected. Clearing bundler cache.
       Old: rubinius 2.2.1 (2.1.0 3ed43137 2013-11-17 JI) [x86_64-linux-gnu]
       New: rubinius 2.2.3 (2.1.0 4792e746 2013-12-29 JI) [x86_64-linux-gnu]
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       An exception occurred running vendor/bundle/rbx/2.1/bin/bundle:
       no such file to load -- securerandom (LoadError)
       Backtrace:
              Rubinius::CodeLoader#load_error at kernel/common/code_loader.rb:440
         Rubinius::CodeLoader#resolve_require_path at kernel/common/code_loader.rb:423
          { } in Rubinius::CodeLoader#require at kernel/common/code_loader.rb:103
                         Rubinius.synchronize at kernel/bootstrap/rubinius.rb:137
                 Rubinius::CodeLoader#require at kernel/common/code_loader.rb:102
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:237
         Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:705
       Kernel(Object)#require at vendor/ruby-2.1.0-rbx-2.2.3/library
       /rubygems/core_ext/kernel_require.rb:55
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/fetcher.rb:2
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
                             Autoload#resolve at kernel/common/autoload.rb:55
       Bundler::CLI#install at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:249
       Thor::Command#run at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /command.rb:27
       Thor::Invocation(Bundler::CLI)#invoke_command at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /vendor/thor/invocation.rb:120
       Thor.dispatch at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor
       /thor.rb:363
       Thor::Base::ClassMethods(Class)#start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /base.rb:438
       Bundler::CLI.start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:10
       { } in Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
       Bundler.with_friendly_errors at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /friendly_errors.rb:5
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
                          Kernel(Object)#load at kernel/common/kernel.rb:447
       Object#__script__ at vendor/bundle/rbx/2.1/bin/bundle:23
             Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
             Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:201
                      Rubinius::Loader#script at kernel/loader.rb:649
                        Rubinius::Loader#main at kernel/loader.rb:831
       Bundler Output: An exception occurred running vendor/bundle/rbx/2.1/bin/bundle:
       no such file to load -- securerandom (LoadError)
       Backtrace:
              Rubinius::CodeLoader#load_error at kernel/common/code_loader.rb:440
         Rubinius::CodeLoader#resolve_require_path at kernel/common/code_loader.rb:423
          { } in Rubinius::CodeLoader#require at kernel/common/code_loader.rb:103
                         Rubinius.synchronize at kernel/bootstrap/rubinius.rb:137
                 Rubinius::CodeLoader#require at kernel/common/code_loader.rb:102
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:237
         Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:705
       Kernel(Object)#require at vendor/ruby-2.1.0-rbx-2.2.3/library
       /rubygems/core_ext/kernel_require.rb:55
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/fetcher.rb:2
                 Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
                             Autoload#resolve at kernel/common/autoload.rb:55
       Bundler::CLI#install at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:249
       Thor::Command#run at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /command.rb:27
       Thor::Invocation(Bundler::CLI)#invoke_command at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /vendor/thor/invocation.rb:120
       Thor.dispatch at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor
       /thor.rb:363
       Thor::Base::ClassMethods(Class)#start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/vendor/thor
       /base.rb:438
       Bundler::CLI.start at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler/cli.rb:10
       { } in Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
       Bundler.with_friendly_errors at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/lib/bundler
       /friendly_errors.rb:5
       Object#__script__ at vendor/bundle/rbx/2.1/gems
       /bundler-1.5.1/bin/bundle:22
                          Kernel(Object)#load at kernel/common/kernel.rb:447
       Object#__script__ at vendor/bundle/rbx/2.1/bin/bundle:23
             Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
             Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:201
                      Rubinius::Loader#script at kernel/loader.rb:649
                        Rubinius::Loader#main at kernel/loader.rb:831

I've rubysl in the gemfile but of course it's not there yet.

Reply to this email directly or view it on GitHub:
#206

@alex88
Copy link
Author

alex88 commented Jan 20, 2014

@schneems done that!

@inspire22
Copy link

Any workaround? I'm trying to experiment with rbx on my rails app deployed with bundler, but don't know what to do now that I've hit this bug...

@tyler-boyd
Copy link

@inspire22 I'm hitting the error as well, on a native rbx install on ElementaryOS. I'll let you know if I find a solution.

@inspire22
Copy link

@Mavvie I should have read better, this solves it: "gem install rubysl-securerandom"

@tyler-boyd
Copy link

Yes. It turns out I was having problems because my internet was so slow
requests didn't work properly.

I recommend installing the entire ruby standard lib (gem install rubysl). It'd be nice if the rbx installation docs made this more
clear, but it wasn't too hard to find.

On Wed, Jan 22, 2014 at 8:46 PM, Kevin Watt notifications@github.com
wrote:

@Mavvie I should have read better, this solves it: "gem install
rubysl-securerandom"


Reply to this email directly or view it on GitHub.

@forrest
Copy link

forrest commented Jan 29, 2014

+1 for solving this issue.

@lucasmartins
Copy link

+1, @jeremyvdw's tip saved my ass.

@nathany
Copy link

nathany commented Jan 29, 2014

It looks like SecureRandom was added to Bundler here rubygems/bundler@ea44440

@alex88
Copy link
Author

alex88 commented Jan 29, 2014

Yup, one of the first commits after the 1.3.2 release

@alex88
Copy link
Author

alex88 commented Jan 31, 2014

Heroku support told me that brixen will release a new rbx version tomorrow night to fix this issue.

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

8 participants