Hi Team,
kindly help me to install topshell.exe installtion , i am getting below error during chef-run.
but manully installtion using commnad prompt ,its working fine same as "topshell.exe install"
path : i have checked ,its correct and i am able to browse given path.
batch[topshell install] action run[2020-08-25T21:09:47+00:00] INFO: Processing batch[topshell install] action run (mycookbook::default line 217)
[execute]
C:>c:\soft\build\topshell.exe 'install'
The system cannot find the path specified.
================================================================================
Error executing action run
on resource 'batch[topshell install]'
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of "C:\windows\system32\cmd.exe" /c "C:/Users/AppData/Local/Temp/chef-script20200825-4940-2i68du.bat" ----
STDOUT: C:>c:\soft\build\topshell.exe 'install'
STDERR: The system cannot find the path specified.
---- End output of "C:\windows\system32\cmd.exe" /c "C:/Users/AppData/Local/Temp/chef-script20200825-4940-2i68du.bat" ----
Ran "C:\windows\system32\cmd.exe" /c "C:/Users/AppData/Local/Temp/chef-script20200825-4940-2i68du.bat" returned 1
Resource Declaration:
STDOUT: C:>c:\soft\build\topshell.exe 'install'
STDERR: The system cannot find the path specified.
---- End output of "C:\windows\system32\cmd.exe" /c "C:/Users//AppData/Local/Temp/chef-script20200825-4940-2i68du.bat" ----
Ran "C:\windows\system32\cmd.exe" /c "C:/Users/AppData/Local/Temp/chef-script20200825-4940-2i68du.bat" returned 1
Resource Declaration:
In c:/chef/cache/cookbooks/mycookbook/recipes/default.rb
217: batch 'bot install' do
218: code <<-EOH
219: c:\soft\build\topshell.exe 'install' #(here i tried with c:\soft\build\topshell.exe install but same error)
220: EOH
221: returns 0
222: notifies :configure_startup,"windows_service[topshellWinService]",:immediately
223: not_if {::File.exist?("c:\#{app_home}\topshell_service_installed")}
224: guard_interpreter :batch
225: end
226:
Compiled Resource:
Declared in c:/chef/cache/cookbooks/mycookbook/recipes/default.rb:217:in `from_file'
batch("topshell install") do
action [:run]
guard_interpreter :batch
default_guard_interpreter :batch
command nil
backup 5
interpreter "cmd.exe"
declared_type :batch
cookbook_name "mycookbook"
recipe_name "default"
code " c:\soft\build\topshell.exe 'install'\n"
domain nil
user nil
returns 0
not_if { #code block }
end
System Info:
chef_version=14.15.6
platform=windows
platform_version=10.0.14393
-
- List item