Chef installation problem in Ecuador

361 views
Skip to first unread message

Gonzalez, Fernando (FOM)

unread,
May 8, 2013, 4:50:55 AM5/8/13
to nfms4re...@googlegroups.com


Trying to install in Ecuador I am getting several error messages.
Apparently each time one different. Last one is this one[1].

Any interpretation of the chef output[1]? Any hint about the cause of
the error?

Cheers.

[1]
....
[Mon, 06 May 2013 18:38:00 -0700] INFO: Processing
ruby_block[set-env-java-home] action create (java::oracle line 43)
[Mon, 06 May 2013 18:38:00 -0700] INFO: ruby_block[set-env-java-home] called
[Mon, 06 May 2013 18:38:00 -0700] INFO: Processing
file[/etc/profile.d/jdk.sh] action create (java::oracle line 49)
[Mon, 06 May 2013 18:38:01 -0700] INFO: entered create
[Mon, 06 May 2013 18:38:01 -0700] INFO: file[/etc/profile.d/jdk.sh] mode
changed to 755
[Mon, 06 May 2013 18:38:01 -0700] INFO: file[/etc/profile.d/jdk.sh]
created file /etc/profile.d/jdk.sh
[Mon, 06 May 2013 18:38:01 -0700] INFO: Processing java_ark[jdk] action
install (java::oracle line 57)
[Mon, 06 May 2013 18:38:01 -0700] INFO: Adding jdk to
/usr/lib/jvm/jdk1.6.0_37
[Mon, 06 May 2013 18:38:01 -0700] INFO: Processing package[curl] action
install (/var/chef-solo/cookbooks/java/providers/ark.rb line 60)

================================================================================
Error executing action `install` on resource 'java_ark[jdk]'
================================================================================

Mixlib::ShellOut::CommandTimeout
--------------------------------
command timed out:
---- Begin output of curl -L --cookie
"oraclelicensejdk-6u37-b06-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"
http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-i586.bin
-o /var/chef-solo/jdk-6u37-linux-i586.bin ----
STDOUT:
STDERR: % Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
0 0 0 286 0 0 78 0 --:--:-- 0:00:03
--:--:-- 133
1 68.4M 1 941k 0 0 1408 0 14:09:28 0:11:24
13:58:04 0
---- End output of curl -L --cookie
"oraclelicensejdk-6u37-b06-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"
http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-i586.bin
-o /var/chef-solo/jdk-6u37-linux-i586.bin ----

Cookbook Trace:
---------------
/var/chef-solo/cookbooks/java/providers/ark.rb:71:in
`download_direct_from_oracle'
/var/chef-solo/cookbooks/java/providers/ark.rb:66:in
`download_direct_from_oracle'
/var/chef-solo/cookbooks/java/providers/ark.rb:109:in `class_from_file'

Resource Declaration:
---------------------
# In /var/chef-solo/cookbooks/java/recipes/oracle.rb

57: java_ark "jdk" do
58: url tarball_url
59: checksum tarball_checksum
60: app_home java_home
61: bin_cmds ["java", "jar"]
62: action :install
63: end
64:

Compiled Resource:
------------------
# Declared in /var/chef-solo/cookbooks/java/recipes/oracle.rb:57:in
`from_file'

java_ark("jdk") do
app_home "/usr/lib/jvm/default-java"
url
"http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-i586.bin"
retry_delay 2
cookbook_name :java
default true
retries 0
owner "root"
action [:install]
app_home_mode 493
bin_cmds ["java", "jar"]
checksum
"44cc51ed452a08a3e0b4e397922832607161642e5a6e206f256af86f8fbaae90"
supports {:exception=>true, :report=>true}
recipe_name "oracle"
end

[Mon, 06 May 2013 18:49:35 -0700] ERROR: Running exception handlers
[Mon, 06 May 2013 18:49:35 -0700] ERROR: Exception handlers complete
[Mon, 06 May 2013 18:49:35 -0700] FATAL: Stacktrace dumped to
/var/chef-solo/chef-stacktrace.out
[Mon, 06 May 2013 18:49:35 -0700] FATAL:
Mixlib::ShellOut::CommandTimeout: java_ark[jdk] (java::oracle line 57)
had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
---- Begin output of curl -L --cookie
"oraclelicensejdk-6u37-b06-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"
http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-i586.bin
-o /var/chef-solo/jdk-6u37-linux-i586.bin ----
STDOUT:
STDERR: % Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
0 0 0 286 0 0 78 0 --:--:-- 0:00:03
--:--:-- 133
1 68.4M 1 941k 0 0 1408 0 14:09:28 0:11:24
13:58:04 0
---- End output of curl -L --cookie
"oraclelicensejdk-6u37-b06-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"
http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-i586.bin
-o /var/chef-solo/jdk-6u37-linux-i586.bin ----


Stefano Giaccio

unread,
May 8, 2013, 5:43:34 AM5/8/13
to nfms4re...@googlegroups.com, fernando...@fao.org
I think it's the timeout option in Chef::ShellOut that raises an exception if curl doesn't send any output for 60 seconds. I didn't find a simple way to change it, can you try to download the Java installer manually with the following command and then run chef again?

curl -C - -L --cookie "oraclelicensejdk-6u37-b06-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com" http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-x64.bin -o /var/chef-solo/jdk-6u37-linux-x64.bin

Cheers,
Stefano
Reply all
Reply to author
Forward
0 new messages