sous-chefs / jenkins

Development repository for the jenkins cookbook
https://supermarket.chef.io/cookbooks/jenkins
Apache License 2.0
424 stars 636 forks source link

chef_version=14.11.21 getting error: OpenSSL::SSL::SSLError: SSL Error connecting to https://pkg.jenkins.io/debian-stable/jenkins.io.key #788

Open bhaveshup opened 2 years ago

bhaveshup commented 2 years ago

Brief Description

      Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/jenkins/recipes/_master_package.rb:28:in `from_file'

       apt_repository("jenkins") do
         action [:add]
         default_guard_interpreter :default
         declared_type :apt_repository
         cookbook_name "jenkins"
         recipe_name "_master_package"
         uri "https://pkg.jenkins.io/debian-stable"
         distribution "binary/"
         key ["https://pkg.jenkins.io/debian-stable/jenkins.io.key"]
         repo_name "jenkins"
         components []
       end

       System Info:
       ------------
       chef_version=14.11.21
       platform=ubuntu
       platform_version=18.04
       ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
       program_name=/opt/chef/bin/chef-client
       executable=/opt/chef/bin/chef-client

   Running handlers:
   [2022-05-26T10:52:47+00:00] ERROR: Running exception handlers
   Running handlers complete
   [2022-05-26T10:52:47+00:00] ERROR: Exception handlers complete
   Chef Client failed. 2 resources updated in 08 seconds
   [2022-05-26T10:52:47+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2022-05-26T10:52:47+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2022-05-26T10:52:47+00:00] FATAL: OpenSSL::SSL::SSLError: apt_repository[jenkins] (jenkins::_master_package line 28) had an error: OpenSSL::SSL::SSLError: remote_file[/tmp/kitchen/cache/https___pkg_jenkins_io_debian-stable_jenkins_io_key] (/opt/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.11.21/lib/chef/provider/apt_repository.rb line 207) had an error: OpenSSL::SSL::SSLError: SSL Error connecting to https://pkg.jenkins.io/debian-stable/jenkins.io.key - SSL_connect returned=1 errno=0 state=error: certificate verify failed (certificate has expired) 

------Exception------- Class: Kitchen::ActionFailed

:pancakes: Cookbook version

cookbook 'jenkins', '~> 9.4.0'

:woman_cook: Chef-Infra Version

chef_version=14.11.21

:tophat: Platform details

Ubuntu18.04 & Cloud provider =AWS

Steps To Reproduce

https://github.com/sous-chefs/jenkins/blob/main/recipes/_master_package.rb#L28

:police_car: Expected behavior

it should pass the kitchen converge test

:heavy_plus_sign: Additional context

It does pass the kitchen converge test on Ubuntu18.04 with Chef-client 17.9.52