Gitlab无法启动新安装

时间:2015-12-12 16:11:30

标签: gitlab unicorn centos6

我最近在Centos 6.7服务器上全新安装了Gitlab,但它无法启动,我很难搞清楚原因。启动时我得到以下内容。

[root@server1 gitlab]# service gitlab start
Starting unicorn: master failed to start, check stderr log for details
                                                           [FAILED]
Starting sidekiq: 

我检查了/var/log/gitlab/unicorn/unicorn_stderr.log中的日志,但是自从我安装完成后没有写任何内容,我发现日志中没有错误。

运行'sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV = production'给我以下

System information
System:     CentOS 6.7
Current User:   git
Using RVM:  no
Ruby Version:   2.1.2p95
Gem Version:    2.2.2
Bundler Version:1.10.6
Rake Version:   10.4.2
Sidekiq Version:4.0.1

GitLab information
Version:    8.3.0.pre
Revision:   e8d35ea
Directory:  /home/git/gitlab
DB Adapter: postgresql
URL:        http://git.mydomain.com
HTTP Clone URL: http://git.mydomain.com/some-group/some-project.git
SSH Clone URL:  git@git.mydomain.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    2.6.8
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git

运行'sudo -u git -H bundle exec rake gitlab:check RAILS_ENV = production'给我以下内容。我假设Gitlab shell无法启动,因为gitlab无法启动。

Checking GitLab Shell ...

GitLab Shell version >= 2.6.8 ? ... OK (2.6.8)
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. code: 500
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
Database is SQLite ... no
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? ... no
  Try fixing it:
  Redownload the init script
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  Please fix the error above and rerun the checks.
projects have namespace: ... can't check, you have no projects
Redis version >= 2.4.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.2)
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.12)
Active users: 1

Checking GitLab ... Finished

我可以做些什么来调试并可能解决此问题?我怎么知道导致问题的原因是什么?

0 个答案:

没有答案