- From: aman singh <
>
- To: "
" <
>
- Subject: [chef] ENOENT error: no file or directory found | weblogic cookbook at supermarket
- Date: Fri, 30 Jan 2015 20:18:03 +0530
Hi Team,
I am using weblogic cookbook from supermarket but facing "ENOENT - no file or directory found " while installing weblogic through java -jar command.
Please refer to the attached file for error and stack.out file.
Note-: Running "sudo chef-client" on node.
Please help as if i am running chef-client without sudo command then lot of permission issues comes up and if i am using sudo with chef-client then facing ENOENT error. Not able to figure out to run the below command with silent mode.
Command-: "java -jar wls_121200.jar -silent -silent_xml="file path" -responseFile "file path" "
Thanks
Amandeep Singh
Starting Chef Client, version 11.16.4
[2015-01-30T19:48:57+05:30] INFO: *** Chef 11.16.4 ***
[2015-01-30T19:48:57+05:30] INFO: Chef-client pid: 21030
[2015-01-30T19:48:58+05:30] INFO: Run List is [recipe[weblogic_manual]]
[2015-01-30T19:48:58+05:30] INFO: Run List expands to [weblogic_manual]
[2015-01-30T19:48:58+05:30] INFO: Starting Chef Run for
incdszpc01987.att.techmahindra.com
[2015-01-30T19:48:58+05:30] INFO: Running start handlers
[2015-01-30T19:48:58+05:30] INFO: Start handlers complete.
resolving cookbooks for run list: ["weblogic_manual"]
[2015-01-30T19:48:58+05:30] INFO: Loading cookbooks
Synchronizing Cookbooks:
- weblogic_manual
Compiling Cookbooks...
Converging 7 resources
Recipe: weblogic_manual::default
* user[oracle] action create[2015-01-30T19:48:58+05:30] INFO: Processing
user[oracle] action create (weblogic_manual::default line 16)
(up to date)
* group[oracle] action create[2015-01-30T19:48:58+05:30] INFO: Processing
group[oracle] action create (weblogic_manual::default line 21)
(up to date)
* template[/etc/oraInst.loc] action create[2015-01-30T19:48:58+05:30] INFO:
Processing template[/etc/oraInst.loc] action create (weblogic_manual::default
line 26)
(up to date)
* template[/var/chef/cache/weblogic_install.rsp] action
create[2015-01-30T19:48:58+05:30] INFO: Processing
template[/var/chef/cache/weblogic_install.rsp] action create
(weblogic_manual::default line 34)
(up to date)
* template[/var/chef/cache/silent.xml] action
create[2015-01-30T19:48:58+05:30] INFO: Processing
template[/var/chef/cache/silent.xml] action create (weblogic_manual::default
line 42)
(up to date)
* remote_file[/var/chef/cache/wls_121200.jar] action
create[2015-01-30T19:48:58+05:30] INFO: Processing
remote_file[/var/chef/cache/wls_121200.jar] action create
(weblogic_manual::default line 50)
(up to date)
* execute[Install Weblogic] action run[2015-01-30T19:49:02+05:30] INFO:
Processing execute[Install Weblogic] action run (weblogic_manual::default
line 59)
================================================================================
Error executing action `run` on resource 'execute[Install Weblogic]'
================================================================================
Errno::ENOENT
-------------
No such file or directory - java -jar
/opt/app/workload/installed_apps/wls_121200.jar -silent
-silent_xml=/var/chef/cache/silent.xml
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/weblogic_manual/recipes/default.rb
59: execute "Install Weblogic" do
60: command "java -jar /opt/app/workload/installed_apps/wls_121200.jar
-silent -silent_xml=#{Chef::Config[:file_cache_path]}/silent.xml"
61: user node['weblogic_manual']['user']
62: group node['weblogic_manual']['group']
63: creates node['weblogic_manual']['wls_install_dir']
64: action :run
65: end
Compiled Resource:
------------------
# Declared in
/var/chef/cache/cookbooks/weblogic_manual/recipes/default.rb:59:in `from_file'
execute("Install Weblogic") do
action [:run]
retries 0
retry_delay 2
guard_interpreter :default
command "java -jar /opt/app/workload/installed_apps/wls_121200.jar
-silent -silent_xml=/var/chef/cache/silent.xml"
backup 5
creates "/opt/app/workload/installed_apps/oracle/oracle_mw/wlserver"
group "oracle"
returns 0
user "oracle"
cookbook_name "weblogic_manual"
recipe_name "default"
end
[2015-01-30T19:49:03+05:30] INFO: Running queued delayed notifications before
re
Running handlers:
[2015-01-30T19:49:03+05:30] ERROR: Running exception handlers
Running handlers complete
[2015-01-30T19:49:03+05:30] ERROR: Exception handlers complete
[2015-01-30T19:49:03+05:30] FATAL: Stacktrace dumped to
/var/chef/cache/chef-sta
Chef Client failed. 0 resources updated in 5.749510616 seconds
[2015-01-30T19:49:03+05:30] INFO: Sending resource update report (run-id:
7ffa9c
[2015-01-30T19:49:03+05:30] ERROR: execute[Install Weblogic]
(weblogic_manual::d NOENT: No such file
or directory - java -jar /opt/app/workload/installed_apps/wl
chef/cache/silent.xml
[2015-01-30T19:49:03+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef
ru code 1)
Attachment:
chef-stacktrace.out
Description: Binary data
- [chef] ENOENT error: no file or directory found | weblogic cookbook at supermarket, aman singh, 01/30/2015
Archive powered by MHonArc 2.6.16.