Debian 7-将 gitlab-shell 从 1.9.5 更新至 1.9.6

Debian 7-将 gitlab-shell 从 1.9.5 更新至 1.9.6

我正在 Debian Server 7.6 上设置 Gitlab

执行此操作时:

# bundle exec rake gitlab:check RAILS_ENV=production

输出:

Instance method "lock!" is already defined in ActiveRecord::Base, use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.
 Warning 
  You are running as user root, we hope you know what you are doing.
  Things may work/fail for the wrong reasons.
  For correct results you should run this as user git.

Checking Environment ...

Git configured for git user? ... no
  Try fixing it:
  sudo -u git -H git config --global user.name  "GitLab"
  sudo -u git -H git config --global user.email "[email protected]"
  For more information see:
  doc/install/installation.md in section "GitLab"
  Please fix the error above and rerun the checks.

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.9.6 ? ... FAIL. Please update gitlab-shell to 1.9.6 from 1.9.5

Checking Sidekiq ...

Running? ... no
  Try fixing it:
  sudo -u git -H RAILS_ENV=production bin/background_jobs start
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  see log/sidekiq.log for possible errors
  Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned UsersGroups? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes

我被困在这部分:

GitLab Shell 版本 >= 1.9.6 ?... 失败。请将 gitlab-shell 从 1.9.5 更新至 1.9.6

有人能帮忙解决这个问题吗?

答案1

看起来您只需要更新gitlab-shell,可以使用以下命令集完成:

git clone https://github.com/gitlabhq/gitlab-shell.git
cp config.yml.example config.yml
vim config.yml

确保将 gitlab_url 替换为你所需的 URL

sudo -u git -H ./bin/install

请注意,您似乎以 root 身份执行了相当多的操作,而这些操作最好以用户“git”身份执行,因此您收到了一些警告。链接有点过时,但它可能有助于您了解如何以用户“git”而不是root身份执行此操作。

相关内容