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

RubyGems upgrade to 2.0.2 leads to SecureRandom LoadError #572

Closed
haines opened this issue Mar 10, 2013 · 13 comments
Closed

RubyGems upgrade to 2.0.2 leads to SecureRandom LoadError #572

haines opened this issue Mar 10, 2013 · 13 comments

Comments

@haines
Copy link
Contributor

haines commented Mar 10, 2013

Hey, not sure if this is a JRuby issue or a Travis issue, but our builds have started failing since they updated to JRuby 1.7.3.

This build on 1.7.2 passes; this identical one on 1.7.3 fails with a LoadError:

LoadError: no such file to load -- securerandom
require at org/jruby/RubyKernel.java:1027
(root) at /home/travis/.rvm/gems/jruby-1.7.3-d19/gems/activesupport-3.2.12/lib/active_support.rb:24
require at org/jruby/RubyKernel.java:1027
(root) at /home/travis/.rvm/gems/jruby-1.7.3-d19/gems/activesupport-3.2.12/lib/active_support/ruby/shim.rb:1
require at org/jruby/RubyKernel.java:1027
(root) at /home/travis/.rvm/gems/jruby-1.7.3-d19/gems/activesupport-3.2.12/lib/active_support/ruby/shim.rb:11
require at org/jruby/RubyKernel.java:1027
(root) at /home/travis/.rvm/gems/jruby-1.7.3-d19/gems/actionpack-3.2.12/lib/action_view.rb:1
require at org/jruby/RubyKernel.java:1027
(root) at /home/travis/.rvm/gems/jruby-1.7.3-d19/gems/actionpack-3.2.12/lib/action_view.rb:24
require at org/jruby/RubyKernel.java:1027
(root) at /home/travis/build/drapergem/draper/lib/draper.rb:1
load at org/jruby/RubyKernel.java:1046
(root) at /home/travis/build/drapergem/draper/lib/draper.rb:1
each at org/jruby/RubyArray.java:1613
(root) at /home/travis/build/drapergem/draper/spec/spec_helper.rb:1
(root) at /home/travis/build/drapergem/draper/spec/spec_helper.rb:2
(root) at /home/travis/build/drapergem/draper/spec/draper/collection_decorator_spec.rb:1
(root) at /home/travis/build/drapergem/draper/spec/draper/collection_decorator_spec.rb:1

Any ideas? I'm afraid I'm away from my dev machine so I can't try to reproduce locally, but it doesn't seem to be unique to us (e.g. here).

@steveklabnik
Copy link

Yup! It passes locally for me, both with java 1.6 and java 1.7...

@BanzaiMan
Copy link
Member

I am inclined to think that this is a RubyGems upgrade issue, in which the normal rubygems upgrade is nullifying customizations that JRuby installs.

@steveklabnik
Copy link

That would seem like a plausible explanation. Travis also upgraded from 1.8.x to 2.0.2, if I remember correctly.

@BanzaiMan
Copy link
Member

My analysis was slightly off (see rubygems/rubygems#507), but RubyGems 2.0.3, when it's released, should fix this issue.

@christianvuerings
Copy link

@BanzaiMan It looks like they just released an update c44c0e4d8dbd042b7d857170cf2c73599cd6e7c2 . Do you have an idea about when the Travis.ci systems would be updated?

@BanzaiMan
Copy link
Member

@ChristianV It is up to Travis guys to update their VMs. It shouldn't be long.

In the meantime, there is nothing left for us to do here, so I'm closing this one.

@haines
Copy link
Contributor Author

haines commented Mar 12, 2013

@BanzaiMan awesome, thanks!

@brianp
Copy link

brianp commented Mar 12, 2013

Just for the record. In the last 2 hours Travis has started passing again for me so it looks like they updated.

@roidrage
Copy link

@BanzaiMan
Copy link
Member

Thanks for the confirmation, everyone!!! ❤️

@batter
Copy link

batter commented Mar 26, 2013

I'm using JRuby 1.7.3, RubyGems 2.0.3, and the most recent bundler release (1.3.4), and I'm still seeing this error when attempting to use rails on JRuby. Is there something else obvious that I might be missing.

I'm running JRuby using RVM on Mac OS X 10.6.8

@BanzaiMan
Copy link
Member

@fullbridge-batkins You might want to try reinstalling jruby 1.7.3.

@batter
Copy link

batter commented Mar 26, 2013

@BanzaiMan - Yep, that worked. Upgraded to the latest RVM before reinstalling, which required me to install some packages using homebrew. One of the packages it installed was jruby, so perhaps that's what did the trick.

eregon added a commit that referenced this issue Dec 27, 2017
0fe33ac Use the new platform_is pointer_size: SIZE guard
80a451e Use sizeof(VALUE) in C-API numeric specs
d89bf5e Limit leap second specs to Linux as they are not portable
d89c012 Allow more GC cycles for the reference to be vacated.
4864569 Fix indentation in language/case_spec.rb
6c7aa4e Add exclusion for RuboCop
3a94824 Move RuboCop to its own Travis CI job
cb7d7dd Add exclude for RuboCop
4c785e9 Add specs for $. verifying it only admits integer values.
f8ec979 Add spec for IO#syswrite with the fd set to nonblocking mode
411ba12 Add specs for case with interpolated regexps
79d5b55 Update "last match" specs to not be misleading ($9 is not an upper-bound).
01992ab Add specs for splat arg + block argument modifying the splat arg
48196e0 Fix Kernel#Complex spec
1afd800 Add missing space between functions
afbc53b Add specs for Bignum between max long and max unsigned long
256ab2c Add specs for rb_uint2inum
2886a6a Correct rescuing spelling in exception specs
8ec8e71 Add specs for ensuring proper handling of leap seconds.
eab3905 Add test for numeric arguments to File.utime.
bf54b1a spec_helper.rb: libruby.so iff enable-shared
a47e5de spec_helper.rb: must find libruby.so
2d980b6 Simplify Thread#[]= spec
0976280 fix threading bug.
4d57b63 Use syswrite to avoid potential buffering in IO#select spec
9dd2e86 Remove macOS on Travis CI
4dfad8a Update to latest releases
50765e3 Test with Ruby 2.5 on macOS
0013104 Add Ruby 2.5.0 to Travis CI
da06ed8 Merge pull request #572 from andrykonchin/range-initialize-no-longer-hides-exceptions
4fdb52c Struct: add spec for equality of similar classes
e42374e [Code review] Fix typo
01a68af Add specs for :keyword_init option of Struct.new
787a216 Add specs for Range#new
8622e98 Add specs for Method#===
1ba2970 Merge pull request #569 from andrykonchin/dir-glob-provides-new-optional-keyword-argument-base
7f32e5b Add specs for Dir.glob :base option
8079e3d Update specs to use frozen_error_class for FrozenError
db04c79 [Code review] Reduce the list of exceptions
4fa3652 [Code review] Change descriptions and add test case with raising not StandardError exceptions
0b2604e Add specs for Rational +, -, * and / when #coerce raises an exception
bd83c6d Add specs for Rational#<=> when #coerce raises an exception
fdeb25d Add specs for Float +, -, * and / when #coerce raises an exception
3a19bbc Add specs for Float <, <=, > and >= when #coerce raises an exception
7b8b88b Add specs for Integer +, -, *, / when #coerce raises an exception
4631f17 Add specs for Integer <,  <=, > and >= when #coerce raises an exception
36f98c7 Typo fix 😬
5dd77c8 Forgot guards again! 😬
07bc28a Add specs for Integer#{all|any|no}_bits?
db6c330 Add missed cases for String#casecmp?
82145c5 mathn is no longer part of the standard library
595645f Fix expectation for Hash#transform_keys!
4a07f3d Fix style
d35d74a Fix Struct#new to add the proper version guards
e8f89e9 Use the new frozen_error_class in Kernel#autoload spec
6c0655c The main Thread should have report_on_exception=true for consistency
dea8498 Set Thread.report_on_exception=true by default to report exceptions in Threads
3629c7d ignore lines (to catch up r61155).
43d24a4 struct.c: add keyword_init option to Struct.new
77deeeb catch up r61131.
efdfa74 Add link to Gitter
627151b Add specs for Time#at
e3286c0 Add specs for refinement and string interpolation
4a8d982 Update RuboCop to 0.52.0
69d18fe [Code review] Group test cases with context
ee54bf2 [Code review] Reorder test cases
0ddf2a4 Add specs for top-level constant lookup
6de75c0 Fix double spaces after #should
4135bc5 OpenBSD uses EISDIR for directory access
0fd75d2 OpenBSD doesn't have birthtime in File::Stat
7e0d43d OpenBSD uses EPROTONOSUPPORT instead of EAFNOSUPPORT
1b3ccfd OpenBSD uses US-ASCII for locale_charmap, similar to FreeBSD
1472757 OpenBSD does not allow getsid if pid is not in same session
b61b084 Merge pull request #548 from andrykonchin/set-to-s-and-include
317fd1b Improve specs for Hash#transform_values
be5eb4c Add specs for Hash#transform_keys [#547]
77228f8 Fix test label [ci-skip] [doc]
a820165 Add specs for Hash#slice [#552]
737999a Oops, forgot guards
2e3515f Fix spec. Definitely trying to go too fast today.
a609618 Fix spec
c4f267f Tweak specs
a487ab9 + String#delete_{suffix|prefix}
da46e71 Oops, fix file name
65c42e6 + Hash#slice
cd71d91 Finish specs for Hash#transform_keys!
4fb1f16 + Hash#transform_keys (incomplete).
75f3cad + Dir#children, Dir#each_child
fd0cb75 Fix b1acb45.
13c5170 These specs aren't doing what they are supposed to be doing [#554]
b1acb45 Enumerable#all? none? and one?: Basic specs [#550]
c76b47c Update specs for Enumerable#any? See ruby/ruby@a9770ba
7f24dcf [Code review] Use explicit exception class and remove excessive begin/end blocks
8289f63 [Code review] Add missing cases
c5ccbdf [Code review] Replace instance_eval with eval and correct SignalException test
17612fd Improve rescue/ensure specs
688e72f Correct test case for lazy checking of rescue expression
4ac8a7d Correct test case for rescue in method arguments
0253bc9 Add specs for rescue/ensure in do block
6faa445 Improve specs for Set#include?
d9422dc Add specs for Set#===
e8efda5 Add specs for Set#to_s
0c90201 Fix typos

git-subtree-dir: spec/ruby
git-subtree-split: 0fe33ac76d6c4f3666a357a1d80260c8c2facf26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants