我在运行ubuntu 12.04和14.04
我已将Windows共享安装在/ mnt / git-data
上我已将此添加到/ etc / fstab中 // windows-share / git-data / mnt / git-data cifs uid = git,gid = git,credentials = .cifscre,iocharset = utf8,sec = ntlm 0 0
并将/etc/gitlab/gitlab.rb的git_data_dir更改为/ mnt / git-data
并运行sudo gitlab-ctl reconfigure但是出现了这个错误 看起来git用户没有权限更改目录的chmod 但是,在/ mnt / git-data目录
中创建了repositoty目录有人可以帮忙配置吗?
``` 我已将此添加到/ etc / fstab中 // windows-share / git-data / mnt / git-data cifs uid = git,gid = git,credentials = .cifscre,iocharset = utf8,sec = ntlm 0 0
并将/etc/gitlab/gitlab.rb的 git_data_dir 更改为 / mnt / git-data
并运行 sudo gitlab-ctl reconfigure 但是出现此错误 看起来git用户没有权限更改目录的chmod 但是,在/ mnt / git-data目录
中创建了repositoty目录有人可以帮忙配置吗?
Error executing action `create` on resource 'directory[/mnt/git-data]'
================================================================================
Errno::EACCES
-------------
Permission denied @ chmod_internal - /mnt/git-data
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-shell.rb
66: directory dir do
67: owner git_user
68: mode "0700"
69: recursive true
70: end
71: end
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-shell.rb:66:in `block in from_file'
directory("/mnt/git-data") do
action :create
retries 0
retry_delay 2
default_guard_interpreter :default
path "/mnt/git-data"
recursive true
declared_type :directory
cookbook_name "gitlab"
recipe_name "gitlab-shell"
owner "git"
mode "0700"
end
Running handlers:
[2015-08-12T15:25:59+09:00] ERROR: Running exception handlers
Running handlers complete
[2015-08-12T15:25:59+09:00] ERROR: Exception handlers complete
[2015-08-12T15:25:59+09:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 1 resources updated in 6.230443889 seconds
[2015-08-12T15:25:59+09:00] ERROR: directory[/mnt/git-data] (gitlab::gitlab-shell line 66) had an error: Errno::EACCES: Permission denied @ chmod_internal - /mnt/git-data
[2015-08-12T15:26:00+09:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)