Kitchen error when following installation instructions

Posted in General by Jelle de Jong Wed May 11 2016 18:48:07 GMT+0000 (UTC)·5·Viewed 318 times

Hi, I got inspired with the SKF after attending a conference held in Amsterdam just today. I followed the installation instruction, I installed kitchen, OracleVM, and Vagrant. I then started kitchen and after calling the command 'kitchen converge default' (in a cmd-promt as admin), I get an error, and it appears to be something having to do with ssl. I will post that below, as well as the log it refers to -----------kitchen command output --------- C:\test\owasp-skf-chef-master>kitchen converge default -----> Starting Kitchen (v1.7.3) -----> Creating <default-centos-71>... Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'bento/centos-7.1'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'bento/centos-7.1' is up to date... ==> default: Setting the name of the VM: kitchen-owasp-skf-chef-master-default-centos-71_default_1462992198137_25114 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Remote connection disconnect. Retrying... default: Warning: Remote connection disconnect. Retrying... default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... ==> default: Setting hostname... ==> default: Configuring and enabling network interfaces... ==> default: Machine not provisioned because `--no-provision` is specified. [SSH] Established Vagrant instance <default-centos-71> created. Finished creating <default-centos-71> (0m33.30s). -----> Converging <default-centos-71>... Preparing files for transfer Preparing dna.json Resolving cookbook dependencies with Berkshelf 4.3.2... Removing non-cookbook files before transfer Preparing solo.rb -----> Installing Chef Omnibus (install only if missing) Downloading https://www.chef.io/chef/install.sh to file /tmp/install.sh Trying wget... Download complete. el 7 x86_64 Getting information for chef stable for el... downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=7&m=x86_64 to file /tmp/install.sh.12881/metadata.txt trying wget... sha1 f14720651b4876de836f244f8b56218ba4239672 sha256 f1356a0f13a79b494b3193158a74a2762b4f5338e4227235e5353ddd1d4a6e00 url https://packages.chef.io/stable/el/7/chef-12.9.41-1.el7.x86_64.rpm version 12.9.41 downloaded metadata file looks valid... downloading https://packages.chef.io/stable/el/7/chef-12.9.41-1.el7.x86_64.rpm to file /tmp/install.sh.12881/chef-12.9.41-1.el7.x86_64.rpm trying wget... Comparing checksum with sha256sum... WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING You are installing an omnibus package without a version pin. If you are installing on production servers via an automated process this is DANGEROUS and you will be upgraded without warning on new releases, even to new major releases. Letting the version float is only appropriate in desktop, test, development or CI/CD environments. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING Installing chef installing with rpm... warning: /tmp/install.sh.12881/chef-12.9.41-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY Preparing... ################################# [100%] Updating / installing... 1:chef-12.9.41-1.el7 ################################# [100%] Thank you for installing Chef! Transferring files to <default-centos-71> Starting Chef Client, version 12.9.41 Installing Cookbook Gems: Compiling Cookbooks... Converging 23 resources Recipe: owasp-skf::epel * remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm] action create[2016-05-11T18:44:09+00:00] WARN: remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm] cannot be downloaded from http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm: 404 "Not Found" ================================================================================ Error executing action `create` on resource 'remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm]' ================================================================================ Net::HTTPServerException ------------------------ 404 "Not Found" Resource Declaration: --------------------- # In /tmp/kitchen/cookbooks/owasp-skf/recipes/epel.rb 12: remote_file "#{Chef::Config[:file_cache_path]}/epel-release-7-5.noarch.rpm" do 13: source "http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm" 14: action :create 15: end 16: Compiled Resource: ------------------ # Declared in /tmp/kitchen/cookbooks/owasp-skf/recipes/epel.rb:12:in `from_file' remote_file("/tmp/kitchen/cache/epel-release-7-5.noarch.rpm") do provider Chef::Provider::RemoteFile action [:create] retries 0 retry_delay 2 default_guard_interpreter :default source ["http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm"] use_etag true use_last_modified true declared_type :remote_file cookbook_name :"owasp-skf" recipe_name "epel" atomic_update true path "/tmp/kitchen/cache/epel-release-7-5.noarch.rpm" end Platform: --------- x86_64-linux Running handlers: [2016-05-11T18:44:09+00:00] ERROR: Running exception handlers Running handlers complete [2016-05-11T18:44:09+00:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 01 seconds [2016-05-11T18:44:09+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out [2016-05-11T18:44:09+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2016-05-11T18:44:09+00:00] ERROR: remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm] (owasp-skf::epel line 12) had an error: Net::HTTPServerException: 404 "Not Found" [2016-05-11T18:44:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) >>>>>> Converge failed on instance <default-centos-71>. >>>>>> Please see .kitchen/logs/default-centos-71.log for more details >>>>>> ------Exception------- >>>>>> Class: Kitchen::ActionFailed >>>>>> Message: SSH exited (1) for command: [sh -c ' sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json '] >>>>>> ---------------------- zlib(finalizer): the stream was freed prematurely. ---------default-centos-71.log----------- I, [2016-05-11T20:43:10.896608 #4388] INFO -- default-centos-71: -----> Creating <default-centos-71>... I, [2016-05-11T20:43:13.019724 #4388] INFO -- default-centos-71: Bringing machine 'default' up with 'virtualbox' provider... I, [2016-05-11T20:43:13.158093 #4388] INFO -- default-centos-71: ==> default: Importing base box 'bento/centos-7.1'... I, [2016-05-11T20:43:17.074508 #4388] INFO -- default-centos-71: Progress: 90% ==> default: Matching MAC address for NAT networking... I, [2016-05-11T20:43:17.190817 #4388] INFO -- default-centos-71: ==> default: Checking if box 'bento/centos-7.1' is up to date... I, [2016-05-11T20:43:18.171425 #4388] INFO -- default-centos-71: ==> default: Setting the name of the VM: kitchen-owasp-skf-chef-master-default-centos-71_default_1462992198137_25114 I, [2016-05-11T20:43:19.578166 #4388] INFO -- default-centos-71: ==> default: Clearing any previously set network interfaces... I, [2016-05-11T20:43:19.704502 #4388] INFO -- default-centos-71: ==> default: Preparing network interfaces based on configuration... I, [2016-05-11T20:43:19.704502 #4388] INFO -- default-centos-71: default: Adapter 1: nat I, [2016-05-11T20:43:19.704502 #4388] INFO -- default-centos-71: default: Adapter 2: hostonly I, [2016-05-11T20:43:19.804769 #4388] INFO -- default-centos-71: ==> default: Forwarding ports... I, [2016-05-11T20:43:19.851894 #4388] INFO -- default-centos-71: default: 22 (guest) => 2222 (host) (adapter 1) I, [2016-05-11T20:43:19.966198 #4388] INFO -- default-centos-71: ==> default: Booting VM... I, [2016-05-11T20:43:21.843921 #4388] INFO -- default-centos-71: ==> default: Waiting for machine to boot. This may take a few minutes... I, [2016-05-11T20:43:22.012710 #4388] INFO -- default-centos-71: default: SSH address: 127.0.0.1:2222 I, [2016-05-11T20:43:22.012710 #4388] INFO -- default-centos-71: default: SSH username: vagrant I, [2016-05-11T20:43:22.012710 #4388] INFO -- default-centos-71: default: SSH auth method: private key I, [2016-05-11T20:43:22.146171 #4388] INFO -- default-centos-71: default: Warning: Remote connection disconnect. Retrying... I, [2016-05-11T20:43:32.223482 #4388] INFO -- default-centos-71: default: Warning: Remote connection disconnect. Retrying... I, [2016-05-11T20:43:34.001658 #4388] INFO -- default-centos-71: default: I, [2016-05-11T20:43:34.001658 #4388] INFO -- default-centos-71: default: Vagrant insecure key detected. Vagrant will automatically replace I, [2016-05-11T20:43:34.001658 #4388] INFO -- default-centos-71: default: this with a newly generated keypair for better security. I, [2016-05-11T20:43:35.204772 #4388] INFO -- default-centos-71: default: I, [2016-05-11T20:43:35.204772 #4388] INFO -- default-centos-71: default: Inserting generated public key within guest... I, [2016-05-11T20:43:35.621839 #4388] INFO -- default-centos-71: default: Removing insecure key from the guest if it's present... I, [2016-05-11T20:43:35.984932 #4388] INFO -- default-centos-71: default: Key inserted! Disconnecting and reconnecting using new SSH key... I, [2016-05-11T20:43:36.867151 #4388] INFO -- default-centos-71: ==> default: Machine booted and ready! I, [2016-05-11T20:43:36.867151 #4388] INFO -- default-centos-71: ==> default: Checking for guest additions in VM... I, [2016-05-11T20:43:36.897572 #4388] INFO -- default-centos-71: ==> default: Setting hostname... I, [2016-05-11T20:43:37.440249 #4388] INFO -- default-centos-71: ==> default: Configuring and enabling network interfaces... I, [2016-05-11T20:43:41.364601 #4388] INFO -- default-centos-71: ==> default: Machine not provisioned because `--no-provision` is specified. I, [2016-05-11T20:43:44.188878 #4388] INFO -- default-centos-71: [SSH] Established I, [2016-05-11T20:43:44.190840 #4388] INFO -- default-centos-71: Vagrant instance <default-centos-71> created. I, [2016-05-11T20:43:44.196728 #4388] INFO -- default-centos-71: Finished creating <default-centos-71> (0m33.30s). I, [2016-05-11T20:43:44.202616 #4388] INFO -- default-centos-71: -----> Converging <default-centos-71>... I, [2016-05-11T20:43:44.206542 #4388] INFO -- default-centos-71: Preparing files for transfer I, [2016-05-11T20:43:44.210467 #4388] INFO -- default-centos-71: Preparing dna.json I, [2016-05-11T20:43:44.212430 #4388] INFO -- default-centos-71: Resolving cookbook dependencies with Berkshelf 4.3.2... I, [2016-05-11T20:43:46.409635 #4388] INFO -- default-centos-71: Removing non-cookbook files before transfer I, [2016-05-11T20:43:46.467534 #4388] INFO -- default-centos-71: Preparing solo.rb I, [2016-05-11T20:43:46.574499 #4388] INFO -- default-centos-71: -----> Installing Chef Omnibus (install only if missing) I, [2016-05-11T20:43:46.580387 #4388] INFO -- default-centos-71: Downloading https://www.chef.io/chef/install.sh to file /tmp/install.sh I, [2016-05-11T20:43:46.580387 #4388] INFO -- default-centos-71: Trying wget... I, [2016-05-11T20:43:47.504803 #4388] INFO -- default-centos-71: Download complete. I, [2016-05-11T20:43:47.506765 #4388] INFO -- default-centos-71: el 7 x86_64 I, [2016-05-11T20:43:47.507747 #4388] INFO -- default-centos-71: Getting information for chef stable for el... I, [2016-05-11T20:43:47.507747 #4388] INFO -- default-centos-71: downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=7&m=x86_64 I, [2016-05-11T20:43:47.507747 #4388] INFO -- default-centos-71: to file /tmp/install.sh.12881/metadata.txt I, [2016-05-11T20:43:47.532280 #4388] INFO -- default-centos-71: trying wget... I, [2016-05-11T20:43:48.337954 #4388] INFO -- default-centos-71: sha1 f14720651b4876de836f244f8b56218ba4239672 I, [2016-05-11T20:43:48.337954 #4388] INFO -- default-centos-71: sha256 f1356a0f13a79b494b3193158a74a2762b4f5338e4227235e5353ddd1d4a6e00 I, [2016-05-11T20:43:48.337954 #4388] INFO -- default-centos-71: url https://packages.chef.io/stable/el/7/chef-12.9.41-1.el7.x86_64.rpm I, [2016-05-11T20:43:48.337954 #4388] INFO -- default-centos-71: version 12.9.41 I, [2016-05-11T20:43:48.375245 #4388] INFO -- default-centos-71: downloaded metadata file looks valid... I, [2016-05-11T20:43:48.385059 #4388] INFO -- default-centos-71: downloading https://packages.chef.io/stable/el/7/chef-12.9.41-1.el7.x86_64.rpm I, [2016-05-11T20:43:48.385059 #4388] INFO -- default-centos-71: to file /tmp/install.sh.12881/chef-12.9.41-1.el7.x86_64.rpm I, [2016-05-11T20:43:48.415481 #4388] INFO -- default-centos-71: trying wget... I, [2016-05-11T20:43:49.385037 #4388] INFO -- default-centos-71: Comparing checksum with sha256sum... I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: You are installing an omnibus package without a version pin. If you are installing I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: on production servers via an automated process this is DANGEROUS and you will I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: be upgraded without warning on new releases, even to new major releases. I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: Letting the version float is only appropriate in desktop, test, development or I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: CI/CD environments. I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: Installing chef I, [2016-05-11T20:43:49.534200 #4388] INFO -- default-centos-71: installing with rpm... I, [2016-05-11T20:43:49.701027 #4388] INFO -- default-centos-71: warning: /tmp/install.sh.12881/chef-12.9.41-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY I, [2016-05-11T20:43:49.730467 #4388] INFO -- default-centos-71: Preparing... (100%)# (100%)## (100%)### (100%)#### (100%)##### (100%)###### (100%)####### (100%)######## (100%)######### (100%)########## (100%)########### (100%)############ (100%)############# (100%)############## (100%)############### (100%)################ (100%)################# (100%)################## (100%)################### (100%)#################### (100%)##################### (100%)###################### (100%)####################### (100%)######################## (100%)######################### (100%)########################## (100%)########################### (100%)############################ (100%)############################# (100%)############################## (100%)############################### (100%)################################ (100%)################################# (100%)################################# [100%] I, [2016-05-11T20:43:50.022904 #4388] INFO -- default-centos-71: Updating / installing... I, [2016-05-11T20:43:53.100365 #4388] INFO -- default-centos-71: 1:chef-12.9.41-1.el7 ( 1%)# ( 4%)## ( 7%)### ( 10%)#### ( 13%)##### ( 16%)###### ( 19%)####### ( 22%)######## ( 25%)######### ( 28%)########## ( 31%)########### ( 34%)############ ( 37%)############# ( 40%)############## ( 43%)############### ( 46%)################ ( 49%)################# ( 51%)################## ( 54%)################### ( 57%)#################### ( 60%)##################### ( 63%)###################### ( 66%)####################### ( 69%)######################## ( 72%)######################### ( 75%)########################## ( 78%)########################### ( 81%)############################ ( 84%)############################# ( 87%)############################## ( 90%)############################### ( 93%)################################ ( 96%)################################# ( 99%)################################# [100%] I, [2016-05-11T20:43:53.334903 #4388] INFO -- default-centos-71: Thank you for installing Chef! I, [2016-05-11T20:43:53.437943 #4388] INFO -- default-centos-71: Transferring files to <default-centos-71> I, [2016-05-11T20:44:09.448394 #4388] INFO -- default-centos-71: Starting Chef Client, version 12.9.41 I, [2016-05-11T20:44:10.467018 #4388] INFO -- default-centos-71: Installing Cookbook Gems: I, [2016-05-11T20:44:10.467018 #4388] INFO -- default-centos-71: Compiling Cookbooks... I, [2016-05-11T20:44:10.512160 #4388] INFO -- default-centos-71: Converging 23 resources I, [2016-05-11T20:44:10.512160 #4388] INFO -- default-centos-71: Recipe: owasp-skf::epel I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: * remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm] action create[2016-05-11T18:44:09+00:00] WARN: remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm] cannot be downloaded from http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm: 404 "Not Found" I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: ================================================================================ I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: Error executing action `create` on resource 'remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm]' I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: ================================================================================ I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: Net::HTTPServerException I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: ------------------------ I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: 404 "Not Found" I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: Resource Declaration: I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: --------------------- I, [2016-05-11T20:44:10.858571 #4388] INFO -- default-centos-71: # In /tmp/kitchen/cookbooks/owasp-skf/recipes/epel.rb I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: 12: remote_file "#{Chef::Config[:file_cache_path]}/epel-release-7-5.noarch.rpm" do I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: 13: source "http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm" I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: 14: action :create I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: 15: end I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: 16: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: Compiled Resource: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: ------------------ I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: # Declared in /tmp/kitchen/cookbooks/owasp-skf/recipes/epel.rb:12:in `from_file' I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: remote_file("/tmp/kitchen/cache/epel-release-7-5.noarch.rpm") do I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: provider Chef::Provider::RemoteFile I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: action [:create] I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: retries 0 I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: retry_delay 2 I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: default_guard_interpreter :default I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: source ["http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm"] I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: use_etag true I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: use_last_modified true I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: declared_type :remote_file I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: cookbook_name :"owasp-skf" I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: recipe_name "epel" I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: atomic_update true I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: path "/tmp/kitchen/cache/epel-release-7-5.noarch.rpm" I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: end I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: Platform: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: --------- I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: x86_64-linux I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: Running handlers: I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: [2016-05-11T18:44:09+00:00] ERROR: Running exception handlers I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: Running handlers complete I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: [2016-05-11T18:44:09+00:00] ERROR: Exception handlers complete I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: Chef Client failed. 0 resources updated in 01 seconds I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: [2016-05-11T18:44:09+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: [2016-05-11T18:44:09+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report I, [2016-05-11T20:44:10.876235 #4388] INFO -- default-centos-71: [2016-05-11T18:44:09+00:00] ERROR: remote_file[/tmp/kitchen/cache/epel-release-7-5.noarch.rpm] (owasp-skf::epel line 12) had an error: Net::HTTPServerException: 404 "Not Found" I, [2016-05-11T20:44:11.485642 #4388] INFO -- default-centos-71: [2016-05-11T18:44:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: Converge failed on instance <default-centos-71>. E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: ------Exception------- E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: Class: Kitchen::ActionFailed E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: Message: SSH exited (1) for command: [sh -c ' sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json '] E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: ---Nested Exception--- E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: Class: Kitchen::Transport::SshFailed E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: Message: SSH exited (1) for command: [sh -c ' sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json '] E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: ------Backtrace------- E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/provisioner/base.rb:76:in `rescue in call' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/provisioner/base.rb:79:in `call' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:373:in `block in converge_action' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:513:in `call' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:513:in `synchronize_or_call' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:478:in `block in action' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:477:in `action' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:369:in `converge_action' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:348:in `block in transition_to' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:347:in `each' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:347:in `transition_to' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:138:in `converge' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/command.rb:176:in `public_send' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/command.rb:176:in `block (2 levels) in run_action' E, [2016-05-11T20:44:11.629898 #4388] ERROR -- default-centos-71: ---------------------- ---------------kitchen.log----------------- I, [2016-05-11T20:43:08.354461 #4388] INFO -- Kitchen: -----> Starting Kitchen (v1.7.3) I, [2016-05-11T20:43:10.896608 #4388] INFO -- Kitchen: -----> Creating <default-centos-71>... I, [2016-05-11T20:43:44.202616 #4388] INFO -- Kitchen: -----> Converging <default-centos-71>... E, [2016-05-11T20:44:11.707423 #4388] ERROR -- Kitchen: Converge failed on instance <default-centos-71>.
Foobar
May 11, 2016
Hi Jelle, Great to hear that you got inspired today to try it out yourself, i checked the error code and see that it tries to install the epel package but got a 404... Can you modify this file: https://github.com/blabla1337/owasp-skf-chef/blob/ed14973519846668275c03d2ef3e0c26f4790e9f/recipes/epel.rb Replace all the epel-release-7-5.noarch.rpm with epel-release-7-6.noarch.rpm And try again, apparently they removed the 7-5 version from the site... If that is working correctly i will update the cookbook on Github with the fix. Thanks Greetz, Glenn
Jelle de Jong
May 11, 2016
Hi Glenn, Thank you for the quick response. I changed 3 occurences. Kitchen completes sucessfully and starts the virtual machine. That being said, When browsing to https://192.168.33.118/ I get the generic exception that there was nothing running/found at that address (assuming I have to do that from the physical machine hosting the virtual machine). Using the Login-command (kitchen login default) from Kitchen I get a new batch of exceptions which I post below, with both logs (kitchen.log, default-centos-71.log) being empty this time around. I also shutdown the virtual machine and rebooted it via the OracleVmVirtualBox. It prompted me to provide login credentials, which wasn't empty; admin admin; root root. calling 'kitchen login default' from a cmd-prompt gaves the same error whether: - The VM is turned off - The VM got booted after the cmd 'kitchen converge default' - The VM got booted manually through the Oracle VM Box I'd much appreciate it if you could help me with this error. As well as, what exactly are the credentials for the virtual machine? -----------------cmd output after 'kitchen login default'-------------------- C:\test\owasp-skf-chef-master>kitchen login default C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:220:in `exec': No such file or directory - ssh (Errno::ENOENT) from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/instance.rb:220:in `login' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/command/login.rb:39:in `call' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/cli.rb:56:in `perform' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/cli.rb:234:in `login' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/cli.rb:321:in `invoke_task' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/bin/kitchen:13:in `block in <top (required)>' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/errors.rb:154:in `with_friendly_errors' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.7.3/bin/kitchen:13:in `<top (required)>' from C:/opscode/chefdk/bin/kitchen:20:in `load' from C:/opscode/chefdk/bin/kitchen:20:in `<main>'
Thodoris Bais
May 18, 2016
For me, the above replacement didn't seem to make any change.
Dave
May 18, 2016
Hi Thodoris, You can use a directorysearch using tools like notepad++ for occurences of 'epel-release-7-5'; you should find in the file owasp-skf-chef-master\recipes\epel.rb; line 12, 13 and 19 (3 occurences). Thought these line numbers could change naturally if they update the project. Replace 7-5 with 7-6, and the error Error executing action `create` on resource 'remote_file ....... epel-release-7-5.noarch.rpm ...... should not appear anymore. Just to be sure safe the file, and restart your cmd-prompt because that keeps some stuff in memory sometimes. If that does not help, maybe you're getting a different error further on in the process?
Foobar
May 24, 2016
Hi Thodoris and Dave, Thank you for your feedback, i have updated the SKF Chef cookbook to reflect the fix for the Epel 404 error. When you try the new version of the SKF Chef cookbook it will work again. Can you please let me know if it's now working for you? Greetz, Glenn
  
Markdown is allowed