I am following the tutorials https://learn.chef.io/tutorials/local-development/ubuntu/virtualbox/apply-a-cookbook/#step4 and when I do a chef converge I get the following error
Starting Kitchen (v1.16.0)
Converging ...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 5.6.4...
------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Failed to complete #converge action: [SSL_connect return
state=error: certificate verify failed] on default-ubuntu-1404Please see .kitchen/logs/kitchen.log for more details
Also try runningkitchen diagnose --all
for configuration
I tried debugging the issue and got the following logs for kitchen converge -l debug
-----> Starting Kitchen (v1.16.0)
D [Vagrant command] BEGIN (vagrant --version)
D [Vagrant command] END (0m0.00s)
D Berksfile found at D:/chef->>>>>>repo/cookbooks/learn_chef_apache2/Berksfile, loading Berkshelf
D Berkshelf 5.6.4 library loaded
-----> Converging ...
Preparing files for transfer
Creating local sandbox in >>>>>>C:/Users/AKANKS~1/AppData/Local/Temp/default-ubuntu-1404-sandbox-20170412-13904-1auim7
Preparing dna.json
Creating dna.json from {:run_list=>["recipe[learn_chef_apache2::default]"
]}
Resolving cookbook dependencies with Berkshelf 5.6.4...
Using Berksfile from D:/chef-repo/cookbooks/learn_chef_apache2/Berksfile
Cleaning up local sandbox in >>>>>>C:/Users/AKANKS~1/AppData/Local/Temp/default
-ubuntu-1404-sandbox-20170412-13904-1auim7
------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Failed to complete #converge action: [SSL_connect returned=1 errno=0
state=error: certificate verify failed] on default-ubuntu-1404Please see .kitchen/logs/kitchen.log for more details
Also try runningkitchen diagnose --all
for configuration
------Exception------- Class: Kitchen::ActionFailed Message: 1 actions failed. Failed to complete #converge action: [SSL_connect returned=1 errno=0
state=error: certificate verify failed] on default-ubuntu-1404
D ----------------------
D ------Backtrace-------
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l
ib/kitchen/command.rb:183:in report_errors' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l ib/kitchen/command.rb:174:in
run_action'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l
ib/kitchen/command/action.rb:36:in block in call' D D:/opscode/chefdk/embedded/lib/ruby/2.3.0/benchmark.rb:293:in
measure'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l
ib/kitchen/command/action.rb:34:in call' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l ib/kitchen/cli.rb:53:in
perform'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l
ib/kitchen/cli.rb:187:in block (2 levels) in <class:CLI>' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/ command.rb:27:in
run'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/
invocation.rb:126:in invoke_command' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l ib/kitchen/cli.rb:334:in
invoke_task'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.
rb:359:in dispatch' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/ base.rb:440:in
start'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/b
in/kitchen:13:in block in <top (required)>' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/l ib/kitchen/errors.rb:171:in
with_friendly_errors'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/test-kitchen-1.16.0/b
in/kitchen:13:in <top (required)>' D D:/opscode/chefdk/bin/kitchen:24:in
load'
D D:/opscode/chefdk/bin/kitchen:24:in <main>' D ----End Backtrace----- D -Composite Exception-- D Class: Kitchen::ActionFailed D Message: Failed to complete #converge action: [SSL_connect returned=1 err no=0 state=error: certificate verify failed] on default-ubuntu-1404 D ---------------------- D ------Backtrace------- D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/ssl_socket.rb:103:in
connect'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/ssl_socket.rb:103:in ssl_connect' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/ssl_socket.rb:41:in
initialize'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/ssl_socket.rb:26:in new' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/ssl_socket.rb:26:in
create_socket'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/session.rb:752:in block in connect' D D:/opscode/chefdk/embedded/lib/ruby/2.3.0/timeout.rb:91:in
block in time
out'
D D:/opscode/chefdk/embedded/lib/ruby/2.3.0/timeout.rb:101:in timeout' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/session.rb:748:in
connect'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/session.rb:511:in query' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/session.rb:177:in
query'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient.rb:1242:in do_get_block' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient.rb:1019:in
block in do_request'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient.rb:1133:in protect_keep_alive_disconnected' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient.rb:1014:in
do_request'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient.rb:856:in request' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far aday/adapter/httpclient.rb:36:in
call'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far
aday/request/retry.rb:116:in call' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far aday/response.rb:8:in
call'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far
aday/rack_builder.rb:139:in build_response' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far aday/connection.rb:377:in
run_request'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far
aday/connection.rb:140:in get' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-api-client- 3.0.0/lib/berkshelf/api_client/connection.rb:60:in
universe'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.6.4/lib/b
erkshelf/source.rb:58:in build_universe' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.6.4/lib/b erkshelf/installer.rb:21:in
block (2 levels) in build_universe'
D ----End Backtrace-----
D ---Nested Exception---
D Class: Kitchen::ActionFailed
D Message: Failed to complete #converge action: [SSL_connect returned=1 err
no=0 state=error: certificate verify failed]
D ----------------------
D ------Backtrace-------
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/ssl_socket.rb:103:in connect' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/ssl_socket.rb:103:in
ssl_connect'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/ssl_socket.rb:41:in initialize' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/ssl_socket.rb:26:in
new'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/ssl_socket.rb:26:in create_socket' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/session.rb:752:in
block in connect'
D D:/opscode/chefdk/embedded/lib/ruby/2.3.0/timeout.rb:91:in block in time out' D D:/opscode/chefdk/embedded/lib/ruby/2.3.0/timeout.rb:101:in
timeout'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/session.rb:748:in connect' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient/session.rb:511:in
query'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient/session.rb:177:in query' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient.rb:1242:in
do_get_block'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient.rb:1019:in block in do_request' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient.rb:1133:in
protect_keep_alive_disconnected'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/
httpclient.rb:1014:in do_request' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/ httpclient.rb:856:in
request'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far
aday/adapter/httpclient.rb:36:in call' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far aday/request/retry.rb:116:in
call'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far
aday/response.rb:8:in call' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far aday/rack_builder.rb:139:in
build_response'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far
aday/connection.rb:377:in run_request' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/far aday/connection.rb:140:in
get'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-api-client-
3.0.0/lib/berkshelf/api_client/connection.rb:60:in universe' D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.6.4/lib/b erkshelf/source.rb:58:in
build_universe'
D D:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/berkshelf-5.6.4/lib/b
erkshelf/installer.rb:21:in `block (2 levels) in build_universe'
D ----End Backtrace-----
What could be the fix for this?