Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing action run on resource 'execute[chage]' #61

Open
mohammedadil123 opened this issue Mar 3, 2017 · 0 comments
Open

Error executing action run on resource 'execute[chage]' #61

mohammedadil123 opened this issue Mar 3, 2017 · 0 comments

Comments

@mohammedadil123
Copy link

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/chage -M 99999 anand.bhatt ----
STDOUT:
STDERR: chage: user 'anand.bhatt' does not exist in /etc/passwd
---- End output of /usr/bin/chage -M 99999 anand.bhatt ----
Ran /usr/bin/chage -M 99999 anand.bhatt returned 1

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/linux-server-cookbook/recipes/run_commands.rb

 26: execute "chage" do
 27:         command "/usr/bin/chage -M 99999 anand.bhatt"
 28:         action :run
 29: end

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/linux-server-cookbook/recipes/run_commands.rb:26:in `from_file'

execute("chage") do
  action [:run]
  retries 0
  retry_delay 2
  default_guard_interpreter :execute
  command "/usr/bin/chage -M 99999 anand.bhatt"
  backup 5
  returns 0
  user nil
  declared_type :execute
  cookbook_name "linux-server-cookbook"
  recipe_name "run_commands"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant