Skip to content

Instantly share code, notes, and snippets.

@someara
Created July 4, 2014 00:49
Show Gist options
  • Save someara/669e3c77418361041bed to your computer and use it in GitHub Desktop.
Save someara/669e3c77418361041bed to your computer and use it in GitHub Desktop.
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/chef-dk/libraries/chef_dk.rb
================================================================================
LoadError
---------
cannot load such file -- /tmp/kitchen/cache/cookbooks/chef-dk/libraries/provider/chef_dk
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/chef-dk/libraries/provider.rb:21:in `require_relative'
/tmp/kitchen/cache/cookbooks/chef-dk/libraries/provider.rb:21:in `<top (required)>'
/tmp/kitchen/cache/cookbooks/chef-dk/libraries/chef_dk.rb:21:in `require_relative'
/tmp/kitchen/cache/cookbooks/chef-dk/libraries/chef_dk.rb:21:in `<top (required)>'
Relevant File Content:
----------------------
/tmp/kitchen/cache/cookbooks/chef-dk/libraries/provider.rb:
14: # Unless required by applicable law or agreed to in writing, software
15: # distributed under the License is distributed on an "AS IS" BASIS,
16: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: # See the License for the specific language governing permissions and
18: # limitations under the License.
19: #
20:
21>> require_relative 'provider/chef_dk'
22:
Running handlers:
[2014-07-03T20:46:56-04:00] ERROR: Running exception handlers
Running handlers complete
[2014-07-03T20:46:56-04:00] ERROR: Exception handlers complete
[2014-07-03T20:46:56-04:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 5.820424224 seconds
[2014-07-03T20:46:56-04:00] ERROR: cannot load such file -- /tmp/kitchen/cache/cookbooks/chef-dk/libraries/provider/chef_dk
[2014-07-03T20:46:56-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> Converge failed on instance <master-centos-64>.
>>>>>> Please see .kitchen/logs/master-centos-64.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sudo -E chef-client -z --config /tmp/kitchen/client.rb --log_level info --json-attributes /tmp/kitchen/dna.json]
>>>>>> ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment