post-receive hook exception: undefined method `commits_between' for nil:NilClass
Created by: marlboromoo
Summary: The project will not update after git push
.
Steps to reproduce: Create a new project and do a git push
.
Expected behavior: The project page update.
Observed behavior: Nothing happens but got the exceptions like below.
Relevant logs: Exceptions in log/sidekiq.log
.
2013-09-17T03:31:21Z 28937 TID-n90lc WARN: {"class"=>"PostReceive", "args"=>["/home/git/repositories/timothy.lee/cocktaildb.git", "0000000000000000000000000000000000000000", "5da1c0378797124a18b6ecd5be620c9c64e95319", "refs/heads/master", "key-2"]}
2013-09-17T03:31:21Z 28937 TID-n90lc WARN: undefined method `commits_between' for nil:NilClass
2013-09-17T03:31:21Z 28937 TID-n90lc WARN: /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/gitlab_git-2.2.0/lib/gitlab_git/commit.rb:89:in `between'
/home/git/gitlab/app/models/repository.rb:40:in `commits_between'
/home/git/gitlab/app/services/git_push_service.rb:21:in `execute'
/home/git/gitlab/app/workers/post_receive.rb:32:in `perform'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:48:in `block (3 levels) in process'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:115:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:115:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:117:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/retry_jobs.rb:62:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:117:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/logging.rb:22:in `with_context'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:117:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:120:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:120:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:47:in `block (2 levels) in process'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:102:in `stats'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:46:in `block in process'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `public_send'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `dispatch'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/calls.rb:67:in `dispatch'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/future.rb:15:in `block in new'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/internal_pool.rb:59:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/internal_pool.rb:59:in `block in create'
Output of checks: bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Ubuntu 12.04
Current User: git
Using RVM: no
Ruby Version: 1.9.3p194
Gem Version: 1.8.23
Bundler Version:1.2.2
Rake Version: 10.1.0
GitLab information
Version: 6.1.0.rc1
Revision: 16b6040
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://gitlab.104cloud.com.tw
HTTP Clone URL: http://gitlab.104cloud.com.tw/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.7.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
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.0 ? ... OK (1.7.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: ...
matt.chou / WSO2 ... ok
shun.liao / CompanyName ... ok
hades.chen / ValueWeb ... ok
matt.chou / BigBlueButton ... ok
eason.wu / SpydroidIpcamera ... ok
eason.wu / Readability ... ok
eason.wu / DocConvertor ... ok
shun.liao / SearchEngine2 ... ok
shun.liao / SearchJob2 ... ok
shun.liao / SearchWeb2 ... ok
shun.liao / Fenci ... ok
eason.wu / IndexTank ... ok
eason.wu / SVDOnMahout ... ok
eason.wu / Flume ... ok
eason.wu / WSO2API ... ok
eason.wu / Handover ... ok
eason.wu / WebRTC ... ok
hades.chen / Crucio.Draf ... ok
hades.chen / Crucio ... ok
eason.wu / JobResumeRelevanceAPI ... ok
timothy.lee / cf_app_sample ... ok
timothy.lee / opencv ... ok
timothy.lee / streaming ... ok
timothy.lee / webdav_manager ... ok
timothy.lee / monitor ... ok
timothy.lee / opennebula_auth ... ok
timothy.lee / opennebula_one ... ok
timothy.lee / opennebula_utils ... ok
timothy.lee / p2p ... ok
timothy.lee / other ... ok
hades.chen / FunWeb ... ok
timothy.lee / cf_deployment_utils ... ok
eason.wu / JobCatSuggestion ... ok
hades.chen / SearchWeb ... ok
hades.chen / Leech ... ok
andy hsu / compareJob ... ok
andy hsu / convertJob ... ok
andy hsu / jblog ... ok
andy hsu / logToMailFileJob ... ok
hades.chen / Log2Mongo ... ok
hades.chen / SearchWebLogLooker ... ok
hades.chen / SearchWebLogReport ... ok
hades.chen / SearchUtil ... ok
hades.chen / Screw2Mongo ... ok
timothy.lee / cocktaildb ... repository is empty
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Checking Sidekiq ... 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? ... yes
Projects have satellites? ...
matt.chou / WSO2 ... yes
shun.liao / CompanyName ... yes
hades.chen / ValueWeb ... yes
matt.chou / BigBlueButton ... yes
eason.wu / SpydroidIpcamera ... yes
eason.wu / Readability ... yes
eason.wu / DocConvertor ... yes
shun.liao / SearchEngine2 ... yes
shun.liao / SearchJob2 ... yes
shun.liao / SearchWeb2 ... yes
shun.liao / Fenci ... yes
eason.wu / IndexTank ... yes
eason.wu / SVDOnMahout ... yes
eason.wu / Flume ... yes
eason.wu / WSO2API ... yes
eason.wu / Handover ... yes
eason.wu / WebRTC ... yes
hades.chen / Crucio.Draf ... yes
hades.chen / Crucio ... yes
eason.wu / JobResumeRelevanceAPI ... yes
timothy.lee / cf_app_sample ... yes
timothy.lee / opencv ... yes
timothy.lee / streaming ... yes
timothy.lee / webdav_manager ... yes
timothy.lee / monitor ... yes
timothy.lee / opennebula_auth ... yes
timothy.lee / opennebula_one ... yes
timothy.lee / opennebula_utils ... yes
timothy.lee / p2p ... yes
timothy.lee / other ... yes
hades.chen / FunWeb ... yes
timothy.lee / cf_deployment_utils ... yes
eason.wu / JobCatSuggestion ... yes
hades.chen / SearchWeb ... yes
hades.chen / Leech ... yes
andy hsu / compareJob ... yes
andy hsu / convertJob ... yes
andy hsu / jblog ... yes
andy hsu / logToMailFileJob ... yes
hades.chen / Log2Mongo ... yes
hades.chen / SearchWebLogLooker ... yes
hades.chen / SearchWebLogReport ... yes
hades.chen / SearchUtil ... yes
hades.chen / Screw2Mongo ... yes
timothy.lee / cocktaildb ... 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