Hi All,
I am getting below error while executing Chef-client. Please Advise!!!
[2019-10-15T22:50:58+00:00] WARN: failed to find gem rubyzip (>= 0) from [http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/]
Error executing action install
on resource 'chef_gem[rubyzip]'
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/gem install "rubyzip" -q --no-rdoc --no-ri --source=http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/ --source=https://rubygems.org ----
STDOUT:
STDERR: ERROR: Error installing rubyzip:
rubyzip requires Ruby version >= 2.4.
---- End output of /opt/chef/embedded/bin/gem install "rubyzip" -q --no-rdoc --no-ri --source=http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/ --source=https://rubygems.org ----
Ran /opt/chef/embedded/bin/gem install "rubyzip" -q --no-rdoc --no-ri --source=http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/ --source=https://rubygems.org returned 1
Resource Declaration:
In /var/chef/cache/cookbooks/oracle/recipes/install.rb
56: chef_gem 'rubyzip' do
57: source node['oracle']['gemserver']
58: compile_time false
59: end
60:
Compiled Resource:
Declared in /var/chef/cache/cookbooks/oracle/recipes/install.rb:56:in `from_file'
chef_gem("rubyzip") do
package_name "rubyzip"
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :chef_gem
cookbook_name "oracle"
recipe_name "install"
source "http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/"
gem_binary "/opt/chef/embedded/bin/gem"
end
Platform:
x86_64-linux
[2019-10-15T22:50:59+00:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2019-10-15T22:50:59+00:00] ERROR: Running exception handlers
Running handlers complete
[2019-10-15T22:50:59+00:00] ERROR: Exception handlers complete
Chef Client failed. 6 resources updated in 37 seconds
[2019-10-15T22:50:59+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2019-10-15T22:50:59+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-10-15T22:50:59+00:00] ERROR: chef_gem[rubyzip] (oracle::install line 56) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/gem install "rubyzip" -q --no-rdoc --no-ri --source=http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/ --source=https://rubygems.org ----
STDOUT:
STDERR: ERROR: Error installing rubyzip:
rubyzip requires Ruby version >= 2.4.
---- End output of /opt/chef/embedded/bin/gem install "rubyzip" -q --no-rdoc --no-ri --source=http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/ --source=https://rubygems.org ----
Ran /opt/chef/embedded/bin/gem install "rubyzip" -q --no-rdoc --no-ri --source=http://artifactory.jfrogserver.com/artifactory/gem_virtual/gems/ --source=https://rubygems.org returned 1
[2019-10-15T22:50:59+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)