Hi Spuder thank you very much for you help
i have another problem with windows servers im trying to install signalfx below is the recipe i am using for windows
windows_package ‘PerfCounterReporterInstaller-1.5.2.msi’ do
source 'file:///C:/chef/cache/cookbooks/signalfx/files/default/PerfCounterReporterInstaller-1.5.2.msi’
options '/quiet’
installer_type :custom
action :install
end
template “C:\Program Files (x86)\SignalFx\PerfCounterReporter\PerfCounterReporter.exe.config” do
cookbook "signalfx"
source "PerfCounterReporter.exe.config.erb"
end
"C:\Program Files (x86)\SignalFx\PerfCounterReporter\PerfCounterReporter.exe"
windows_service ‘PerfCounterReporterService’ do
supports [:start => true, :restart => true]
startup_type :automatic
action :configure_startup
action :restart
action :enable
action :start
end
but im getting this below error
10.0.109.164
10.0.109.164 ================================================================================
10.0.109.164 Error executing action start on resource 'windows_service[PerfCounterReporterService]'
10.0.109.164 ================================================================================
10.0.109.164
10.0.109.164 Timeout::Error
10.0.109.164 --------------
10.0.109.164 Timeout::Error
10.0.109.164
10.0.109.164 Resource Declaration:
10.0.109.164 ---------------------
10.0.109.164 # In c:/chef/cache/cookbooks/signalfx/recipes/default.rb
10.0.109.164
10.0.109.164 28: windows_service ‘PerfCounterReporterService’ do
10.0.109.164 29: supports [:start => true, :restart => true]
10.0.109.164 30: startup_type :automatic
10.0.109.164 31: #action :configure_startup
10.0.109.164 32: #action :restart
10.0.109.164 33: action :enable
10.0.109.164 34: action :start
10.0.109.164 35: end
10.0.109.164 36:
10.0.109.164
10.0.109.164 Compiled Resource:
10.0.109.164 ------------------
10.0.109.164 # Declared in c:/chef/cache/cookbooks/signalfx/recipes/default.rb:28:in `from_file’
10.0.109.164
10.0.109.164 windows_service(“PerfCounterReporterService”) do
10.0.109.164 action [:start]
10.0.109.164 supports {:restart=>nil, :reload=>nil, :status=>nil, {:start=>true, :restart=>true}=>true}
10.0.109.164 retries 0
10.0.109.164 retry_delay 2
10.0.109.164 default_guard_interpreter :default
10.0.109.164 service_name "PerfCounterReporterService"
10.0.109.164 enabled nil
10.0.109.164 running nil
10.0.109.164 masked nil
10.0.109.164 pattern "PerfCounterReporterService"
10.0.109.164 startup_type :automatic
10.0.109.164 declared_type :windows_service
10.0.109.164 cookbook_name "signalfx"
10.0.109.164 recipe_name "default"
10.0.109.164 end
10.0.109.164
10.0.109.164 System Info:
10.0.109.164 ------------
10.0.109.164 chef_version=12.21.3
10.0.109.164 platform=windows
10.0.109.164 platform_version=6.3.9600
10.0.109.164 ruby=ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
10.0.109.164 program_name=C:/opscode/chef/bin/chef-client
10.0.109.164 executable=C:/opscode/chef/bin/chef-client
10.0.109.164
10.0.109.164
10.0.109.164 [2017-07-18T12:30:29-04:00] INFO: Running queued delayed notifications before re-raising exception
10.0.109.164 [2017-07-18T12:30:29-04:00] ERROR: Running exception handlers
10.0.109.164 [2017-07-18T12:30:29-04:00] ERROR: Exception handlers complete
10.0.109.164 [2017-07-18T12:30:30-04:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
10.0.109.164 [2017-07-18T12:30:30-04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
10.0.109.164 [2017-07-18T12:30:30-04:00] FATAL: Timeout::Error: Timeout::Error
ERROR: Failed to execute command on 10.0.109.164 return code 1
Note: the above same recipie works fine with my test server but cannot able to start the process on DEV/TEST servers .
Please help me
Thanks
Prashanth