шеф-повар соло - ошибка бродячей сборки

Я боролся с этим часами и, похоже, не добился никакого прогресса. Любые советы о том, где я должен начать отладку, будут оценены.

Я пытаюсь подготовить бродячую машину и получаю следующую ошибку.

`==> default: Running provisioner: chef_solo...
Generating chef JSON and uploading...
==> default: Running chef-solo...
==> default: stdin: is not a tty
==> default: [2014-05-14T11:16:08+00:00] INFO: *** Chef 10.14.2 ***
==> default: [2014-05-14T11:16:08+00:00] INFO: Setting the run_list to ["recipe[nginx]"] from JSON
==> default: [2014-05-14T11:16:08+00:00] INFO: Run List is [recipe[nginx]]
==> default: [2014-05-14T11:16:08+00:00] INFO: Run List expands to [nginx]
==> default: [2014-05-14T11:16:08+00:00] INFO: Starting Chef Run for precise64
==> default: [2014-05-14T11:16:08+00:00] INFO: Running start handlers
==> default: [2014-05-14T11:16:08+00:00] INFO: Start handlers complete.
==> default: 
==> default: ================================================================================
==> default: Recipe Compile Error in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/build-essential/libraries/xcode_command_line_tools.rb
==> default: ================================================================================
==> default: 
==> default: NameError
==> default: ---------
==> default: uninitialized constant Chef::Resource::LWRPBase
==> default: 
==> default: Cookbook Trace:
==> default: ---------------
==> default:   /tmp/vagrant-chef-3/chef-solo-1/cookbooks/build-essential/libraries/xcode_command_line_tools.rb:21
==> default: 
==> default: Relevant File Content:
==> default: ----------------------
==> default: /tmp/vagrant-chef-3/chef-solo-1/cookbooks/build-essential/libraries/xcode_command_line_tools.rb:
==> default: 
==> default:   1:  #
==> default:   2:  # Cookbook Name:: build-essential
==> default:   3:  # Library:: xcode_command_line_tools
==> default:   4:  #
==> default:   5:  # Copyright 2014, Chef Software, Inc.
==> default:   6:  #
==> default:   7:  # Licensed under the Apache License, Version 2.0 (the "License");
==> default:   8:  # you may not use this file except in compliance with the License.
==> default:   9:  # You may obtain a copy of the License at
==> default: [2014-05-14T11:16:09+00:00] ERROR: Running exception handlers
==> default: [2014-05-14T11:16:09+00:00] ERROR: Exception handlers complete
==> default: [2014-05-14T11:16:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2014-05-14T11:16:09+00:00] FATAL: NameError: uninitialized constant Chef::Resource::LWRPBase
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.`

Я использую плагин berkshelf-vagrant с vagrant.

Бродяга 1.6.2

Мой бродячий файл имеет следующее:

config.vm.provision :chef_solo do |chef|

  chef.run_list = [
    "recipe[nginx]"
  ]
end

person RMcNairn    schedule 14.05.2014    source источник


Ответы (1)


Вы используете очень старую версию Chef. Вы можете использовать vagrant-omnibus, чтобы установить более современную версию Chef на свой компьютер.

Ваша проблема очень похожа на COOK-4441. Причина: Шеф 10, а требуется 11.

person StephenKing    schedule 14.05.2014