You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this cookbook is still being maintained, but I have tried searching for the cause of this issue all over. My understanding of chef is still puerile, but I believe I am following the correct method for implementing this cookbook.
First, I git cloned the repo into my ~/chef-repo/cookbooks folder. Then, in my custom cookbook, I added depends 'boxstarter' to my metadata file, and include_recipe 'boxstarter::default' to the beginning of my default.rb recipe. Then I updated my metadata version and ran berks install, berks upload. This completed successfully, and I was able to see the boxstarter recipe-set on my chef manage web interface.
The problem starts when i try to knife winrm 'name:mynodename' chef-client credentials options etc..
When that didn't work, and after much googling and tinkering, I decided to start over, reclone the git repo, and run kitchen create -l debug on the fresh clone. I get the same error there (pasted below from logs)
Am I supposed to install boxstarter manually on the node before I attempt to run this cookbook?
Starting Chef Client, version 13.5.3
Creating a new client identity for default-windows-2012R2 using the validator key.
resolving cookbooks for run list: ["boxstarter_test::simple"]
Synchronizing Cookbooks:
- boxstarter_test (0.1.0)
- boxstarter (1.1.7)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/boxstarter_test/recipes/simple.rb
================================================================================
NameError
---------
uninitialized constant Chef::Provider::Boxstarter
Did you mean? BoxstarterLibrary
System Info:
------------
chef_version=13.5.3
platform=windows
platform_version=6.3.9600
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-client
executable=C:/opscode/chef/bin/chef-client
Running handlers:
[2017-10-19T14:04:03+00:00] ERROR: Running exception handlers
Running handlers complete
[2017-10-19T14:04:03+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 07 seconds
[2017-10-19T14:04:03+00:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
[2017-10-19T14:04:03+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-10-19T14:04:03+00:00] FATAL: NameError: uninitialized constant Chef::Provider::Boxstarter
Did you mean? BoxstarterLibrary
Cleaning up local sandbox in C:/Users/trentb/AppData/Local/Temp/default-windows-2012R2-sandbox-20171019-4388-1t6ihj5
Converge failed on instance <default-windows-2012R2>.
------Exception-------
Class: Kitchen::ActionFailed
Message: WinRM exited (1) for command: [$env:PATH = [System.Environment]::GetEnvironmentVariable("PATH","Machine")
& $env:systemdrive\opscode\chef\bin\chef-client.bat --local-mode --config $env:TEMP\kitchen\client.rb --log_level auto --force-formatter --no-color --json-attributes $env:TEMP\kitchen\dna.json --chef-zero-port 8889 ; exit $LastExitCode]
----------------------
------Backtrace-------
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/provisioner/base.rb:86:in `rescue in call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/provisioner/base.rb:89:in `call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:373:in `block in converge_action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:513:in `call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:513:in `synchronize_or_call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:478:in `block in action'
C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:477:in `action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:369:in `converge_action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:348:in `block in transition_to'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:347:in `each'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:347:in `transition_to'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:138:in `converge'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/command.rb:201:in `public_send'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/command.rb:201:in `run_action_in_thread'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/command.rb:173:in `block (2 levels) in run_action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'
----End Backtrace-----
---Nested Exception---
Class: Kitchen::Transport::WinrmFailed
Message: WinRM exited (1) for command: [$env:PATH = [System.Environment]::GetEnvironmentVariable("PATH","Machine")
& $env:systemdrive\opscode\chef\bin\chef-client.bat --local-mode --config $env:TEMP\kitchen\client.rb --log_level auto --force-formatter --no-color --json-attributes $env:TEMP\kitchen\dna.json --chef-zero-port 8889 ; exit $LastExitCode]
----------------------
------Backtrace-------
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/provisioner/base.rb:86:in `rescue in call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/provisioner/base.rb:89:in `call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:373:in `block in converge_action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:513:in `call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:513:in `synchronize_or_call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:478:in `block in action'
C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:477:in `action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:369:in `converge_action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:348:in `block in transition_to'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:347:in `each'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:347:in `transition_to'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/instance.rb:138:in `converge'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/command.rb:201:in `public_send'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/command.rb:201:in `run_action_in_thread'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.2/lib/kitchen/command.rb:173:in `block (2 levels) in run_action'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `call'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'
----End Backtrace-----
[WinRM] closing remote shell 841F9BC1-8E3C-4A68-8D87-1679BF1EE270 on http://127.0.0.1:55985/wsman
[WinRM] remote shell 841F9BC1-8E3C-4A68-8D87-1679BF1EE270 closed
The text was updated successfully, but these errors were encountered:
I'm not sure if this cookbook is still being maintained, but I have tried searching for the cause of this issue all over. My understanding of chef is still puerile, but I believe I am following the correct method for implementing this cookbook.
First, I git cloned the repo into my ~/chef-repo/cookbooks folder. Then, in my custom cookbook, I added depends 'boxstarter' to my metadata file, and include_recipe 'boxstarter::default' to the beginning of my default.rb recipe. Then I updated my metadata version and ran berks install, berks upload. This completed successfully, and I was able to see the boxstarter recipe-set on my chef manage web interface.
The problem starts when i try to knife winrm 'name:mynodename' chef-client credentials options etc..
When that didn't work, and after much googling and tinkering, I decided to start over, reclone the git repo, and run kitchen create -l debug on the fresh clone. I get the same error there (pasted below from logs)
Am I supposed to install boxstarter manually on the node before I attempt to run this cookbook?
The text was updated successfully, but these errors were encountered: