Gitlab是一款開源的代碼控制發佈系統,類似於Github,可用於私人代碼和中小型企業的代碼管理。
以下是本人遇到的錯誤,以及各種解決方案,希望對大家有些幫助:
1.最好使用CentOS 6.4進行安裝,5.x系列,太多依賴問題需要解決。
2.
ruby儘可能的使用rvm來安裝:
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
source /etc/profile.d/rvm.sh
rvm install ruby-2.0.0-p247
3.
ERROR: Error installing charlock_holmes:
解決:
yum install libicu-devel
icu 版本4.2以上
4.
CentOS5 無法安裝charlock_holem
https://github.com/brianmario/charlock_holmes/issues/37
5.權限問題:
Gitlab
Key的控制是每個用戶登錄時加Key
我用Admin登錄加了Key 那這些Key的使用者就都是Admin的權限了
我應該用 A用戶 B用戶分別登錄 然後上傳自己的Key
再用web進行控制
6.502錯誤:
502
http://www.pwhack.me/archives/installation_of_gitlab.html
cp config/unicorn.rb.example config/unicorn.rb
bundle exec unicorn_rails -c config/unicorn.rb -E production -D
7.
/usr/local/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError
http://blog.csdn.net/csfreebird/article/details/8852305
兩個條件:
1.self_signed_cert設置爲true
2.url要用https
回到config.yml文件中,這樣配置:
8.
出現read A hello錯誤
yum -y install libyaml
9.
Gitlab sidekiq 不啓動:
bundle exec rake sidekiq:start RAILS_ENV=production
10.
remote權限:
chmod 777 /home/git/gitlab-shell/gitlab-shell.log
修改項目目錄的權限 chown git:git
不能用其它的權限 必須是所屬git 並且rw------
gitlab-shell reinstall
11.
Mail設置:
1.http://www.makebetterthings.com/git/gitlab-5-3-email-smtp-setup/
Just a heads up, in the newer versions you have to instead create
a script at: ‘/home/git/gitlab/config/initializers/smpt_settings.rb’
which you can base off of ‘/home/git/gitlab/config/initializers/smpt_settings.rb.sample’ (check the github repository at https://github.com/gitlabhq/gitlabhq/blob/master/config/initializers/smtp_settings.rb.sample if your version does not have it).
2.還需修改gitlab.yam中的Email setting
12.
看代碼500錯誤
升級python -> 2.6 +
ruby的libyaml安裝 然後重新編譯安裝ruby
13.
/home/git/gitlab/public/.html" failed (13: Permission denied)
chmod o+x /tmp/
將Nginx運行的用戶加入git組
usermod -a -G git nginx
14.
頁面圖標不顯示:
I did a
sudo -u git -H bundle exec rake assets:clean RAILS_ENV=production
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
and the icons started appearing normally.