2014-05-14 14 views
5

Walczyłem z tym przez wiele godzin i nie robię żadnego postępu. Wszelkie wskazówki dotyczące tego, gdzie powinienem rozpocząć debugowanie tego byłoby docenione.szef kuchni solo - błędny błąd budowy maszyny

Próbuję udostępnić maszynę włóczęgom i uzyskać następujący błąd.

`==> 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.` 

używam pluginu berkshelf-włóczęga z włóczęgi

Vagrant 1.6.2

Mój plik włóczęga ma następujący:

config.vm.provision :chef_solo do |chef| 

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

Odpowiedz

8

Używasz bardzo starej wersji szefa kuchni. Możesz użyć vagrant-omnibus, aby zainstalować bardziej nowoczesną wersję Chef w swoim pudełku.

Twój problem wygląda bardzo podobnie do COOK-4441. Powód: Chef 10, a 11 jest wymagane.

+0

który działał idealnie, dziękuję. – RMcNairn

Powiązane problemy