Skip to content

Instantly share code, notes, and snippets.

@Stromweld
Created February 24, 2016 21:49
Show Gist options
  • Save Stromweld/dcc3a3b4a06a9048d39d to your computer and use it in GitHub Desktop.
Save Stromweld/dcc3a3b4a06a9048d39d to your computer and use it in GitHub Desktop.
omnibus_updater windows chef-client update from 12.6.0 to 12.7.2
PS C:\Users\Administrator> chef-client
Starting Chef Client, version 12.6.0
[2016-02-24T15:47:34-06:00] INFO: *** Chef 12.6.0 ***
[2016-02-24T15:47:34-06:00] INFO: Chef-client pid: 700
[2016-02-24T15:47:46-06:00] INFO: Run List is [recipe[omnibus_updater]]
[2016-02-24T15:47:46-06:00] INFO: Run List expands to [omnibus_updater]
[2016-02-24T15:47:46-06:00] INFO: Starting Chef Run for TAW2CM-UPTEST01
[2016-02-24T15:47:46-06:00] INFO: Running start handlers
[2016-02-24T15:47:46-06:00] INFO: Start handlers complete.
resolving cookbooks for run list: ["omnibus_updater"]
[2016-02-24T15:47:47-06:00] INFO: Loading cookbooks [omnibus_updater@1.0.7]
Synchronizing Cookbooks:
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/recipes/default.rb in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/libraries/omnibus_checker.rb in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/recipes/remove_chef_system_gem.rb in the cac
he.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/recipes/installer.rb in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/recipes/downloader.rb in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/attributes/default.rb in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/recipes/old_package_cleaner.rb in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/libraries/omnitrucker.rb in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/.kitchen.yml in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/.gitignore in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/CHANGELOG.md in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/Cheffile in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/Gemfile in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/Rakefile in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/README.md in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/LICENSE in the cache.
[2016-02-24T15:47:47-06:00] INFO: Storing updated cookbooks/omnibus_updater/metadata.rb in the cache.
- omnibus_updater (1.0.7)
Compiling Cookbooks...
Converging 7 resources
Recipe: omnibus_updater::downloader
* directory[c:/chef/cache/omnibus_updater] action create[2016-02-24T15:47:49-06:00] INFO: Processing directory[c:/chef
/cache/omnibus_updater] action create (omnibus_updater::downloader line 38)
[2016-02-24T15:47:49-06:00] INFO: directory[c:/chef/cache/omnibus_updater] created directory c:/chef/cache/omnibus_updat
er
- create new directory c:/chef/cache/omnibus_updater
* remote_file[omnibus_remote[chef-client-12.7.2-1-x86.msi]] action create_if_missing[2016-02-24T15:47:49-06:00] INFO:
Processing remote_file[omnibus_remote[chef-client-12.7.2-1-x86.msi]] action create_if_missing (omnibus_updater::download
er line 42)
[2016-02-24T15:47:58-06:00] INFO: remote_file[omnibus_remote[chef-client-12.7.2-1-x86.msi]] created file c:/chef/cache/o
mnibus_updater/chef-client-12.7.2-1-x86.msi
- create new file c:/chef/cache/omnibus_updater/chef-client-12.7.2-1-x86.msi[2016-02-24T15:47:59-06:00] INFO: remote
_file[omnibus_remote[chef-client-12.7.2-1-x86.msi]] updated file contents c:/chef/cache/omnibus_updater/chef-client-12.7
.2-1-x86.msi
- update content in file c:/chef/cache/omnibus_updater/chef-client-12.7.2-1-x86.msi from none to a430eb
(file sizes exceed 10000000 bytes, diff output suppressed)
Recipe: omnibus_updater::installer
* windows_service[chef-client] action nothing[2016-02-24T15:47:59-06:00] INFO: Processing windows_service[chef-client]
action nothing (omnibus_updater::installer line 23)
(skipped due to action :nothing)
* execute[chef-uninstall] action nothing[2016-02-24T15:47:59-06:00] INFO: Processing execute[chef-uninstall] action no
thing (omnibus_updater::installer line 34)
(skipped due to action :nothing)
* execute[chef-install] action nothing[2016-02-24T15:47:59-06:00] INFO: Processing execute[chef-install] action nothin
g (omnibus_updater::installer line 38)
(skipped due to action :nothing)
* execute[chef-service-kill] action nothing[2016-02-24T15:47:59-06:00] INFO: Processing execute[chef-service-kill] act
ion nothing (omnibus_updater::installer line 43)
(skipped due to action :nothing)
* ruby_block[Omnibus Chef Update] action run[2016-02-24T15:47:59-06:00] INFO: Processing ruby_block[Omnibus Chef Updat
e] action run (omnibus_updater::installer line 48)
[2016-02-24T15:47:59-06:00] INFO: ruby_block[Omnibus Chef Update] called
- execute the ruby block Omnibus Chef Update
[2016-02-24T15:47:59-06:00] INFO: ruby_block[Omnibus Chef Update] sending run action to execute[chef-service-kill] (imme
diate)
* execute[chef-service-kill] action run[2016-02-24T15:47:59-06:00] INFO: Processing execute[chef-service-kill] action
run (omnibus_updater::installer line 43)
[execute]
INFO: No tasks running with the specified criteria.
[2016-02-24T15:48:00-06:00] INFO: execute[chef-service-kill] ran successfully
- execute taskkill /F /FI "SERVICES eq chef-client"
[2016-02-24T15:48:00-06:00] INFO: ruby_block[Omnibus Chef Update] sending run action to execute[chef-uninstall] (immedia
te)
* execute[chef-uninstall] action run[2016-02-24T15:48:00-06:00] INFO: Processing execute[chef-uninstall] action run (o
mnibus_updater::installer line 34)
[execute] Executing (\\IP-AC15245C\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{6494BE9D-CE4F-4030-8933-869F3DEE1E39
}",Name="Chef Client v12.6.0",Version="12.6.0.1")->Uninstall()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 0;
};
[2016-02-24T15:48:08-06:00] INFO: execute[chef-uninstall] ran successfully
- execute wmic product where "name like 'Chef Client%% %%'" call uninstall /nointeractive
[2016-02-24T15:48:08-06:00] INFO: ruby_block[Omnibus Chef Update] sending run action to execute[chef-install] (immediate
)
* execute[chef-install] action run[2016-02-24T15:48:08-06:00] INFO: Processing execute[chef-install] action run (omnib
us_updater::installer line 38)
================================================================================
Error executing action `run` on resource 'execute[chef-install]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1603'
---- Begin output of msiexec.exe /qn /i chef-client-12.7.2-1-x86.msi ADDLOCAL="ChefClientFeature,ChefServiceFeature"
----
STDOUT:
STDERR:
---- End output of msiexec.exe /qn /i chef-client-12.7.2-1-x86.msi ADDLOCAL="ChefClientFeature,ChefServiceFeature" -
---
Ran msiexec.exe /qn /i chef-client-12.7.2-1-x86.msi ADDLOCAL="ChefClientFeature,ChefServiceFeature" returned 1603
Resource Declaration:
---------------------
# In c:/chef/cache/cookbooks/omnibus_updater/recipes/installer.rb
38: execute 'chef-install' do
39: command "msiexec.exe /qn /i #{File.basename(remote_path)} ADDLOCAL=\"#{node[:omnibus_updater][:addlocal]}
\""
40: cwd node[:omnibus_updater][:cache_dir]
41: action :nothing
42: end
43: execute 'chef-service-kill' do
Compiled Resource:
------------------
# Declared in c:/chef/cache/cookbooks/omnibus_updater/recipes/installer.rb:38:in `from_file'
execute("chef-install") do
action [:nothing]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "msiexec.exe /qn /i chef-client-12.7.2-1-x86.msi ADDLOCAL=\"ChefClientFeature,ChefServiceFeature\""
backup 5
cwd "c:/chef/cache/omnibus_updater"
returns 0
declared_type :execute
cookbook_name "omnibus_updater"
recipe_name "installer"
end
[2016-02-24T15:48:16-06:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2016-02-24T15:48:16-06:00] ERROR: Running exception handlers
Running handlers complete
[2016-02-24T15:48:16-06:00] ERROR: Exception handlers complete
Chef Client failed. 5 resources updated in 45 seconds
[2016-02-24T15:48:16-06:00] INFO: Sending resource update report (run-id: fcb70527-031e-4348-acfd-438e2ad15b82)
[2016-02-24T15:48:16-06:00] ERROR: SSL Validation failure connecting to host: chef-server.teamfreeze.com - SSL_connect r
eturned=1 errno=0 state=error: certificate verify failed
[2016-02-24T15:48:16-06:00] ERROR: Failed to post reporting data to server (SSL Error connecting to https://chef-server.
teamfreeze.com/organizations/corey-dev/reports/nodes/TAW2CM-UPTEST01/runs/fcb70527-031e-4348-acfd-438e2ad15b82 - SSL_con
nect returned=1 errno=0 state=error: certificate verify failed)
[2016-02-24T15:48:16-06:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2016-02-24T15:48:16-06:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-02-24T15:48:16-06:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[chef-install] (omnibus_updater::install
er line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1603'
---- Begin output of msiexec.exe /qn /i chef-client-12.7.2-1-x86.msi ADDLOCAL="ChefClientFeature,ChefServiceFeature" ---
-
STDOUT:
STDERR:
---- End output of msiexec.exe /qn /i chef-client-12.7.2-1-x86.msi ADDLOCAL="ChefClientFeature,ChefServiceFeature" ----
Ran msiexec.exe /qn /i chef-client-12.7.2-1-x86.msi ADDLOCAL="ChefClientFeature,ChefServiceFeature" returned 1603
PS C:\Users\Administrator>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment