错误当试图备份Gitlab - Error when trying to backup Gitlab

- 此内容更新于:2016-02-03
主题:

当我想备份实例Gitlab在我的服务器的命令我得到以下错误:所以我试着命令,没有变化。有人有一个想法我如何解决这个问题?或者有其他办法备份没有这个命令吗?提前谢谢。

原文:

When I'm trying to backup my instance of Gitlab on my server with the command

gitlab-ci-rake backup:create

I'm getting the following error:

/usr/bin/gitlab-ci-rake error: could not load /opt/gitlab/etc/gitlab-ci/gitlab-ci-rc
Either you are not allowed to read the file, or it does not exist yet.
You can generate it with:   sudo gitlab-ctl reconfigure

So I tried the reconfigure command with no changes.

Does anybody have an idea how I could fix this problem? Or is there an other way to do backups without this command?

Thanks in advance.

解决方案:
我有一些问题,当我作为根用户备份并显示这个错误。所以我改变作为另一个用户登录(不是根)并成功备份
原文:

I have some problem, when I backup as root and show this error.

So I change the login as another user (not root) and successfully backup

楼主:不幸的是,错误仍然出现,当我尝试作为另一个用户(使用sudo访问)。

(原文:Unfortunately the error still appears, when I try as another user (with sudo access).)

网友:你使用gitlab-ce或gitlab-ci吗?你试试这个命令:sudogitlab-rakegitlab:备份:创建

(原文:are you using gitlab-ce or gitlab-ci ? have you try this command : sudo gitlab-rake gitlab:backup:create)

楼主:我使用gitlab-ci。

(原文:I use gitlab-ci.)

网友:已经试图执行:gitlab-rakegitlab:备份:创建?

(原文:already try to execute : gitlab-rake gitlab:backup:create ?)

楼主:这个命令。非常感谢。你也许能解释一下,有什么区别的命令我试过这个吗?

(原文:This command worked. Thank you very much. Can you maybe explain, what's the difference between the command I tried and this one?)