Backup and other paths to NFS not working with root_squash and storage directories management disabled
I have an NFS share that I cannot set no_root_squash
on because NetApp NFS does not support no_root_squash
. When I try to set gitlab_rails['backup_path'] = '/gitlabdev/gitlab-data/backups'
in gitlab.rb
I get the following error:
* directory[/gitlabdev/gitlab-data/backups] action create
================================================================================
Error executing action `create` on resource 'directory[/gitlabdev/gitlab-data/backups]'
================================================================================
Errno::EINVAL
-------------
Invalid argument @ chown_internal - /gitlabdev/gitlab-data/backups
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb
95: directory node['gitlab']['gitlab-rails']['backup_path'] do
96: owner gitlab_user
97: mode '0700'
98: recursive true
99: only_if { node['gitlab']['gitlab-rails']['manage_backup_path'] }
100: end
101:
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:95:in `from_file'
directory("/gitlabdev/gitlab-data/backups") do
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
path "/gitlabdev/gitlab-data/backups"
recursive true
declared_type :directory
cookbook_name "gitlab"
recipe_name "gitlab-rails"
owner "git"
mode "0700"
only_if { #code block }
end
Platform:
---------
x86_64-linux
Running handlers:
Running handlers complete
Chef Client failed. 2 resources updated in 06 seconds
Then I found https://docs.gitlab.com/omnibus/common_installation_problems/README.html#reconfigure-fails-due-to-quot-39-root-39-cannot-chown-quot-with-nfs-root_squash which says I can disable storage directories management using manage_storage_directories['enable'] = false
however even after setting that option I'm still getting the same error.
Running on RHEL 6.7 using GitLab Community Edition 9.1.1 d3123f6
sudo nfsstat -m
is returning the mount details as (x
are blanked out data)
/gitlabdev from x.x.x.com:/vol/x/x
Flags: rw,sync,nosuid,noatime,vers=4,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=x.x.x.x,minorversion=0,local_lock=none,addr=x.x.x.x
Edited by Ben Bodenmiller