Navigation Menu

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

"usermod: user 'opscode' does not exist in /etc/passwd" during chef-server reconfigure #430

Closed
mudataa opened this issue Jul 26, 2019 · 3 comments
Labels
Stale This is marked as stale and will be closed shortly

Comments

@mudataa
Copy link

mudataa commented Jul 26, 2019

i have installed chef server error without any error
rpm -ivh chef-server-core-13.0.17-1.el7.x86_64.rpm

and when i tried to run chef-server-ctl reconfigure i have received "usermod: user 'opscode' does not exist in /etc/passwd"

***/var/opt/opscode/local-mode-cache/chef-stacktrace.out

Caused by Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '6'
---- Begin output of ["usermod", "-s", "/bin/sh", "-d", "/opt/opscode/embedded", "opscode"] ----
STDOUT:
STDERR: usermod: user 'opscode' does not exist in /etc/passwd
---- End output of ["usermod", "-s", "/bin/sh", "-d", "/opt/opscode/embedded", "opscode"] ----
Ran ["usermod", "-s", "/bin/sh", "-d", "/opt/opscode/embedded", "opscode"] returned 6
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/mixlib-shellout-3.0.4/lib/mixlib/shellout.rb:297:in invalid!' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/mixlib-shellout-3.0.4/lib/mixlib/shellout.rb:284:in error!'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/mixin/shell_out.rb:131:in shell_out_compacted!' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/mixin/shell_out.rb:63:in shell_out!'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/provider/user/linux.rb:31:in manage_user' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/provider/user.rb:127:in block in action_create'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/mixin/why_run.rb:51:in add_action' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/provider.rb:235:in converge_by'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/provider/user.rb:126:in action_create' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/provider.rb:190:in run_action'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/resource.rb:584:in run_action' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/runner.rb:70:in run_action'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/runner.rb:99:in block (2 levels) in converge' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/runner.rb:99:in each'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/runner.rb:99:in block in converge' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/resource_collection/resource_list.rb:94:in block in execute_each_resource'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/resource_collection/stepable_iterator.rb:114:in call_iterator_block' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/resource_collection/stepable_iterator.rb:85:in step'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/resource_collection/stepable_iterator.rb:103:in iterate' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/resource_collection/resource_list.rb:92:in execute_each_resource' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/runner.rb:97:in converge'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/client.rb:704:in block in converge' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/client.rb:699:in catch'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/client.rb:699:in converge' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/client.rb:723:in converge_and_save'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/client.rb:289:in run' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/application.rb:314:in run_with_graceful_exit_option'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/application.rb:290:in block in run_chef_client' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/local_mode.rb:41:in with_server_connectivity'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/application.rb:273:in run_chef_client' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/application/client.rb:447:in run_application'
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.300/lib/chef/application.rb:69:in run' /opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/chef-bin-15.0.300/bin/chef-client:25:in <top (required)>'
/opt/opscode/embedded/bin/chef-client:23:in load' /opt/opscode/embedded/bin/chef-client:23:in

'


@welcomebot
Copy link

Hey There
It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you.
Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

@github-actions
Copy link

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot added the Stale This is marked as stale and will be closed shortly label Jan 25, 2021
@github-actions
Copy link

github-actions bot commented Feb 2, 2021

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot closed this as completed Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale This is marked as stale and will be closed shortly
Projects
None yet
Development

No branches or pull requests

2 participants