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

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 this issue May 26, 2022 · 0 comments

Comments

@bhaveshup
Copy link

bhaveshup commented May 26, 2022

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

🥞 Cookbook version

cookbook 'jenkins', '~> 9.4.0'

👩‍🍳 Chef-Infra Version

chef_version=14.11.21

🎩 Platform details

Ubuntu18.04 & Cloud provider =AWS

Steps To Reproduce

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

🚓 Expected behavior

it should pass the kitchen converge test

➕ Additional context

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

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

1 participant