Installing Cookbook Gems: Compiling Cookbooks... Converging 2 resources Recipe: sdc-elasticsearch::ES_4_create_resources_template * ruby_block[check_ElasticSearch_Cluster_Health] action run[2019-05-31T01:42:26+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 9 attempt(s) left [2019-05-31T01:42:28+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 8 attempt(s) left [2019-05-31T01:42:30+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 7 attempt(s) left [2019-05-31T01:42:32+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 6 attempt(s) left [2019-05-31T01:42:34+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 5 attempt(s) left [2019-05-31T01:42:36+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 4 attempt(s) left [2019-05-31T01:42:38+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 3 attempt(s) left [2019-05-31T01:42:40+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 2 attempt(s) left [2019-05-31T01:42:42+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 1 attempt(s) left [2019-05-31T01:42:44+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 0 attempt(s) left ================================================================================ Error executing action `run` on resource 'ruby_block[check_ElasticSearch_Cluster_Health]' ================================================================================ Errno::ENETUNREACH ------------------ Failed to open TCP connection to localhost:9200 (Network is unreachable - connect(2) for "localhost" port 9200) Cookbook Trace: --------------- /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_4_create_resources_template.rb:7:in `block (2 levels) in from_file' Resource Declaration: --------------------- # In /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_4_create_resources_template.rb 1: ruby_block "check_ElasticSearch_Cluster_Health" do 2: block do 3: #tricky way to load this Chef::Mixin::ShellOut utilities 4: Chef::Resource::RubyBlock.send(:include, Chef::Mixin::ShellOut) 5: #curl_command = "http://#{node['ipaddress']}:9200/_cluster/health?pretty=true" 6: curl_command = "http://localhost:9200/_cluster/health?pretty=true" 7: resp = Net::HTTP.get_response URI.parse(curl_command) 8: stat = JSON.parse(resp.read_body)['status'] 9: 10: case stat 11: when "green" 12: printf("\033[32m%s\n\033[0m", " ElasticSearch Cluster status is green.") 13: when "yellow" 14: printf("\033[33m%s\n\033[0m", " ElasticSearch Cluster status is yellow...") 15: when "red" 16: printf("\033[31m%s\n\033[0m", " ElasticSearch Cluster status is red!") 17: end 18: end 19: retries 10 Compiled Resource: ------------------ # Declared in /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_4_create_resources_template.rb:1:in `from_file' ruby_block("check_ElasticSearch_Cluster_Health") do action [:run] default_guard_interpreter :default block_name "check_ElasticSearch_Cluster_Health" declared_type :ruby_block cookbook_name "sdc-elasticsearch" recipe_name "ES_4_create_resources_template" block # retries 10 retry_delay 2 end System Info: ------------ chef_version=13.5.3 platform=debian platform_version=8.6 ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux] program_name=chef-solo worker: ppid=504;start=01:42:25; executable=/opt/chef/bin/chef-solo [2019-05-31T01:42:46+00:00] INFO: Running queued delayed notifications before re-raising exception Running handlers: [2019-05-31T01:42:46+00:00] ERROR: Running exception handlers Running handlers complete [2019-05-31T01:42:46+00:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 20 seconds [2019-05-31T01:42:46+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out [2019-05-31T01:42:46+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2019-05-31T01:42:46+00:00] ERROR: ruby_block[check_ElasticSearch_Cluster_Health] (sdc-elasticsearch::ES_4_create_resources_template line 1) had an error: Errno::ENETUNREACH: Failed to open TCP connection to localhost:9200 (Network is unreachable - connect(2) for "localhost" port 9200) [2019-05-31T01:42:46+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) The environment variable HTTP_PROXY is discouraged. Use http_proxy. [2019-05-31T01:42:47+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /root/chef-solo One version per cookbook [2019-05-31T01:42:47+00:00] INFO: Forking chef instance to converge... Starting Chef Client, version 13.5.3 [2019-05-31T01:42:47+00:00] INFO: *** Chef 13.5.3 *** [2019-05-31T01:42:47+00:00] INFO: Platform: x86_64-linux [2019-05-31T01:42:47+00:00] INFO: Chef-client pid: 742 [2019-05-31T01:42:47+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping... [2019-05-31T01:42:48+00:00] INFO: Setting the run_list to ["role[elasticsearch]"] from CLI options [2019-05-31T01:42:48+00:00] WARN: Run List override has been provided. [2019-05-31T01:42:48+00:00] WARN: Original Run List: [role[elasticsearch]] [2019-05-31T01:42:48+00:00] WARN: Overridden Run List: [recipe[sdc-elasticsearch::ES_5_create_monitoring_template]] [2019-05-31T01:42:48+00:00] INFO: Run List is [recipe[sdc-elasticsearch::ES_5_create_monitoring_template]] [2019-05-31T01:42:48+00:00] INFO: Run List expands to [sdc-elasticsearch::ES_5_create_monitoring_template] [2019-05-31T01:42:48+00:00] INFO: Starting Chef Run for fc065e3e2f0c [2019-05-31T01:42:48+00:00] INFO: Running start handlers [2019-05-31T01:42:48+00:00] INFO: Start handlers complete. resolving cookbooks for run list: ["sdc-elasticsearch::ES_5_create_monitoring_template"] [2019-05-31T01:42:48+00:00] INFO: Loading cookbooks [sdc-elasticsearch@0.0.0] [2019-05-31T01:42:48+00:00] INFO: Skipping removal of obsoleted cookbooks from the cache Synchronizing Cookbooks: - sdc-elasticsearch (0.0.0) Installing Cookbook Gems: Compiling Cookbooks... Converging 3 resources Recipe: sdc-elasticsearch::ES_5_create_monitoring_template * ruby_block[check_ElasticSearch_Cluster_Health] action run[2019-05-31T01:42:48+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 9 attempt(s) left [2019-05-31T01:42:50+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 8 attempt(s) left [2019-05-31T01:42:52+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 7 attempt(s) left [2019-05-31T01:42:54+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 6 attempt(s) left [2019-05-31T01:42:56+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 5 attempt(s) left [2019-05-31T01:42:58+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 4 attempt(s) left [2019-05-31T01:43:00+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 3 attempt(s) left [2019-05-31T01:43:02+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 2 attempt(s) left [2019-05-31T01:43:04+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 1 attempt(s) left [2019-05-31T01:43:06+00:00] INFO: Retrying execution of ruby_block[check_ElasticSearch_Cluster_Health], 0 attempt(s) left ================================================================================ Error executing action `run` on resource 'ruby_block[check_ElasticSearch_Cluster_Health]' ================================================================================ Errno::ENETUNREACH ------------------ Failed to open TCP connection to localhost:9200 (Network is unreachable - connect(2) for "localhost" port 9200) Cookbook Trace: --------------- /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb:7:in `block (2 levels) in from_file' Resource Declaration: --------------------- # In /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb 1: ruby_block "check_ElasticSearch_Cluster_Health" do 2: block do 3: #tricky way to load this Chef::Mixin::ShellOut utilities 4: Chef::Resource::RubyBlock.send(:include, Chef::Mixin::ShellOut) 5: #curl_command = "http://#{node['ipaddress']}:9200/_cluster/health?pretty=true" 6: curl_command = "http://localhost:9200/_cluster/health?pretty=true" 7: resp = Net::HTTP.get_response URI.parse(curl_command) 8: stat = JSON.parse(resp.read_body)['status'] 9: 10: case stat 11: when "green" 12: printf("\033[32m%s\n\033[0m", " ElasticSearch Cluster status is green.") 13: when "yellow" 14: printf("\033[33m%s\n\033[0m", " ElasticSearch Cluster status is yellow...") 15: when "red" 16: printf("\033[31m%s\n\033[0m", " ElasticSearch Cluster status is red!") 17: end 18: end 19: retries 10 Compiled Resource: ------------------ # Declared in /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb:1:in `from_file' ruby_block("check_ElasticSearch_Cluster_Health") do action [:run] default_guard_interpreter :default block_name "check_ElasticSearch_Cluster_Health" declared_type :ruby_block cookbook_name "sdc-elasticsearch" recipe_name "ES_5_create_monitoring_template" block # retries 10 retry_delay 2 end System Info: ------------ chef_version=13.5.3 platform=debian platform_version=8.6 ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux] program_name=chef-solo worker: ppid=737;start=01:42:47; executable=/opt/chef/bin/chef-solo [2019-05-31T01:43:08+00:00] INFO: Running queued delayed notifications before re-raising exception Running handlers: [2019-05-31T01:43:08+00:00] ERROR: Running exception handlers Running handlers complete [2019-05-31T01:43:08+00:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 20 seconds [2019-05-31T01:43:08+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out [2019-05-31T01:43:08+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2019-05-31T01:43:08+00:00] ERROR: ruby_block[check_ElasticSearch_Cluster_Health] (sdc-elasticsearch::ES_5_create_monitoring_template line 1) had an error: Errno::ENETUNREACH: Failed to open TCP connection to localhost:9200 (Network is unreachable - connect(2) for "localhost" port 9200) [2019-05-31T01:43:08+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) The environment variable HTTP_PROXY is discouraged. Use http_proxy. [2019-05-31T01:43:09+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /root/chef-solo One version per cookbook [2019-05-31T01:43:09+00:00] INFO: Forking chef instance to converge... Starting Chef Client, version 13.5.3 [2019-05-31T01:43:09+00:00] INFO: *** Chef 13.5.3 *** [2019-05-31T01:43:09+00:00] INFO: Platform: x86_64-linux [2019-05-31T01:43:09+00:00] INFO: Chef-client pid: 975 [2019-05-31T01:43:09+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping... [2019-05-31T01:43:10+00:00] INFO: Setting the run_list to ["role[elasticsearch]"] from CLI options [2019-05-31T01:43:10+00:00] WARN: Run List override has been provided. [2019-05-31T01:43:10+00:00] WARN: Original Run List: [role[elasticsearch]] [2019-05-31T01:43:10+00:00] WARN: Overridden Run List: [recipe[sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization]] [2019-05-31T01:43:10+00:00] INFO: Run List is [recipe[sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization]] [2019-05-31T01:43:10+00:00] INFO: Run List expands to [sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization] [2019-05-31T01:43:10+00:00] INFO: Starting Chef Run for fc065e3e2f0c [2019-05-31T01:43:10+00:00] INFO: Running start handlers [2019-05-31T01:43:10+00:00] INFO: Start handlers complete. resolving cookbooks for run list: ["sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization"] [2019-05-31T01:43:10+00:00] INFO: Loading cookbooks [sdc-elasticsearch@0.0.0] [2019-05-31T01:43:10+00:00] INFO: Skipping removal of obsoleted cookbooks from the cache Synchronizing Cookbooks: - sdc-elasticsearch (0.0.0) Installing Cookbook Gems: Compiling Cookbooks... Converging 5 resources Recipe: sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization * cookbook_file[/usr/share/elasticsearch/config/kibana_dashboard_virtualization.json] action create ================================================================================ Error executing action `create` on resource 'cookbook_file[/usr/share/elasticsearch/config/kibana_dashboard_virtualization.json]' ================================================================================ Chef::Exceptions::FileNotFound ------------------------------ Cookbook 'sdc-elasticsearch' (0.0.0) does not contain a file at any of these locations: files/debian-8.6/kibana_dashboard_virtualization.json files/debian/kibana_dashboard_virtualization.json files/default/kibana_dashboard_virtualization.json files/kibana_dashboard_virtualization.json This cookbook _does_ contain: ['files/default/dashboard_BI-Dashboard.json','files/default/dashboard_Monitoring-Dashboared.json','files/default/visualization_JVM-used-CPU.json','files/default/visualization_JVM-used-Threads-Num.json','files/default/visualization_Show-all-distributed-services.json','files/default/visualization_host-used-CPU.json','files/default/visualization_host-used-Threads-Num.json','files/default/logging.yml','files/default/visualization_Show-all-certified-services-ampersand-resources-(per-day).json','files/default/visualization_Show-all-created-Resources-slash-Services-slash-Products.json','files/default/visualization_number-of-user-accesses.json','files/default/visualization_JVM-used-Memory.json'] Resource Declaration: --------------------- # In /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_6_create_kibana_dashboard_virtualization.rb 1: cookbook_file "/usr/share/elasticsearch/config/kibana_dashboard_virtualization.json" do 2: source "kibana_dashboard_virtualization.json" 3: owner "elasticsearch" 4: group "elasticsearch" 5: mode "0755" 6: end 7: Compiled Resource: ------------------ # Declared in /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_6_create_kibana_dashboard_virtualization.rb:1:in `from_file' cookbook_file("/usr/share/elasticsearch/config/kibana_dashboard_virtualization.json") do provider Chef::Provider::CookbookFile action [:create] default_guard_interpreter :default source "kibana_dashboard_virtualization.json" declared_type :cookbook_file cookbook_name "sdc-elasticsearch" recipe_name "ES_6_create_kibana_dashboard_virtualization" owner "elasticsearch" group "elasticsearch" mode "0755" path "/usr/share/elasticsearch/config/kibana_dashboard_virtualization.json" verifications [] end System Info: ------------ chef_version=13.5.3 platform=debian platform_version=8.6 ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux] program_name=chef-solo worker: ppid=970;start=01:43:09; executable=/opt/chef/bin/chef-solo [2019-05-31T01:43:10+00:00] INFO: Running queued delayed notifications before re-raising exception Running handlers: [2019-05-31T01:43:10+00:00] ERROR: Running exception handlers Running handlers complete [2019-05-31T01:43:10+00:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 00 seconds [2019-05-31T01:43:10+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out [2019-05-31T01:43:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2019-05-31T01:43:10+00:00] ERROR: cookbook_file[/usr/share/elasticsearch/config/kibana_dashboard_virtualization.json] (sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization line 1) had an error: Chef::Exceptions::FileNotFound: Cookbook 'sdc-elasticsearch' (0.0.0) does not contain a file at any of these locations: files/debian-8.6/kibana_dashboard_virtualization.json files/debian/kibana_dashboard_virtualization.json files/default/kibana_dashboard_virtualization.json files/kibana_dashboard_virtualization.json This cookbook _does_ contain: ['files/default/dashboard_BI-Dashboard.json','files/default/dashboard_Monitoring-Dashboared.json','files/default/visualization_JVM-used-CPU.json','files/default/visualization_JVM-used-Threads-Num.json','files/default/visualization_Show-all-distributed-services.json','files/default/visualization_host-used-CPU.json','files/default/visualization_host-used-Threads-Num.json','files/default/logging.yml','files/default/visualization_Show-all-certified-services-ampersand-resources-(per-day).json','files/default/visualization_Show-all-created-Resources-slash-Services-slash-Products.json','files/default/visualization_number-of-user-accesses.json','files/default/visualization_JVM-used-Memory.json'] [2019-05-31T01:43:10+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)