SignalFx process error

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

This doesn’t look right:

"C:\Program Files (x86)\SignalFx\PerfCounterReporter\PerfCounterReporter.exe" windows_service 'PerfCounterReporterService' do supports [:start => true, :restart => true] startup_type :automatic

I believe you shouldn’t have to point to the .exe in your service block - if I remember correctly, the service should be registered and can be found either in the Services panel, or under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services. You’ll want to make sure you’re using the right service name.

I completely agree but there is a typo my end

##"C:\Program Files (x86)\SignalFx\PerfCounterReporter\PerfCounterReporter.exe" actually that has comment which i didnt mentioned .

The above recipe works perfect on my test server but when im trying to deploy on my infrastructure servers it throws an error saying Error executing action start on resource 'windows_service[PerfCounterReporterService]'

I manually tried to RDP on to that local machine and tried to start the process through services but it says the process you are trying to start gets stopped auomatically

Im unable figure out the issue, when i run the recipe i could able to successfully deploy/install the signalfx agent, i could able to overwrite the template file with the default one and but i have to use the process_start resource block twice in the recipie the only the agent gets reported on the signalfx dash board ..will share my recipie can you please help me in tuning it?
##########################

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

windows_service 'PerfCounterReporterService' do
supports [:start => true, :restart => true]
startup_type :automatic
#action :configure_startup
#action :reload
action :enable
action :start
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 :reload
action :enable
action :start
end

Please guide me on this
Thanks
Prash

Well, it sounds like there may be an error with the service on the machine itself, not Chef. However if the service name is PerfCounterReporter, then that’s what should go in the service block:

windows_service 'PerfCounterReporter' do supports [:start => true, :restart => true] startup_type :automatic

I’d try taking a look at the Properties of the service on the remote machine - this guide is pretty old, but it might be able to point you in the right direction:

i have cross checked the service name it is "PercounterReporterService" its strange im still not able to figure out what would be the issue below is the screen shot of my chef converge report , should i have to change the service block order ? first installation / service start / template / again service start resource ?