gitlab-ctl reconfigure sets wrong group for database.yml file
Summary
gitlab-ctl reconfigure
fails with the following error
[...]
* templatesymlink[Create a database.yml and create a symlink to Rails root] action create
* template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create
* cannot determine group id for 'my_git', does the group exist on this system?
================================================================================
Error executing action `create` on resource 'template[/var/opt/gitlab/gitlab-rails/etc/database.yml]'
================================================================================
Chef::Exceptions::GroupIDNotFound
---------------------------------
cannot determine group id for 'my_git', does the group exist on this system?
[...]
if GitLab runs under a user for which no group with the same name exists.
The issue is caused by the following line which I believe constitutes a bug:
group gitlab_user
should be
group gitlab_group
In fact, changing this manually resolves the issue and gitlab-ctl reconfigure
succeeds as expected.
Steps to reproduce
Run GitLab under a user for which no group with the same name exists.
What is the current bug behavior?
gitlab-ctl reconfigure
fails.
What is the expected correct behavior?
gitlab-ctl reconfigure
should succeed.
Details of package version
Provide the package version installation details
||/ Name Version Architecture Description +++-==================================================================================================-======================================================-======================================================-========================================================================================================================================================================================================= ii gitlab-ce 11.1.0-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis) un gitlab-ee (no description available)
Environment details
- Operating System: Linux 4.4.0-130-generic #156 (closed)-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- Installation Target, remove incorrect values:
- Bare Metal Machine
- Installation Type, remove incorrect values:
- Upgrade from version 11.0.4
- Is this a single or multiple node installation?
- Single node
- Resources
- CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
- Memory total: 32GB
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
[...] user['username'] = "my_git" user['group'] = "my_group" user['home'] = "/home/my_git" [...]
Edited by Christian Priebe