[chef] another Chef Windows service issue ?


Chronological Thread 
  • From: Barrow Kwan < >
  • To:
  • Subject: [chef] another Chef Windows service issue ?
  • Date: Mon, 20 Aug 2012 12:47:05 -0700

Hi,
        With Tim's help, I was able to fix the windows service issue earlier. 
 Now I am running into other issue,   

windows_package "Some Client" do
  source "http://localhost/example.exe";
  installer_type :custom
  options "/verysilent /norestart /dir=c:\\tools\\\example"
  action :install
end

when I run chef-client from commandline (ie manually ),it is fine.  when I 
run it as windows service, I got this error

2012-08-20T12:31:39-07:00] INFO: Processing windows_package[Git Client] 
action install (windows_base::default line 
/chef/cache/cookbooks/windows_base/recipes/default.rb)
[2012-08-20T12:31:39-07:00] ERROR: windows_package[Git Client] 
(windows_base::default line 
/chef/cache/cookbooks/windows_base/recipes/default.rb) has had an error
[2012-08-20T12:31:39-07:00] ERROR: windows_package[Git Client] 
(c:/chef/cache/cookbooks/windows_base/recipes/default.rb:20:in `from_file') 
had an error:
windows_package[Git Client] (windows_base::default line 
/chef/cache/cookbooks/windows_base/recipes/default.rb) had an error: 
ArgumentError: unknown encoding name - CP0
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:172:in `find'
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:172:in 
`initialize'
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:231:in 
`exception'
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:231:in `raise'
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:231:in `check'
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:277:in 
`EnumKey'
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:551:in 
`each_key'
c:/chef/cache/cookbooks/windows/providers/package.rb:201:in `block in 
extract_installed_packages_from_key'
C:/Tools/opscode/chef/embedded/lib/ruby/1.9.1/win32/registry.rb:389:in `open'
c:/chef/cache/cookbooks/windows/providers/package.rb:200:in 
`extract_installed_packages_from_key'
c:/chef/cache/cookbooks/windows/providers/package.rb:183:in 
`installed_packages'
c:/chef/cache/cookbooks/windows/providers/package.rb:107:in 
`current_installed_version'
c:/chef/cache/cookbooks/windows/providers/package.rb:98:in 
`load_current_resource'
C:/Tools/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:453:in
 `run_action'
C:/Tools/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:49:in
 `run_action'
C:/Tools/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in
 `block (2 levels) in converge'
C:/Tools/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in
 `each'






  • [chef] another Chef Windows service issue ?, Barrow Kwan, 08/20/2012

Archive powered by MHonArc 2.6.16.

§