Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common mistakes in Gitlab building?

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what are the common mistakes in Gitlab building. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

1. It is best to use CentOS 6.4 for installation, 5.x series, too many dependency issues need to be resolved.

two。

Ruby uses rvm to install whenever possible:

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:

Resolve:

Yum install libicu-devel

Icu version 4.2 or above

4.

CentOS5 cannot install charlock_holem

Https://github.com/brianmario/charlock_holmes/issues/37

5. Permission question:

Gitlab

The control of Key is to add Key when each user logs in.

I use Admin to log in and add Key, so the users of these Key are all Admin permissions.

I should use user An and user B to log in and upload their own Key.

Then use web to control.

6.502 error:

five hundred and two

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

Two conditions:

1.self_signed_cert is set to true

2.url needs to use https

Go back to the config.yml file and configure:

8.

A read A hello error occurred

Yum-y install libyaml

9.

Gitlab sidekiq does not start:

Bundle exec rake sidekiq:start RAILS_ENV=production

10.

Remote permissions:

Chmod 777 / home/git/gitlab-shell/gitlab-shell.log

Modify the permissions of the project directory chown git:git

Cannot use other permissions must be the git and rw-

Gitlab-shell reinstall

11.

Mail settings:

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).

two。 You also need to modify the Email setting in gitlab.yam

twelve。

Look at code 500 error

Upgrade python-> 2.6 +

Libyaml installation of ruby and then recompile and install ruby

13.

/ home/git/gitlab/public/.html "failed (13: Permission denied)

Chmod overnx / tmp/

Add users running Nginx to the git group

Usermod-a-G git nginx

14.

The page icon does not display:

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.

This is the end of this article on "what are the common mistakes in Gitlab building?". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 280

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report