Chef Cookbook not found

I’m fairly new to Chef, and I’m having some issues following one of the “learn chef” modules…
https://learn.chef.io/modules/local-development/windows/virtualbox/apply-a-cookbook#/

I’m on Step 3 “Create the Test Kitchen instance”. The ‘kitchen create’ command worked. When I attempt the ‘kitchen converge’ command though, I get the error “No such cookbook: learn_chef_iis”.

I’ve already downloaded from git the cookbook to ~\Cookbooks\learn_chef_iis". I’m running the command from inside this folder. If I run the command “knife cookbook list”, it returns 1 cookbook “learn_chef_iis”.

Any ideas what I’m doing wrong?

-Sarkis-

If it helps, this is the results of a “chef --version”…
Chef Development Kit Version: 2.3.4
chef-client version: 13.4.19
berks version: 6.3.1
kitchen version: 1.17.0
inspec version: 1.36.1

Could you try “from scratch” and post the full log output here? This would really help with debugging this issue:

kitchen destroy
rm -rf .kitchen Berksfile.lock
kitchen create
kitchen converge

And maybe also check if there are any local changes to the cookbook. A simple git diff should do the trick.

Kitchen destroyed and recreated. No diffs on the cookbook.

"default-windows-2012R2.log"
I, [2017-10-17T11:58:31.009927 #16224] INFO – default-windows-2012R2: -----> Converging …
I, [2017-10-17T11:58:31.013427 #16224] INFO – default-windows-2012R2: Preparing files for transfer
I, [2017-10-17T11:58:31.015927 #16224] INFO – default-windows-2012R2: Preparing dna.json
I, [2017-10-17T11:58:31.025927 #16224] INFO – default-windows-2012R2: Resolving cookbook dependencies with Berkshelf 6.3.1…
I, [2017-10-17T11:58:44.704927 #16224] INFO – default-windows-2012R2: Removing non-cookbook files before transfer
I, [2017-10-17T11:58:44.758427 #16224] INFO – default-windows-2012R2: Preparing validation.pem
I, [2017-10-17T11:58:44.902927 #16224] INFO – default-windows-2012R2: Preparing client.rb
I, [2017-10-17T11:58:49.087927 #16224] INFO – default-windows-2012R2: -----> Installing Chef Omnibus (install only if missing)
I, [2017-10-17T11:58:50.663927 #16224] INFO – default-windows-2012R2: Downloading package from https://packages.chef.io/files/stable/chef/13.5.3/windows/2016/chef-client-13.5.3-1-x64.msi
I, [2017-10-17T12:01:48.594982 #16224] INFO – default-windows-2012R2: Download complete.
I, [2017-10-17T12:01:51.111493 #16224] INFO – default-windows-2012R2: Successfully verified C:\Users\vagrant\AppData\Local\Temp\chef-client-13.5.3-1-x64.msi
I, [2017-10-17T12:01:51.131009 #16224] INFO – default-windows-2012R2: Installing Chef Omnibus package C:\Users\vagrant\AppData\Local\Temp\chef-client-13.5.3-1-x64.msi
I, [2017-10-17T12:03:39.813385 #16224] INFO – default-windows-2012R2: Installation complete
I, [2017-10-17T12:03:54.379029 #16224] INFO – default-windows-2012R2: Transferring files to
I, [2017-10-17T12:04:13.864605 #16224] INFO – default-windows-2012R2: Starting Chef Client, version 13.5.3
I, [2017-10-17T12:04:19.095786 #16224] INFO – default-windows-2012R2: Creating a new client identity for default-windows-2012R2 using the validator key.
I, [2017-10-17T12:04:19.122808 #16224] INFO – default-windows-2012R2: resolving cookbooks for run list: [“learn_chef_iis::default”]
I, [2017-10-17T12:04:19.141823 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.158336 #16224] INFO – default-windows-2012R2: ================================================================================
I, [2017-10-17T12:04:19.179353 #16224] INFO – default-windows-2012R2: Error Resolving Cookbooks for Run List:
I, [2017-10-17T12:04:19.196367 #16224] INFO – default-windows-2012R2: ================================================================================
I, [2017-10-17T12:04:19.217884 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.233897 #16224] INFO – default-windows-2012R2: Missing Cookbooks:
I, [2017-10-17T12:04:19.252912 #16224] INFO – default-windows-2012R2: ------------------
I, [2017-10-17T12:04:19.268925 #16224] INFO – default-windows-2012R2: No such cookbook: learn_chef_iis
I, [2017-10-17T12:04:19.315462 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.332475 #16224] INFO – default-windows-2012R2: Expanded Run List:
I, [2017-10-17T12:04:19.349489 #16224] INFO – default-windows-2012R2: ------------------
I, [2017-10-17T12:04:19.366503 #16224] INFO – default-windows-2012R2: * learn_chef_iis::default
I, [2017-10-17T12:04:19.384017 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.401531 #16224] INFO – default-windows-2012R2: System Info:
I, [2017-10-17T12:04:19.419045 #16224] INFO – default-windows-2012R2: ------------
I, [2017-10-17T12:04:19.435558 #16224] INFO – default-windows-2012R2: chef_version=13.5.3
I, [2017-10-17T12:04:19.452571 #16224] INFO – default-windows-2012R2: platform=windows
I, [2017-10-17T12:04:19.469585 #16224] INFO – default-windows-2012R2: platform_version=6.3.9600
I, [2017-10-17T12:04:19.486599 #16224] INFO – default-windows-2012R2: ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
I, [2017-10-17T12:04:19.503612 #16224] INFO – default-windows-2012R2: program_name=C:/opscode/chef/bin/chef-client
I, [2017-10-17T12:04:19.521126 #16224] INFO – default-windows-2012R2: executable=C:/opscode/chef/bin/chef-client
I, [2017-10-17T12:04:19.538140 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.555654 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.572167 #16224] INFO – default-windows-2012R2: Running handlers:
I, [2017-10-17T12:04:19.589681 #16224] INFO – default-windows-2012R2: [2017-10-17T16:04:18+00:00] ERROR: Running exception handlers
I, [2017-10-17T12:04:19.605694 #16224] INFO – default-windows-2012R2: Running handlers complete
I, [2017-10-17T12:04:19.623208 #16224] INFO – default-windows-2012R2: [2017-10-17T16:04:18+00:00] ERROR: Exception handlers complete
I, [2017-10-17T12:04:19.639221 #16224] INFO – default-windows-2012R2: Chef Client failed. 0 resources updated in 05 seconds
I, [2017-10-17T12:04:19.656735 #16224] INFO – default-windows-2012R2: [2017-10-17T16:04:18+00:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
I, [2017-10-17T12:04:19.675249 #16224] INFO – default-windows-2012R2: [2017-10-17T16:04:18+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
I, [2017-10-17T12:04:19.694265 #16224] INFO – default-windows-2012R2: [2017-10-17T16:04:18+00:00] FATAL: Net::HTTPServerException: 412 "Precondition Failed"
E, [2017-10-17T12:04:19.795345 #16224] ERROR – default-windows-2012R2: Converge failed on instance .
E, [2017-10-17T12:04:19.795345 #16224] ERROR – default-windows-2012R2: ------Exception-------
E, [2017-10-17T12:04:19.795345 #16224] ERROR – default-windows-2012R2: Class: Kitchen::ActionFailed
E, [2017-10-17T12:04:19.795345 #16224] ERROR – default-windows-2012R2: Message: WinRM exited (1) for command: [$env:TEST_KITCHEN = “1”
$env:PATH = try {
[System.Environment]::GetEnvironmentVariable(‘PATH’,‘Machine’)
} catch { $env:PATH }

& $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]
E, [2017-10-17T12:04:19.795345 #16224] ERROR – default-windows-2012R2: ----------------------
E, [2017-10-17T12:04:19.795345 #16224] ERROR – default-windows-2012R2: ------Backtrace-------
E, [2017-10-17T12:04:19.795345 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:83:in rescue in call' E, [2017-10-17T12:04:19.795846 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:86:incall’
E, [2017-10-17T12:04:19.795846 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:384:in block in converge_action' E, [2017-10-17T12:04:19.795846 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:527:insynchronize_or_call’
E, [2017-10-17T12:04:19.795846 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:489:in block in action' E, [2017-10-17T12:04:19.795846 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/2.4.0/benchmark.rb:293:inmeasure’
E, [2017-10-17T12:04:19.795846 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:488:in action' E, [2017-10-17T12:04:19.795846 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:380:inconverge_action’
E, [2017-10-17T12:04:19.795846 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:359:in block in transition_to' E, [2017-10-17T12:04:19.795846 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:ineach’
E, [2017-10-17T12:04:19.795846 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:in transition_to' E, [2017-10-17T12:04:19.795846 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:135:inconverge’
E, [2017-10-17T12:04:19.795846 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:in public_send' E, [2017-10-17T12:04:19.795846 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:inrun_action_in_thread’
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:169:in block (2 levels) in run_action' E, [2017-10-17T12:04:19.796346 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:inblock in create_with_logging_context’
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: ----End Backtrace-----
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: —Nested Exception—
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: Class: Kitchen::Transport::WinrmFailed
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: Message: WinRM exited (1) for command: [$env:TEST_KITCHEN = “1”
$env:PATH = try {
[System.Environment]::GetEnvironmentVariable(‘PATH’,‘Machine’)
} catch { $env:PATH }

& $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]
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: ----------------------
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: ------Backtrace-------
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:83:in rescue in call' E, [2017-10-17T12:04:19.796346 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:86:incall’
E, [2017-10-17T12:04:19.796346 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:384:in block in converge_action' E, [2017-10-17T12:04:19.796847 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:527:insynchronize_or_call’
E, [2017-10-17T12:04:19.796847 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:489:in block in action' E, [2017-10-17T12:04:19.796847 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/2.4.0/benchmark.rb:293:inmeasure’
E, [2017-10-17T12:04:19.796847 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:488:in action' E, [2017-10-17T12:04:19.796847 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:380:inconverge_action’
E, [2017-10-17T12:04:19.796847 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:359:in block in transition_to' E, [2017-10-17T12:04:19.796847 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:ineach’
E, [2017-10-17T12:04:19.796847 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:in transition_to' E, [2017-10-17T12:04:19.796847 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:135:inconverge’
E, [2017-10-17T12:04:19.796847 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:in public_send' E, [2017-10-17T12:04:19.796847 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:inrun_action_in_thread’
E, [2017-10-17T12:04:19.796847 #16224] ERROR – default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:169:in block (2 levels) in run_action' E, [2017-10-17T12:04:19.797347 #16224] ERROR -- default-windows-2012R2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:inblock in create_with_logging_context’
E, [2017-10-17T12:04:19.797347 #16224] ERROR – default-windows-2012R2: ----End Backtrace-----

"kitchen.log"
I, [2017-10-17T11:57:54.692427 #16224] INFO – Kitchen: -----> Starting Kitchen (v1.17.0)
I, [2017-10-17T11:58:31.009927 #16224] INFO – Kitchen: -----> Converging …
E, [2017-10-17T12:04:20.216682 #16224] ERROR – Kitchen: ------Exception-------
E, [2017-10-17T12:04:20.216682 #16224] ERROR – Kitchen: Class: Kitchen::ActionFailed
E, [2017-10-17T12:04:20.216682 #16224] ERROR – Kitchen: Message: 1 actions failed.

Converge failed on instance <default-windows-2012R2>.  Please see .kitchen/logs/default-windows-2012R2.log for more details

E, [2017-10-17T12:04:20.216682 #16224] ERROR – Kitchen: ----------------------
E, [2017-10-17T12:04:20.216682 #16224] ERROR – Kitchen: ------Backtrace-------
E, [2017-10-17T12:04:20.217183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:183:in report_errors' E, [2017-10-17T12:04:20.217183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:174:inrun_action’
E, [2017-10-17T12:04:20.217183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command/action.rb:36:in block in call' E, [2017-10-17T12:04:20.217183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/2.4.0/benchmark.rb:293:inmeasure’
E, [2017-10-17T12:04:20.217183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command/action.rb:34:in call' E, [2017-10-17T12:04:20.217183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/cli.rb:53:inperform’
E, [2017-10-17T12:04:20.217183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/cli.rb:187:in block (2 levels) in <class:CLI>' E, [2017-10-17T12:04:20.217183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun’
E, [2017-10-17T12:04:20.217183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' E, [2017-10-17T12:04:20.217183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/cli.rb:334:ininvoke_task’
E, [2017-10-17T12:04:20.217183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor.rb:359:in dispatch' E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor/base.rb:440:instart’
E, [2017-10-17T12:04:20.217683 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/bin/kitchen:13:in block in <top (required)>' E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/errors.rb:171:inwith_friendly_errors’
E, [2017-10-17T12:04:20.217683 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/bin/kitchen:13:in <top (required)>' E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: C:/opscode/chefdk/bin/kitchen:279:inload’
E, [2017-10-17T12:04:20.217683 #16224] ERROR – Kitchen: C:/opscode/chefdk/bin/kitchen:279:in <main>' E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: ----End Backtrace----- E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: -Composite Exception-- E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: Class: Kitchen::InstanceFailure E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: Message: Converge failed on instance <default-windows-2012R2>. Please see .kitchen/logs/default-windows-2012R2.log for more details E, [2017-10-17T12:04:20.217683 #16224] ERROR -- Kitchen: ---------------------- E, [2017-10-17T12:04:20.218183 #16224] ERROR -- Kitchen: ------Backtrace------- E, [2017-10-17T12:04:20.218183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:83:inrescue in call’
E, [2017-10-17T12:04:20.218183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:86:in call' E, [2017-10-17T12:04:20.218183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:384:inblock in converge_action’
E, [2017-10-17T12:04:20.218183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:527:in synchronize_or_call' E, [2017-10-17T12:04:20.218183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:489:inblock in action’
E, [2017-10-17T12:04:20.218183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/2.4.0/benchmark.rb:293:in measure' E, [2017-10-17T12:04:20.218183 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:488:inaction’
E, [2017-10-17T12:04:20.218183 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:380:in converge_action' E, [2017-10-17T12:04:20.218684 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:359:inblock in transition_to’
E, [2017-10-17T12:04:20.218684 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:in each' E, [2017-10-17T12:04:20.218684 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:intransition_to’
E, [2017-10-17T12:04:20.218684 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:135:in converge' E, [2017-10-17T12:04:20.218684 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:inpublic_send’
E, [2017-10-17T12:04:20.218684 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:in run_action_in_thread' E, [2017-10-17T12:04:20.218684 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:169:inblock (2 levels) in run_action’
E, [2017-10-17T12:04:20.218684 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context’
E, [2017-10-17T12:04:20.218684 #16224] ERROR – Kitchen: ----End Backtrace-----
E, [2017-10-17T12:04:20.218684 #16224] ERROR – Kitchen: —Nested Exception—
E, [2017-10-17T12:04:20.218684 #16224] ERROR – Kitchen: Class: Kitchen::ActionFailed
E, [2017-10-17T12:04:20.219184 #16224] ERROR – Kitchen: Message: WinRM exited (1) for command: [$env:TEST_KITCHEN = “1”
$env:PATH = try {
[System.Environment]::GetEnvironmentVariable(‘PATH’,‘Machine’)
} catch { $env:PATH }

& $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]
E, [2017-10-17T12:04:20.219184 #16224] ERROR – Kitchen: ----------------------
E, [2017-10-17T12:04:20.219184 #16224] ERROR – Kitchen: ------Backtrace-------
E, [2017-10-17T12:04:20.219184 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:83:in rescue in call' E, [2017-10-17T12:04:20.219184 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/provisioner/base.rb:86:incall’
E, [2017-10-17T12:04:20.219184 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:384:in block in converge_action' E, [2017-10-17T12:04:20.219184 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:527:insynchronize_or_call’
E, [2017-10-17T12:04:20.219184 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:489:in block in action' E, [2017-10-17T12:04:20.219184 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/2.4.0/benchmark.rb:293:inmeasure’
E, [2017-10-17T12:04:20.219184 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:488:in action' E, [2017-10-17T12:04:20.219685 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:380:inconverge_action’
E, [2017-10-17T12:04:20.219685 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:359:in block in transition_to' E, [2017-10-17T12:04:20.219685 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:ineach’
E, [2017-10-17T12:04:20.219685 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:358:in transition_to' E, [2017-10-17T12:04:20.219685 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/instance.rb:135:inconverge’
E, [2017-10-17T12:04:20.219685 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:in public_send' E, [2017-10-17T12:04:20.219685 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:197:inrun_action_in_thread’
E, [2017-10-17T12:04:20.219685 #16224] ERROR – Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/test-kitchen-1.17.0/lib/kitchen/command.rb:169:in block (2 levels) in run_action' E, [2017-10-17T12:04:20.219685 #16224] ERROR -- Kitchen: C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:inblock in create_with_logging_context’
E, [2017-10-17T12:04:20.219685 #16224] ERROR – Kitchen: ----End Backtrace-----

Any ideas? I still can’t get Test Kitchen to work.

Could you provide a folder structure output like tree ~

C:\Chef\Cookbooks
±–learn_chef_iis
| | .gitignore
| | .kitchen.yml
| | Berksfile
| | Berksfile.lock
| | chefignore
| | LICENSE
| | metadata.rb
| | README.md
| |
| ±–.delivery
| | | config.json
| | | project.toml
| | |
| | —build_cookbook
| | | .kitchen.yml
| | | Berksfile
| | | chefignore
| | | LICENSE
| | | metadata.rb
| | | README.md
| | |
| | ±–data_bags
| | | —keys
| | | delivery_builder_keys.json
| | |
| | ±–recipes
| | | default.rb
| | | deploy.rb
| | | functional.rb
| | | lint.rb
| | | provision.rb
| | | publish.rb
| | | quality.rb
| | | security.rb
| | | smoke.rb
| | | syntax.rb
| | | unit.rb
| | |
| | ±–secrets
| | | fakey-mcfakerton
| | |
| | —test
| | —fixtures
| | —cookbooks
| | —test
| | | metadata.rb
| | |
| | —recipes
| | default.rb
| |
| ±–.kitchen
| | | default-windows-2012R2.yml
| | |
| | ±–kitchen-vagrant
| | | —default-windows-2012R2
| | | | Vagrantfile
| | | |
| | | —.vagrant
| | | —machines
| | | —default
| | | —virtualbox
| | | action_set_name
| | | creator_uid
| | | id
| | | index_uuid
| | | synced_folders
| | | vagrant_cwd
| | |
| | —logs
| | default-windows-2012R2.log
| | kitchen.log
| |
| ±–recipes
| | default.rb
| |
| ±–spec
| | | spec_helper.rb
| | |
| | —unit
| | —recipes
| | default_spec.rb
| |
| ±–templates
| | Default.htm.erb
| |
| —test
| —smoke
| —default
| default_test.rb
|
—test
goodbye.rb
hello.rb
webserver.rb