![Debian 7 - gitlab-shell을 1.9.5에서 1.9.6으로 업데이트](https://rvso.com/image/1419586/Debian%207%20-%20gitlab-shell%EC%9D%84%201.9.5%EC%97%90%EC%84%9C%201.9.6%EC%9C%BC%EB%A1%9C%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8.png)
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 쉘 버전 >= 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
사용자 "git"으로 수행하는 것이 더 나을 루트로 꽤 많은 작업을 수행하는 것처럼 보이므로 일부 경고가 표시됩니다. 하는 동안이것링크는 약간 오래되었으므로 루트가 아닌 "git" 사용자로 이 작업을 수행하는 방법을 확인하는 데 도움이 될 수 있습니다.