-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Could not load OpenSSL. with jruby 9.2.0.0-SNAPSHOT #6228
Comments
The last successful build https://travis-ci.org/rsim/oracle-enhanced/builds/320343001 at Between these two builds no commits made to the |
Can you please share the output of |
Here is the output of Environment
Bundler Build Metadata
Bundler settings
GemfileGemfile# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
group :development do
gem "rspec"
gem "rdoc"
gem "rake"
gem "activerecord", github: "rails/rails", branch: "master"
gem "arel", github: "rails/arel", branch: "master"
gem "ruby-plsql", github: "rsim/ruby-plsql", branch: "master"
platforms :ruby do
gem "ruby-oci8", github: "kubo/ruby-oci8"
gem "byebug"
end
platforms :jruby do
gem "pry"
gem "pry-nav"
end
end
group :test do
gem "simplecov", github: "colszowka/simplecov", branch: "master", require: false
end Gemfile.lock
|
Entire output of the failed build https://travis-ci.org/yahonda/oracle-enhanced/jobs/322171825 |
@yahonda Can you reproduce with your local env? |
@hsbt So far I have not reproduced this in my local environment. Let me try again. |
It reproduces locally using Vagrant. Install software
http://www.oracle.com/technetwork/database/database-technologies/express-edition/overview/index.html Steps to reproduce:
|
Actual result:vagrant@rails-dev-box:~/oracle-enhanced$ bundle install
Fetching https://github.com/rails/rails.git
Fetching https://github.com/rails/arel.git
Fetching https://github.com/rsim/ruby-plsql.git
Fetching https://github.com/colszowka/simplecov.git
The dependency ruby-oci8 (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency byebug (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
Fetching https://github.com/kubo/ruby-oci8.git
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using
RVM are available at rvm.io/packages/openssl.
vagrant@rails-dev-box:~/oracle-enhanced$ Here is the entire output at Vagrant guest |
Added vagrant@rails-dev-box:~/oracle-enhanced$ DEBUG_RESOLVER=true bundle install --verbose
Starting resolution (2017-12-27 19:04:45 UTC)
User-requested dependencies: [#<Gem::Resolver::DependencyRequest:0x5db45159 @dependency=<Gem::Dependency type=:runtime name="did_you_mean" requirements="= 1.0.1">, @requester=nil>, #<Gem::Resolver::DependencyRequest:0x6107227e @dependency=<Gem::Dependency type=:runtime name="executable-hooks" requirements="= 1.3.2">, @requester=nil>, #<Gem::Resolver::DependencyRequest:0x7c417213 @dependency=<Gem::Dependency type=:runtime name="bundler-unload" requirements="= 1.0.2">, @requester=nil>, #<Gem::Resolver::DependencyRequest:0x15761df8 @dependency=<Gem::Dependency type=:runtime name="rubygems-bundler" requirements="= 1.4.4">, @requester=nil>, #<Gem::Resolver::DependencyRequest:0x6ab7a896 @dependency=<Gem::Dependency type=:runtime name="bundler" requirements="= 1.16.1">, @requester=nil>]
Resolving dependencies...Creating possibility state for did_you_mean (= 1.0.1) (1 remaining)
Attempting to activate did_you_mean-1.0.1
Activated did_you_mean at did_you_mean-1.0.1
Requiring nested dependencies ()
Creating possibility state for executable-hooks (= 1.3.2) (1 remaining)
Attempting to activate executable-hooks-1.3.2
Activated executable-hooks at executable-hooks-1.3.2
Requiring nested dependencies ()
Creating possibility state for bundler-unload (= 1.0.2) (1 remaining)
Attempting to activate bundler-unload-1.0.2
Activated bundler-unload at bundler-unload-1.0.2
Requiring nested dependencies ()
Creating possibility state for rubygems-bundler (= 1.4.4) (1 remaining)
Attempting to activate rubygems-bundler-1.4.4
Activated rubygems-bundler at rubygems-bundler-1.4.4
Requiring nested dependencies (executable-hooks (>= 1.3.2), bundler-unload (>= 1.0.2))
Creating possibility state for executable-hooks (>= 1.3.2) (1 remaining)
Attempting to activate executable-hooks-1.3.2
Found existing spec (executable-hooks-1.3.2)
Creating possibility state for bundler-unload (>= 1.0.2) (1 remaining)
Attempting to activate bundler-unload-1.0.2
Found existing spec (bundler-unload-1.0.2)
Creating possibility state for bundler (= 1.16.1) (1 remaining)
Attempting to activate bundler-1.16.1
Activated bundler at bundler-1.16.1
Requiring nested dependencies ()
Finished resolution (7 steps) (Took 0.063195 seconds) (2017-12-27 19:04:45 UTC)
Unactivated:
Activated: did_you_mean, executable-hooks, bundler-unload, rubygems-bundler, bundler
Running `bundle install --verbose` with bundler 1.16.1
Fetching https://github.com/rails/rails.git
Fetching https://github.com/rails/arel.git
Fetching https://github.com/rsim/ruby-plsql.git
Fetching https://github.com/colszowka/simplecov.git
Found changes from the lockfile, re-resolving dependencies because the list of sources changed, the dependencies in your gemfile changed, you added a new platform to your gemfile
The dependency ruby-oci8 (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency byebug (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
Fetching https://github.com/kubo/ruby-oci8.git
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using
RVM are available at rvm.io/packages/openssl.
vagrant@rails-dev-box:~/oracle-enhanced$ |
Using Installing ffi 1.9.18 (java)
Gem::InstallError: invalid gem: package metadata is missing in
/home/vagrant/.rvm/gems/jruby-head/cache/ffi-1.9.18-java.gem
An error occurred while installing ffi (1.9.18), and Bundler cannot
continue.
Make sure that `gem install ffi -v '1.9.18'` succeeds before bundling.
In Gemfile:
pry-nav was resolved to 0.2.4, which depends on
pry was resolved to 0.10.4, which depends on
spoon was resolved to 0.0.6, which depends on
ffi
vagrant@rails-dev-box:~/oracle-enhanced$ gem -v
vagrant@rails-dev-box:~/oracle-enhanced$ bundle install
Fetching https://github.com/rails/rails.git
Fetching https://github.com/rails/arel.git
Fetching https://github.com/rsim/ruby-plsql.git
Fetching https://github.com/colszowka/simplecov.git
The dependency ruby-oci8 (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency byebug (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
Fetching https://github.com/kubo/ruby-oci8.git
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies................
Using rake 12.3.0
Fetching concurrent-ruby 1.0.5 (java)
Installing concurrent-ruby 1.0.5 (java)
Fetching i18n 0.9.1
Installing i18n 0.9.1
Fetching minitest 5.10.3
Installing minitest 5.10.3
Fetching thread_safe 0.3.6 (java)
Installing thread_safe 0.3.6 (java)
Fetching tzinfo 1.2.4
Installing tzinfo 1.2.4
Using activesupport 5.2.0.beta2 from https://github.com/rails/rails.git (at master@17ad4eb)
jar-dependencies: spec must be either String or Gem::Specification
Using activemodel 5.2.0.beta2 from https://github.com/rails/rails.git (at master@17ad4eb)
jar-dependencies: spec must be either String or Gem::Specification
Using arel 9.0.0 from https://github.com/rails/arel.git (at master@bb0e60f)
jar-dependencies: spec must be either String or Gem::Specification
Using activerecord 5.2.0.beta2 from https://github.com/rails/rails.git (at master@17ad4eb)
jar-dependencies: spec must be either String or Gem::Specification
Using bundler 1.16.1
Fetching coderay 1.1.2
Installing coderay 1.1.2
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching docile 1.1.5
Installing docile 1.1.5
Fetching ffi 1.9.18 (java)
Installing ffi 1.9.18 (java)
Gem::InstallError: invalid gem: package metadata is missing in
/home/vagrant/.rvm/gems/jruby-head/cache/ffi-1.9.18-java.gem
An error occurred while installing ffi (1.9.18), and Bundler cannot
continue.
Make sure that `gem install ffi -v '1.9.18'` succeeds before bundling.
In Gemfile:
pry-nav was resolved to 0.2.4, which depends on
pry was resolved to 0.10.4, which depends on
spoon was resolved to 0.0.6, which depends on
ffi
vagrant@rails-dev-box:~/oracle-enhanced$ gem -v
2.6.14
vagrant@rails-dev-box:~/oracle-enhanced$ ruby -v
jruby 9.2.0.0-SNAPSHOT (2.4.1) 2017-12-27 7bd10a6 Java HotSpot(TM) 64-Bit Server VM 25.151-b12 on 1.8.0_151-b12 [linux-x86_64]
vagrant@rails-dev-box:~/oracle-enhanced$ bundler -v
Bundler version 1.16.1
vagrant@rails-dev-box:~/oracle-enhanced$ |
Does running |
It shows $ ruby -ropenssl -e 'p OpenSSL
OpenSSL Refer line 860. |
Fortunately, this error has not reproduced recently.
Compared JRuby commits jruby/jruby@37904ac...1f53471 but I am unable to find related changes. Since both RubyGems and Bundler versions are same I do not know why it has been fixed. I'm going to close this. Thanks for the help and comments. |
@yahonda Thanks for your additional information. |
This issue has been created at rsim/oracle-enhanced#1614
What did you do?
Execute CI using Travis CI using
jruby-head
What did you expect to happen?
It should run CI.
What happened instead?
It gets
Could not load OpenSSL.
Here is the entire output
I tried replacing
https
withhttp
as it may be related with SSL by this commit.Then it gets this error.
Here is the entire output.
The text was updated successfully, but these errors were encountered: