大型仓库中的GitLab搜索和图形失败

时间:2014-01-22 01:38:41

标签: git nginx gitlab

刚刚将一个大型代码树加载到GitLab中,当我进行搜索时,出现“500 Something failed”错误。当我尝试加载图表时,错误显示“无法加载图表”。回购中唯一的提交是初始提交。根据{{​​1}},此仓库中有46199个文件。任何帮助将不胜感激!

以下是GitLab的一些信息:

git ls-files |wc -l

部分修复 搜索现在有效。我不得不更新以下时间线:

[git@code gitlab]$ bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:     CentOS 6.4
Current User:   git
Using RVM:  no
Ruby Version:   2.0.0p247
Gem Version:    2.0.3
Bundler Version:1.3.5
Rake Version:   10.1.0

GitLab information
Version:    6.4.3
Revision:   42131d0
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        https://code.example.edu/gitlab
HTTP Clone URL: https://code.example.edu/gitlab/some-project.git
SSH Clone URL:  git@code.example.edu:some-project.git
Using LDAP: yes
Using Omniauth: no

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

[git@code gitlab]$ bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)
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
update hook up-to-date? ... yes
update hooks in repos are links: ...
(removed repository list, all were ok)
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
    /home/git/repositories: OK
    /home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.10
Send ping to redis server: PONG
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

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

Checking Sidekiq ... Finished

Checking LDAP ...

LDAP users with access to your GitLab server (limit: 100):
(removed my user list... it printed them just fine)

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
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: ...
(projects all said yes)
projects have satellites? ...
(projects said yes or "can't create, repository is empty")
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.4)

Checking GitLab ... Finished

至于图表,它们仍然被打破。这是尝试渲染图形时的生产日志:

[git@code gitlab]$ grep timeout config/unicorn.rb config/gitlab.yml
config/unicorn.rb:timeout 90
config/gitlab.yml:    # Git timeout to read a commit, in seconds
config/gitlab.yml:    timeout: 90

1 个答案:

答案 0 :(得分:0)

请添加详细说明500错误的production.log行。