GitLab reconfigure Error: executing action `create` on resource 'user[git]' -



GitLab reconfigure Error: executing action `create` on resource 'user[git]' -

i tried install gitlab gitlab_7.4.3-omnibus.5.1.0.ci-1_amd64.deb on server.

and there error when ran sudo gitlab-ctl reconfigure.

the error log:

[2014-11-07t12:26:33+08:00] info: forking chef instance converge... [2014-11-07t12:26:33+08:00] info: *** chef 11.12.2 *** [2014-11-07t12:26:33+08:00] info: chef-client pid: 17502 [2014-11-07t12:26:35+08:00] info: setting run_list ["recipe[gitlab]"] cli options [2014-11-07t12:26:35+08:00] info: run list [recipe[gitlab]] [2014-11-07t12:26:35+08:00] info: run list expands [gitlab] [2014-11-07t12:26:35+08:00] info: starting chef run r710 [2014-11-07t12:26:35+08:00] info: running start handlers [2014-11-07t12:26:35+08:00] info: start handlers complete. [2014-11-07t12:26:35+08:00] warn: cloning resource attributes directory[/var/opt/gitlab] prior resource (chef-3694) [2014-11-07t12:26:35+08:00] warn: previous directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:40:in `from_file' [2014-11-07t12:26:35+08:00] warn: current directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb:23:in `from_file' [2014-11-07t12:26:35+08:00] warn: cloning resource attributes directory[/var/opt/gitlab/gitlab-rails/etc] prior resource (chef-3694) [2014-11-07t12:26:35+08: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-11-07t12:26:35+08: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-11-07t12:26:35+08:00] warn: cloning resource attributes service[unicorn] prior resource (chef-3694) [2014-11-07t12:26:35+08:00] warn: previous service[unicorn]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:64:in `block in from_file' [2014-11-07t12:26:35+08:00] warn: current service[unicorn]: /opt/gitlab/embedded/cookbooks/runit/definitions/runit_service.rb:191:in `block in from_file' [2014-11-07t12:26:35+08:00] warn: cloning resource attributes service[sidekiq] prior resource (chef-3694) [2014-11-07t12:26:35+08:00] warn: previous service[sidekiq]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:64:in `block in from_file' [2014-11-07t12:26:35+08:00] warn: current service[sidekiq]: /opt/gitlab/embedded/cookbooks/runit/definitions/runit_service.rb:191:in `block in from_file' ================================================================================ [31merror executing action `create` on resource 'user[git]' ================================================================================ mixlib::shellout::shellcommandfailed ------------------------------------ expected process exit [0], received '8' ---- begin output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ---- stdout: stderr: usermod: user git logged in ---- end output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ---- ran ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] returned 8 resource declaration: --------------------- # in /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb 34: user gitlab_username 35: shell node['gitlab']['user']['shell'] 36: home gitlab_home 37: uid node['gitlab']['user']['uid'] 38: gid gitlab_group 39: scheme true 40: end 41: compiled resource: ------------------ # declared in /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb:34:in `from_file' user("git") action :create supports {:manage_home=>false, :non_unique=>false} retries 0 retry_delay 2 guard_interpreter :default username "git" gid 1014 home "/var/opt/gitlab" shell "/bin/sh" scheme true cookbook_name :gitlab recipe_name "users" end [2014-11-07t12:26:35+08:00] info: running queued delayed notifications before re-raising exception [2014-11-07t12:26:35+08:00] error: running exception handlers [2014-11-07t12:26:35+08:00] error: exception handlers finish [2014-11-07t12:26:35+08:00] fatal: stacktrace dumped /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out [2014-11-07t12:26:35+08:00] error: user[git] (gitlab::users line 34) had error: mixlib::shellout::shellcommandfailed: expected process exit [0], received '8' ---- begin output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ---- stdout: stderr: usermod: user git logged in ---- end output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ---- ran ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] returned 8 [2014-11-07t12:26:36+08:00] fatal: chef::exceptions::childconvergeerror: chef run process exited unsuccessfully (exit code 1)

something else is:

i saw usermod: user git logged in in log. , have user on server named git . there problem, , how prepare it?

thanks lot!

the fact have user named git problem: need user reserved gitlab.

have tried as explained on readme:

by default, omnibus-gitlab uses user name git git gitlab-shell login, ownership of git info itself, , ssh url generation on web interface. similarly, git grouping used grouping ownership of git data. can alter user , grouping adding next lines /etc/gitlab/gitlab.rb.

user['username'] = "gitlab" user['group'] = "gitlab"

run sudo gitlab-ctl reconfigure alter take effect.

git gitlab

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -