Skip to content

Instantly share code, notes, and snippets.

@powdahound
Created August 3, 2009 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save powdahound/160646 to your computer and use it in GitHub Desktop.
Save powdahound/160646 to your computer and use it in GitHub Desktop.
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Processing group[couchdb]
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: group[couchdb] using Chef::Provider::Group::Groupadd
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Processing user[couchdb]
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: user[couchdb] using Chef::Provider::User::Useradd
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Setting user[couchdb] comment to CouchDB user
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Setting user[couchdb] home to
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: Executing usermod -c 'CouchDB user' -d couchdb
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: ---- Begin output of usermod -c 'CouchDB user' -d couchdb ----
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: STDOUT:
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: STDERR: Usage: usermod [options] LOGIN
Options:
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
[Mon, 03 Aug 2009 09:25:01 -0700] DEBUG: ---- End output of usermod -c 'CouchDB user' -d couchdb ----
[Mon, 03 Aug 2009 09:25:01 -0700] ERROR: user[couchdb] (/tmp/chef-solo/site-cookbooks/couchdb/recipes/default.rb line 16) had an error:
usermod -c 'CouchDB user' -d couchdb returned 2, expected 0
/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/mixin/command.rb:157:in `run_command'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/mixin/command.rb:133:in `chdir'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/mixin/command.rb:133:in `run_command'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/user/useradd.rb:34:in `manage_user'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/user.rb:105:in `action_create'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:87:in `send'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:87:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:58:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:57:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:63:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:373:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:101:in `run_solo'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/solo.rb:122:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application.rb:57:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/bin/chef-solo:26/usr/bin/chef-solo:19:in `load'/usr/bin/chef-solo:19
/usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/mixin/command.rb:157:in `run_command': usermod -c 'CouchDB user' -d couchdb returned 2, expected 0 (Chef::Exceptions::Exec)
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/mixin/command.rb:133:in `chdir'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/mixin/command.rb:133:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/user/useradd.rb:34:in `manage_user'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/user.rb:105:in `action_create'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:87:in `send'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:87:in `converge'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `converge'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:58:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:57:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:63:in `converge'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:373:in `converge'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:101:in `run_solo'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/solo.rb:122:in `run_application'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application.rb:57:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.4/bin/chef-solo:26
from /usr/bin/chef-solo:19:in `load'
from /usr/bin/chef-solo:19
group "couchdb" do
end
user "couchdb" do
comment "CouchDB user"
gid "couchdb"
supports :manage_home => false
shell "/bin/bash"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment