Skip to content
GitLab
项目 群组 主题 代码片段
  • /
  • 帮助
    • 帮助
    • 支持
    • 社区论坛
    • 提交反馈
  • 登录
  • L large
  • 项目信息
    • 项目信息
    • 动态
    • 标记
    • 成员
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者统计
    • 分支图
    • 比较修订版本
  • 议题 21
    • 议题 21
    • 列表
    • 看板
    • 服务台
    • 里程碑
  • 合并请求 12
    • 合并请求 12
  • CI/CD
    • CI/CD
    • 流水线
    • 作业
    • 产物
    • 计划
  • 部署
    • 部署
    • 环境
    • 发布
  • 软件包与镜像库
    • 软件包与镜像库
    • 软件包库
    • 容器镜像库
    • Terraform 模块
    • 模型实验
  • 监控
    • 监控
    • 事件
  • 分析
    • 分析
    • 价值流
    • CI/CD
    • 仓库
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 动态
  • 分支图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
收起侧边栏
  • 王权利
  • large
  • 议题
  • #8465

gitlab:check Problem

Created by: MrKeiKun

Information: I'm doing some check on my git server. I ran bundle exec rake gitlab:env:info RAILS_ENV=production && bundle exec rake gitlab:check RAILS_ENV=production and it returned an error after running the 2nd task.

Log:

[git@server1 gitlab]$ bundle exec rake gitlab:env:info RAILS_ENV=production && bundle exec rake gitlab:check RAILS_ENV=production

System information
System:
Current User:   git
Using RVM:      no
Ruby Version:   2.0.0p353
Gem Version:    2.0.14
Bundler Version:1.7.4
Rake Version:   10.3.2
Sidekiq Version:2.17.8

GitLab information
Version:        7.6.0.pre
Revision:       b87c9e2
Directory:      /home/git/gitlab
DB Adapter:     mysql2
URL:            http://some-git.tld
HTTP Clone URL: http://some-git.tld/some-project.git
SSH Clone URL:  git@some-git.tld:some-project.git
Using LDAP:     no
Using Omniauth: no

GitLab Shell
Version:        2.4.0
Repositories:   /home/git/repositories/
Hooks:          /home/git/gitlab-shell/hooks/
Git:            /usr/bin/git
Checking Environment ...

Git configured for git user? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 2.4.0 ? ... OK (2.4.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
Satellites access is drwxr-x---? ... yes
hooks directories in repos are links: ...
rake aborted!
ArgumentError: wrong number of arguments (0 for 1..2)
/home/git/gitlab/vendor/bundle/ruby/gems/actionview-4.1.1/lib/action_view/helpers/sanitize_helper.rb:59:in `sanitize'
/home/git/gitlab/lib/tasks/gitlab/check.rake:793:in `sanitized_message'
/home/git/gitlab/lib/tasks/gitlab/check.rake:499:in `block in check_repos_hooks_directory_is_link'
/home/git/gitlab/vendor/bundle/ruby/gems/activerecord-4.1.1/lib/active_record/relation/batches.rb:52:in `block (2 levels) in find_each'
/home/git/gitlab/vendor/bundle/ruby/gems/activerecord-4.1.1/lib/active_record/relation/batches.rb:52:in `each'
/home/git/gitlab/vendor/bundle/ruby/gems/activerecord-4.1.1/lib/active_record/relation/batches.rb:52:in `block in find_each'
/home/git/gitlab/vendor/bundle/ruby/gems/activerecord-4.1.1/lib/active_record/relation/batches.rb:125:in `find_in_batches'
/home/git/gitlab/vendor/bundle/ruby/gems/activerecord-4.1.1/lib/active_record/relation/batches.rb:51:in `find_each'
/home/git/gitlab/vendor/bundle/ruby/gems/activerecord-4.1.1/lib/active_record/querying.rb:9:in `find_each'
/home/git/gitlab/lib/tasks/gitlab/check.rake:498:in `check_repos_hooks_directory_is_link'
/home/git/gitlab/lib/tasks/gitlab/check.rake:359:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:check => gitlab:gitlab_shell:check
(See full trace by running task with --trace)
指派人
分配到
工时统计