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

kitchen converge error with windows 2012 #253

Open
abburimadhukar opened this issue Dec 18, 2022 · 0 comments
Open

kitchen converge error with windows 2012 #253

abburimadhukar opened this issue Dec 18, 2022 · 0 comments

Comments

@abburimadhukar
Copy link

abburimadhukar commented Dec 18, 2022

  • windows_package[JQ] action install
    Recipe:
    * remote_file[C:\Users\azure\AppData\Local\Temp\kitchen\cache\package\jq-win64.exe] action create[2022-12-18T10:39:53+00:00] ERROR: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe, retry 1/5
    [2022-12-18T10:40:19+00:00] ERROR: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe, retry 2/5
    [2022-12-18T10:40:45+00:00] ERROR: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe, retry 3/5
    [2022-12-18T10:41:12+00:00] ERROR: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe, retry 4/5
    [2022-12-18T10:41:38+00:00] ERROR: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe, retry 5/5
    [2022-12-18T10:42:04+00:00] WARN: remote_file[C:\Users\azure\AppData\Local\Temp\kitchen\cache\package\jq-win64.exe] cannot be downloaded from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe - Failed to open TCP connection to github.com:443 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "github.com" port 443)

           ================================================================================
           Error executing action `create` on resource 'remote_file[C:\Users\azure\AppData\Local\Temp\kitchen\cache\package\jq-win64.exe]'
           ================================================================================
    
           Errno::ETIMEDOUT
           ----------------
           Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe - Failed to open TCP connection to github.com:443 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "github.com" port 443)
    
           Compiled Resource:
           ------------------
           # Declared in
    
           remote_file("C:\Users\azure\AppData\Local\Temp\kitchen\cache\package\jq-win64.exe") do
      provider Chef::Provider::RemoteFile
      action [:create]
      default_guard_interpreter :default
      source ["https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe"]
      use_etag true
      use_last_modified true
      cookbook_name "wag_dna_secops"
      checksum nil
      path "C:\\Users\\azure\\AppData\\Local\\Temp\\kitchen\\cache\\package\\jq-win64.exe"
      rights nil
      deny_rights nil
      verifications []
           end
    
           System Info:
           ------------
           chef_version=13.10.0
           platform=windows
           platform_version=6.3.9600
           ruby=ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32]
           program_name=C:/opscode/chef/bin/chef-client
           executable=C:/opscode/chef/bin/chef-client
    
    
         ================================================================================
         Error executing action `install` on resource 'windows_package[JQ]'
         ================================================================================
    
         Errno::ETIMEDOUT
         ----------------
         remote_file[C:\Users\azure\AppData\Local\Temp\kitchen\cache\package\jq-win64.exe] (dynamically defined) had an error: Errno::ETIMEDOUT: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe - Failed to open TCP connection to github.com:443 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "github.com" port 443)
    
         Resource Declaration:
         ---------------------
         # In C:/Users/azure/AppData/Local/Temp/kitchen/cache/cookbooks/wag_dna_secops/recipes/windows.rb
    
           2: windows_package 'JQ' do
           3:     source 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe'
           4:     installer_type :custom
           5:     options '/S'
           6:     action :install
           7:   end
    
         Compiled Resource:
         ------------------
         # Declared in C:/Users/azure/AppData/Local/Temp/kitchen/cache/cookbooks/wag_dna_secops/recipes/windows.rb:2:in `from_file'
    
         windows_package("JQ") do
           package_name "JQ"
           action [:install]
           default_guard_interpreter :default
           declared_type :windows_package
           cookbook_name "wag_dna_secops"
           recipe_name "windows"
           source "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe"
           installer_type :custom
           options "/S"
         end
    
         System Info:
         ------------
         chef_version=13.10.0
         platform=windows
         platform_version=6.3.9600
         ruby=ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32]
         program_name=C:/opscode/chef/bin/chef-client
         executable=C:/opscode/chef/bin/chef-client
    
    
     Running handlers:
     [2022-12-18T10:42:04+00:00] ERROR: Running exception handlers
     Running handlers complete
     [2022-12-18T10:42:04+00:00] ERROR: Exception handlers complete
     Chef Client failed. 0 resources updated in 02 minutes 34 seconds
     [2022-12-18T10:42:04+00:00] FATAL: Stacktrace dumped to C:/Users/azure/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
     [2022-12-18T10:42:04+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
     [2022-12-18T10:42:04+00:00] FATAL: Errno::ETIMEDOUT: windows_package[JQ] (wag_dna_secops::windows line 2) had an error: Errno::ETIMEDOUT: remote_file[C:\Users\azure\AppData\Local\Temp\kitchen\cache\package\jq-win64.exe] (dynamically defined) had an error: Errno::ETIMEDOUT: Error connecting to https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe - Failed to open TCP connection to github.com:443 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "github.com" port 443)
    

------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Converge failed on instance . Please see .kitchen/logs/default-windows-2012r2.log for more details

Please see .kitchen/logs/kitchen.log for more details
Also try running kitchen diagnose --all for configuration

Kitchen.yml file

  • name: windows-2012r2
    transport:
    name: winrm
    driver_config:
    vm_name: windows-2012r2
    image_urn: MicrosoftWindowsServer:WindowsServer:2012-R2-Datacenter:latest
    Vnetid: XXXXXXX
    subnet_id: ccp-kitchen
    password: Welcome1234!

facing this issue while kitchen converge not able to connect to any remote file(for software installation ) with windows_package .

please look into this issue .

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