Backup trouble with permissions, GitLab CE 8.0.5
Hi, I am new to using GitLab and so far lots of features are working and it's really very nice.
I'm having trouble getting an NFS-mounted volume to function as a backup volume. Below is the output when I run gitlab-ctl reconfigure. My backup location is set to /mnt/gitsource/p02/backups. The permissions of the directories are the same, user and group both set to "git", permissions set to 755.
I've tried lots of other combinations of settings, including remounting the volume with different NFS settings, but nothing seems to be working.
I'm using GitLab 8.0.5 and RHEL6. SELinux is disabled.
Any help would be appreciated.
* directory[/mnt/gitsource/p02/backups] action create
* Cannot create directory[/mnt/gitsource/p02/backups] at /mnt/gitsource/p02/backups due to insufficient permissions
================================================================================
Error executing action `create` on resource 'directory[/mnt/gitsource/p02/backups]'
================================================================================
Chef::Exceptions::InsufficientPermissions
-----------------------------------------
Cannot create directory[/mnt/gitsource/p02/backups] at /mnt/gitsource/p02/backups due to insufficient permissions
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb
49: directory dir_name do
50: owner gitlab_user
51: mode '0700'
52: recursive true
53: end
54: end
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:49:in `block in from_file'
directory("/mnt/gitsource/p02/backups") do
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
path "/mnt/gitsource/p02/backups"
recursive true
declared_type :directory
cookbook_name "gitlab"
recipe_name "gitlab-rails"
owner "git"
mode "0700"
end
Running handlers:
[2015-10-20T06:23:56-07:00] ERROR: Running exception handlers
Running handlers complete
[2015-10-20T06:23:56-07:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 4.094496594 seconds
[2015-10-20T06:23:56-07:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2015-10-20T06:23:56-07:00] ERROR: directory[/mnt/gitsource/p02/backups] (gitlab::gitlab-rails line 49) had an error: Chef::Exceptions::InsufficientPermissions: Cannot create directory[/mnt/gitsource/p02/backups] at /mnt/gitsource/p02/backups due to insufficient permissions
[2015-10-20T06:23:58-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Edited by 🤖 GitLab Bot 🤖