我在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 "admin@gitlab.wiserobot"
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有人可以帮忙解决这个问题吗?
答案 0 :(得分:4)
关于gitlab-shell升级过程,upgrader page:
中对此进行了描述如果
gitlab:check
任务报告的gitlab-shell
过期版本(也是on GitHub),您应该升级它。使用正确的版本号替换1.9.6后,通过运行以下命令升级它:
cd /home/git/gitlab-shell
sudo -u git -H git fetch
sudo -u git -H git checkout v1.9.6