比较来自世界各地的卖家的域名和 IT 服务价格

安装时 GitLab 忽略了 ./config/gitlab.yml

我试图安装 GitLab 在 CentOS 5.x, 但现在卡住了,而且 Google 令人困惑。

我在看
https://github.com/gitlabhq/gi ... on.md
(目前卡住了
https://github.com/gitlabhq/gi ... up-db
)

发射后

bundle exec rake gitlab:app:status RAILS_ENV=production

我第二次得出这个结论:

Starting diagnostic
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............missing
rake aborted!
unexpected return

相应的部分是

/home/gitlab/gitlab/config/gitlab.yml

这是 (服务器有自己的TCC端口。):

git_host:
system: gitolite___
admin_uri: git@localhost:gitolite-admin
base_path: /home/git/repositories/
host: localhost
git_user: git
port: 2134

访问文件夹的权限

drwxrwx--- 4 git git 4096 Jul 20 07:12 repositories

和文件里面 (

gitlab

用户是B.

git

团体):

drwxrwx--- 8 git git 4096 Jul 20 04:22 gitolite-admin.git
drwxrwx--- 7 git git 4096 Jul 20 04:22 testing.git

即使我改变也是如此

base_path

价值B.

config/gitlab.yml

, 他正试图找到相同的文件夹。

只有我发现的解决方案的可能指示 Google, 表明它是不知何故 SElinux. 拟议的团队是:

find . -print0 |xargs -0 -n 1 sudo setfattr -h -x security.selinux

. 但我不知道在哪里执行它,他告诉我

command setfattr not found

.. 或者其他的东西。 另外,我有点怀疑恒定的配置也会影响 SElinux.

该怎么办 ?
已邀请:

八刀丁二

赞同来自:

也许你没有开始

rake

你的用户如何 gitlab? 如何:

sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production

从中查看其他设置时存在类似的问题

gitlab.yml

只是没有应用 ...

石油百科

赞同来自:

你提到:

即使我改变价值也是如此 base_path 在

config/gitlab.yml

, 他正试图找到相同的文件夹。

如果你看
https://github.com/gitlabhq/gi ... 5-L67
程序:

def git_base_path
git_host['base_path'] || '/home/git/repositories/'
end

所以,这是你真正的问题。 (在开始配置对文件夹的访问之前): gitlab 以某种方式忽略了你的

config/gitlab.yml

环境。

如果您有拼写错误,请检查两次,并确保通常考虑它们 (例如,删除它们以了解它是否不抱怨 gitlab 在没有这个文件的情况下).

要回复问题请先登录注册