mwrock / packer-templates

Templates for creating vagrant boxes
Other
536 stars 250 forks source link

Running Packer build version (0.12.0) fails with chef-client-12.17.44 #62

Closed andrewjmackay closed 7 years ago

andrewjmackay commented 7 years ago

Issue with running remote cookbook "type": "chef-solo", "remote_cookbook_paths": [ "c:/windows/temp/packer-chef-client/cookbooks-0", "c:/windows/temp/packer-chef-client/cookbooks-1"

PS C:\Windows\Temp\packer-chef-solo\local-mode-cache\cache> cat .\chef-stacktrace.out Generated at 2016-12-13 14:53:45 +0000 Net::HTTPFatalError: 500 "Internal Server Error" c:/opscode/chef/embedded/lib/ruby/2.3.0/net/http/response.rb:120:in error!' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/http.rb:150:inrequest' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/http.rb:131:in post' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/node.rb:616:increate' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/node.rb:569:in rescue in find_or_create' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/node.rb:565:infind_or_create' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/policy_builder/dynamic.rb:72:in load_node' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/client.rb:468:inload_node' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/client.rb:270:in run' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application.rb:276:inrun_with_graceful_exit_option' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application.rb:252:in block in run_chef_client' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/local_mode.rb:44:inwith_server_connectivity' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application.rb:235:in run_chef_client' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application/client.rb:464:insleep_then_run_chef_client' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application/client.rb:451:in block in interval_run_chef_client' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application/client.rb:450:inloop' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application/client.rb:450:in interval_run_chef_client' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application/client.rb:434:inrun_application' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application.rb:59:in run' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/lib/chef/application/solo.rb:226:inrun' c:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44-universal-mingw32/bin/chef-solo:25:in <top (required)>'c:/opscode/chef/bin/chef-solo:68:inload' c:/opscode/chef/bin/chef-solo:68:in `

'

andrewjmackay commented 7 years ago

Sorry, simple issue.

(chef-client-12.17.44) uses a new temporary path so you just need to be aware to update the remote path

  "type": "chef-solo",
  "remote_cookbook_paths": [
    "c:/windows/temp/packer-chef-**solo**/cookbooks-0",
    "c:/windows/temp/packer-chef-**solo**/cookbooks-1"