Created
November 18, 2016 19:06
-
-
Save majormoses/ea92b8a209cde662238b0d655fc29c95 to your computer and use it in GitHub Desktop.
Sensu client fails to restart because of gemspec permissions (umask)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-11-18_18:52:14.96829 ================================================================================ESC[0m | |
2016-11-18_18:52:14.96833 ESC[31mError executing action `restart` on resource 'service[sensu-client]'ESC[0m | |
2016-11-18_18:52:14.96836 ================================================================================ESC[0m | |
2016-11-18_18:52:14.96840 | |
2016-11-18_18:52:14.96841 ESC[0mMixlib::ShellOut::ShellCommandFailedESC[0m | |
2016-11-18_18:52:14.96848 ------------------------------------ESC[0m | |
2016-11-18_18:52:14.96852 Expected process to exit with [0], but received '1' | |
2016-11-18_18:52:14.96853 ESC[0m---- Begin output of /etc/init.d/sensu-client restart ---- | |
2016-11-18_18:52:14.96854 ESC[0mSTDOUT: | |
2016-11-18_18:52:14.96856 ESC[0mSTDERR: /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/stub_specification.rb:111:in `initialize': Permission denied @ rb_sysopen - /opt/sensu/embedded/lib/ruby/gems/2.3.0/specifications/sensu-plugins-nginx-2.0.0.gemspec (Errno::EACCES) | |
2016-11-18_18:52:14.96858 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/stub_specification.rb:111:in `open' | |
2016-11-18_18:52:14.96859 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/stub_specification.rb:111:in `data' | |
2016-11-18_18:52:14.96861 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/stub_specification.rb:202:in `valid?' | |
2016-11-18_18:52:14.96862 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:749:in `select' | |
2016-11-18_18:52:14.96863 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:749:in `gemspec_stubs_in' | |
2016-11-18_18:52:14.96865 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:774:in `block in map_stubs' | |
2016-11-18_18:52:14.96866 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:771:in `each' | |
2016-11-18_18:52:14.96868 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:771:in `flat_map' | |
2016-11-18_18:52:14.96869 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:771:in `map_stubs' | |
2016-11-18_18:52:14.96871 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:763:in `installed_stubs' | |
2016-11-18_18:52:14.96872 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:831:in `stubs' | |
2016-11-18_18:52:14.96873 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1036:in `find_by_path' | |
2016-11-18_18:52:14.96876 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems.rb:209:in `try_activate' | |
2016-11-18_18:52:14.96877 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require' | |
2016-11-18_18:52:14.96878 ESC[0m from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require' | |
2016-11-18_18:52:14.96880 ESC[0m from <internal:gem_prelude>:6:in `<internal:gem_prelude>' | |
2016-11-18_18:52:14.96882 ESC[0m---- End output of /etc/init.d/sensu-client restart ---- | |
2016-11-18_18:52:14.96882 ESC[0mRan /etc/init.d/sensu-client restart returned 1ESC[0m | |
2016-11-18_18:52:14.96895 ---------------ESC[0m | |
2016-11-18_18:52:14.96899 /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
2016-11-18_18:52:14.96899 ESC[0m/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:136:in `run_delayed_notification' | |
2016-11-18_18:52:14.96900 ESC[0m/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:124:in `block in run_delayed_notifications' | |
2016-11-18_18:52:14.96901 ESC[0m/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:123:in `each' | |
2016-11-18_18:52:14.96903 ESC[0m/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:123:in `run_delayed_notifications' | |
2016-11-18_18:52:14.96904 ESC[0m/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:113:in `converge'ESC[0m | |
2016-11-18_18:52:14.96909 | |
2016-11-18_18:52:14.96909 ESC[0mResource Declaration:ESC[0m | |
2016-11-18_18:52:14.96915 ---------------------ESC[0m | |
2016-11-18_18:52:14.96919 # In /var/chef/cache/cookbooks/sensu/providers/service.rb | |
2016-11-18_18:52:14.96919 ESC[0m | |
2016-11-18_18:52:14.96920 ESC[0m 49: service new_resource.service do | |
2016-11-18_18:52:14.96921 ESC[0m 50: provider service_provider | |
2016-11-18_18:52:14.96922 ESC[0m 51: supports :status => true, :restart => true | |
2016-11-18_18:52:14.96925 ESC[0m 52: retries 3 | |
2016-11-18_18:52:14.96925 ESC[0m 53: retry_delay 5 | |
2016-11-18_18:52:14.96927 ESC[0m 54: action :nothing | |
2016-11-18_18:52:14.96929 ESC[0m 55: subscribes :restart, resources("ruby_block[sensu_service_trigger]"), :delayed | |
2016-11-18_18:52:14.96931 ESC[0m 56: end | |
2016-11-18_18:52:14.96931 ESC[0m 57: when "runit" | |
2016-11-18_18:52:14.96934 ESC[0m | |
2016-11-18_18:52:14.96937 ESC[0mCompiled Resource:ESC[0m | |
2016-11-18_18:52:14.96943 ------------------ESC[0m | |
2016-11-18_18:52:14.96947 # Declared in /var/chef/cache/cookbooks/sensu/providers/service.rb:49:in `load_current_resource' | |
2016-11-18_18:52:14.96948 ESC[0m | |
2016-11-18_18:52:14.96948 ESC[0mservice("sensu-client") do | |
2016-11-18_18:52:14.96950 ESC[0m provider Chef::Provider::Service::Debian | |
2016-11-18_18:52:14.96951 ESC[0m action [:nothing] | |
2016-11-18_18:52:14.96953 ESC[0m supports {:status=>true, :restart=>true} | |
2016-11-18_18:52:14.96954 ESC[0m retries 3 | |
2016-11-18_18:52:14.96956 ESC[0m retry_delay 5 | |
2016-11-18_18:52:14.96957 ESC[0m default_guard_interpreter :default | |
2016-11-18_18:52:14.96959 ESC[0m service_name "sensu-client" | |
2016-11-18_18:52:14.96960 ESC[0m enabled true | |
2016-11-18_18:52:14.96961 ESC[0m running true | |
2016-11-18_18:52:14.96964 ESC[0m pattern "sensu-client" | |
2016-11-18_18:52:14.96964 ESC[0m declared_type :service | |
2016-11-18_18:52:14.96966 ESC[0m cookbook_name "sensu" | |
2016-11-18_18:52:14.96967 ESC[0mend | |
2016-11-18_18:52:14.96968 ESC[0m | |
2016-11-18_18:52:14.96972 ESC[0m[2016-11-18T18:52:14+00:00] ERROR: Running exception handlers | |
2016-11-18_18:52:15.29654 [2016-11-18T18:52:15+00:00] ERROR: Exception handlers complete | |
2016-11-18_18:52:15.29725 [2016-11-18T18:52:15+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
2016-11-18_18:52:15.29726 [2016-11-18T18:52:15+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
2016-11-18_18:52:15.29731 [2016-11-18T18:52:15+00:00] ERROR: service[sensu-client] (/var/chef/cache/cookbooks/sensu/providers/service.rb line 49) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment