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:  [email protected]: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)