Skip to content

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

@bhaveshup

Description

@bhaveshup

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions