w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Vagrant, Chef-solo and Java cookbook: Error executing action `install` on resource 'java_ark[jdk]'

I think that the problem is a mismatch between the version of Chef you are using (10.14.2) and the java cookbook.

The implementation of the java_ark resource provider on the cookbook is attempting to use the header method of the Chef remote_file resource when it downloads the Oracle installer. The problem is that the header method was only implemented on the remote_file resource in Chef 11.6.0 (by my reading of the chef source code on Github).

The solution is to either upgrade to the latest version of Chef, or use an older version of the java cookbook that works with Chef 10.x. (The latter is probably a bad idea ... unless you are prepared to manually set the latest Oracle download URL and checksum in the relevant attributes ...)





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.