Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created October 1, 2014 13:31
Show Gist options
  • Save ssbarnea/83b9c07678187dfe238f to your computer and use it in GitHub Desktop.
Save ssbarnea/83b9c07678187dfe238f to your computer and use it in GitHub Desktop.
gitlab failure to reconfigure after git user was made a NIS user.
root@hera:/etc/gitlab# ./reconfigure
Starting Chef Client, version 11.12.2
Compiling Cookbooks...
Recipe: gitlab::default
* directory[/etc/gitlab] action create (up to date)
[2014-10-01T14:30:26+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab] from prior resource (CHEF-3694)
[2014-10-01T14:30:26+01:00] WARN: Previous directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:40:in `from_file'
[2014-10-01T14:30:26+01:00] WARN: Current directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb:23:in `from_file'
[2014-10-01T14:30:27+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab/gitlab-rails/etc] from prior resource (CHEF-3694)
[2014-10-01T14:30:27+01:00] WARN: Previous directory[/var/opt/gitlab/gitlab-rails/etc]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/gitlab-rails.rb:37:in `block in from_file'
[2014-10-01T14:30:27+01:00] WARN: Current directory[/var/opt/gitlab/gitlab-rails/etc]: /opt/gitlab/embedded/cookbooks/gitlab/definitions/unicorn_config.rb:21:in `block in from_file'
[2014-10-01T14:30:27+01:00] WARN: Cloning resource attributes for service[unicorn] from prior resource (CHEF-3694)
[2014-10-01T14:30:27+01:00] WARN: Previous service[unicorn]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:60:in `block in from_file'
[2014-10-01T14:30:27+01:00] WARN: Current service[unicorn]: /opt/gitlab/embedded/cookbooks/runit/definitions/runit_service.rb:191:in `block in from_file'
[2014-10-01T14:30:27+01:00] WARN: Cloning resource attributes for service[sidekiq] from prior resource (CHEF-3694)
[2014-10-01T14:30:27+01:00] WARN: Previous service[sidekiq]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:60:in `block in from_file'
[2014-10-01T14:30:27+01:00] WARN: Current service[sidekiq]: /opt/gitlab/embedded/cookbooks/runit/definitions/runit_service.rb:191:in `block in from_file'
Converging 152 resources
* directory[/etc/gitlab] action nothing (skipped due to action :nothing)
* directory[/var/opt/gitlab] action create (up to date)
Recipe: gitlab::users
* directory[/var/opt/gitlab] action create (up to date)
* group[git] action create (up to date)
* user[git] action create
================================================================================
Error executing action `create` on resource 'user[git]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '6'
---- Begin output of ["usermod", "-g", "10032", "-s", "/bin/sh", "git"] ----
STDOUT:
STDERR: usermod: user 'git' does not exist in /etc/passwd
---- End output of ["usermod", "-g", "10032", "-s", "/bin/sh", "git"] ----
Ran ["usermod", "-g", "10032", "-s", "/bin/sh", "git"] returned 6
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb
33: user gitlab_username do
34: shell node['gitlab']['user']['shell']
35: home gitlab_home
36: uid node['gitlab']['user']['uid']
37: gid gitlab_group
38: end
39:
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb:33:in `from_file'
user("git") do
action :create
supports {:manage_home=>false, :non_unique=>false}
retries 0
retry_delay 2
guard_interpreter :default
username "git"
gid 10032
home "/var/opt/gitlab"
shell "/bin/sh"
cookbook_name :gitlab
recipe_name "users"
end
Running handlers:
[2014-10-01T14:30:29+01:00] ERROR: Running exception handlers
Running handlers complete
[2014-10-01T14:30:29+01:00] ERROR: Exception handlers complete
[2014-10-01T14:30:29+01:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 5.932572323 seconds
[2014-10-01T14:30:29+01:00] ERROR: user[git] (gitlab::users line 33) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '6'
---- Begin output of ["usermod", "-g", "10032", "-s", "/bin/sh", "git"] ----
STDOUT:
STDERR: usermod: user 'git' does not exist in /etc/passwd
---- End output of ["usermod", "-g", "10032", "-s", "/bin/sh", "git"] ----
Ran ["usermod", "-g", "10032", "-s", "/bin/sh", "git"] returned 6
[2014-10-01T14:30:29+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
@halsafar
Copy link

Same issue. We wanted to test using GitLab for our office but this is stopping us.

@EToreo
Copy link

EToreo commented Nov 26, 2015

Having same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment