Skip to content

Instantly share code, notes, and snippets.

@UshF
Created January 31, 2014 18:28
Show Gist options
  • Save UshF/8739290 to your computer and use it in GitHub Desktop.
Save UshF/8739290 to your computer and use it in GitHub Desktop.
o4r3.dfw3 infra-monitoring role install errors with nslcd. Initial chef-run may have been partial. Creating /etc/nslcd.conf by hand and re-running gets us here
[2014-01-31T18:02:15+00:00] INFO: Processing service[nslcd] action enable (infra-auth::client line 96)
================================================================================
Error executing action `enable` on resource 'service[nslcd]'
================================================================================
Chef::Exceptions::Exec
----------------------
/usr/sbin/update-rc.d nslcd defaults returned 1, expected 0
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/infra-auth/recipes/client.rb
96: service "nslcd" do
97: action :enable
98: end
99:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/infra-auth/recipes/client.rb:96:in `from_file'
service("nslcd") do
action [:enable]
supports {:restart=>false, :reload=>false, :status=>false}
retries 0
retry_delay 2
service_name "nslcd"
pattern "nslcd"
startup_type :automatic
cookbook_name "infra-auth"
recipe_name "client"
end
[2014-01-31T18:02:15+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-01-31T18:02:15+00:00] INFO: template[/etc/ssh/sshd_config] sending restart action to service[ssh] (delayed)
[2014-01-31T18:02:15+00:00] INFO: Processing service[ssh] action restart (openssh::default line 30)
[2014-01-31T18:02:15+00:00] INFO: service[ssh] restarted
[2014-01-31T18:02:15+00:00] ERROR: Running exception handlers
[2014-01-31T18:02:18+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2014-01-31T18:02:18+00:00] ERROR: Exception handlers complete
[2014-01-31T18:02:18+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-01-31T18:02:18+00:00] FATAL: Chef::Exceptions::Exec: service[nslcd] (infra-auth::client line 96) had an error: Chef::Exceptions::Exec: /usr/sbin/update-rc.d nslcd defaults returned 1, expected 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment