Does the java cookbook work? FATAL: You must set the attributenode to true if you want to download directly from the oracle site!


#1

Does the java cookbook work?

I mean wow…

yes…have set it to true I am looking it the line in attrbures in under
disbeleif tnat I get the below error. Event furtehr I went to hosted chef
console that it was set to true.

default[‘java’][‘install_flavor’] = "oracle"
default[‘java’][‘jdk_version’] = '7’
default[‘java’][‘oracle’][‘accept_oracle_download_terms’] = true

and then why do I get this error?

162.243.106.71 * file[/etc/profile.d/jdk.sh] action create (up to date)
162.243.106.71 Recipe: java::oracle
162.243.106.71 * java_ark[jdk] action install[2014-02-18T23:16:37-05:00]
FATAL: You must set the attribute
node[‘java’][‘oracle’][‘accept_oracle_download_terms’] to true if you want
to download directly from the oracle site!
162.243.106.71
162.243.106.71

162.243.106.71 Error executing action install on resource 'java_ark[jdk]'
162.243.106.71

162.243.106.71
162.243.106.71
162.243.106.71 SystemExit
162.243.106.71 ----------
162.243.106.71 exit


#2

Maybe true needs to be in quotes???

[‘accept_oracle_download_terms’] = “true”

Only saw that because this ‘newby’ gets bit all the time on this kind of thing…prob may not be related at all.

Sent from my iPhone

On Feb 18, 2014, at 10:27 PM, David Montgomery davidmontgomery@gmail.com wrote:

Does the java cookbook work?

I mean wow…

yes…have set it to true I am looking it the line in attrbures in under disbeleif tnat I get the below error. Event furtehr I went to hosted chef console that it was set to true.

default[‘java’][‘install_flavor’] = "oracle"
default[‘java’][‘jdk_version’] = '7’
default[‘java’][‘oracle’][‘accept_oracle_download_terms’] = true

and then why do I get this error?

162.243.106.71 * file[/etc/profile.d/jdk.sh] action create (up to date)
162.243.106.71 Recipe: java::oracle
162.243.106.71 * java_ark[jdk] action install[2014-02-18T23:16:37-05:00] FATAL: You must set the attribute node[‘java’][‘oracle’][‘accept_oracle_download_terms’] to true if you want to download directly from the oracle site!
162.243.106.71
162.243.106.71 ================================================================================
162.243.106.71 Error executing action install on resource 'java_ark[jdk]'
162.243.106.71 ================================================================================
162.243.106.71
162.243.106.71
162.243.106.71 SystemExit
162.243.106.71 ----------
162.243.106.71 exit


#3

On Tuesday, February 18, 2014 at 8:27 PM, David Montgomery wrote:

Does the java cookbook work?

I mean wow…

yes…have set it to true I am looking it the line in attrbures in under disbeleif tnat I get the below error. Event furtehr I went to hosted chef console that it was set to true.

default[‘java’][‘install_flavor’] = "oracle"
default[‘java’][‘jdk_version’] = '7’
default[‘java’][‘oracle’][‘accept_oracle_download_terms’] = true

Where are you setting this? Can you confirm this code is getting evaluated?

You can also try including code like this in the recipe to see what the values are. Put it right above the java_ark resource:

require 'pp’
pp node.debug_value(:java, :oracle)

and then why do I get this error?

162.243.106.71 * file[/etc/profile.d/jdk.sh] action create (up to date)
162.243.106.71 Recipe: java::oracle
162.243.106.71 * java_ark[jdk] action install[2014-02-18T23:16:37-05:00] FATAL: You must set the attribute node[‘java’][‘oracle’][‘accept_oracle_download_terms’] to true if you want to download directly from the oracle site!
162.243.106.71
162.243.106.71 ================================================================================
162.243.106.71 Error executing action install on resource 'java_ark[jdk]'
162.243.106.71 ================================================================================
162.243.106.71
162.243.106.71
162.243.106.71 SystemExit
162.243.106.71 ----------
162.243.106.71 exit

HTH,


Daniel DeLeo