Hi All
Trying to install and trial gitlab-ee on RHEL with NAS for storage.
I have updated gitlab.rb file with NAS path. NAS has 0770 permissions set.
I am using gitlabdev user and group.
Below changes in gitlab.rb file has been made.
user[‘username’] = “gitlabdev”
user[‘group’] = “gitlabdev”
gitlab_rails[‘manage_backup_path’] = false
git_data_dirs({
“default” => { “path” => “/nas/data/gitlabrepo/” }
})
When I executed “sudo gitlab-ctl reconfigure”, I get below error. gitlab is expecting 0700, whereas 0770 is set for NAS.
I have asked NAS team to check and meanwhile is there any config file where I can change the mode.Why will gitlab hardcode the mode to 0700?
System Info:
chef_version=15.14.0
platform=redhat
platform_version=7.9
ruby=ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-clientRunning handlers:
There was an error running gitlab-ctl reconfigure:storage_directory[/nas/data/gitlabrepo/] (gitlab::gitlab-rails line 47) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[directory resource: /nas/data/gitlabrepo/] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 34) had an error: Mixlib::ShellOut::ShellCommandFailed: Failed asserting that mode permissions on “/nas/data/gitlabrepo/” is 0700
---- Begin output of set -x && [ “$(stat --printf=‘%04a’ $(readlink -f /nas/data/gitlabrepo/) | grep -o ‘…$’)” = ‘0700’ ] ----
STDOUT:
STDERR: ++ grep -o ‘…$’
+++ readlink -f /nas/data/gitlabrepo/
++ stat --printf=%04a /nas/data/gitlabrepo
- ‘[’ 0770 = 0700 ‘]’
---- End output of set -x && [ “$(stat --printf=‘%04a’ $(readlink -f /nas/data/gitlabrepo/) | grep -o ‘…$’)” = ‘0700’ ] ----
Ran set -x && [ “$(stat --printf=‘%04a’ $(readlink -f /nas/data/gitlabrepo/) | grep -o ‘…$’)” = ‘0700’ ] returned 1