RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
Gitlab搭建常见错误有哪些

这篇文章将为大家详细讲解有关Gitlab搭建常见错误有哪些,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

创新互联公司专注于企业网络营销推广、网站重做改版、井研网站定制设计、自适应品牌网站建设、成都h5网站建设商城网站开发、集团公司官网建设、成都外贸网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为井研等各大城市提供网站开发制作服务。

  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

Gitlab搭建常见错误有哪些

修改项目目录的权限 chown git:git 

Gitlab搭建常见错误有哪些

不能用其它的权限  必须是所属git   并且rw------

gitlab-shell reinstall

Gitlab搭建常见错误有哪些

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.

关于“Gitlab搭建常见错误有哪些”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。


网站名称:Gitlab搭建常见错误有哪些
路径分享:http://sczitong.cn/article/iidsip.html