关于安装gitlab到后期check遇到的问题

回复 收藏
123.jpg

报错如图

检查gitlab  sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production  。找了大量资料,说更改三个配置文件,报错IP:Port 一致即可,但是都保持一致了,过程中还换了IP和端口,check还是“Check GitLab API access: FAILED: Failed to connect to internal API”的错误


gitlab IP:Port的三配置文件:
/home/git/gitlab-shell/config.yml
/home/git/gitlab/config/unicorn.rb
/home/git/gitlab/config/gitlab.yml

每次更改完配置文件后,在/home/git/gitlab-shell/bin 目录下执行sudo -u git ./check 进行检查,都会报下面的错(与上图一致,用这个相对快捷,因为全局检查太耗时间)
Check GitLab API access: FAILED: Failed to connect to internal API

安装参考官方的文档:
https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos
2016-06-05 00:58 举报
已邀请:
0

bbcw

赞同来自:

[root@git gitlab]# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking GitLab Shell ...

GitLab Shell version >= 2.7.2 ? ... OK (2.7.2)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
hooks directories in repos are links: ... can't check, you have no projects
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: FAILED: Failed to connect to internal API
gitlab-shell self-check failed
  Try fixing it:
  Make sure GitLab is running;
  Check the gitlab-shell configuration file:
  sudo -u git -H editor /home/git/gitlab-shell/config.yml
  Please fix the error above and rerun the checks.

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ... can't check, you have no projects
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.8)
Your git bin path is "/usr/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 1

Checking GitLab ... Finished


为了方便解决,直接把执行过程的信息发上来。
0

阿铭 管理员

赞同来自:

因为我还没有研究过这个gitlab,所以网上搜了一些文章,希望能有所帮助。 其实遇到问题,最主要的是查看日志,或者根据报错信息去搜百度、google(http://www.apelearn.com/bbs/thread-10436-1-1.html

文章如下:
http://www.apelearn.com/bbs/thread-10436-1-1.html
https://forum.gitlab.com/t/sol ... i/828
http://stackoverflow.com/quest ... hable

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: