Sidekiq - undefined method commits_between
Created by: jbrooksuk
After battling with some other issues with Sidekiq #5100 (closed), I decided to start fresh. No Bitnami installer, just a plain Ubuntu 13.04 installation and go through each and every step manually.
I've finally installed Gitlab, created a new project and gone to push my code. But wait! Git Bash is saying the repository has been pushed but Gitlab is showing nothing.
Checking the sidekiq.log
file I get this:
Initialised empty Git repository in /home/git/repositories/internal/bloot.git/
2013-09-17T16:24:31Z 6033 TID-owsqt0epw GitlabShellWorker JID-099871ad90a904ded15effb4 INFO: done: 1.121 sec
2013-09-17T16:24:35Z 6033 TID-owsqt0epw PostReceive JID- INFO: start
2013-09-17T16:24:35Z 6033 TID-owsqt0epw PostReceive JID- INFO: fail: 0.014 sec
2013-09-17T16:24:35Z 6033 TID-owsqt0epw WARN: {"class"=>"PostReceive", "args"=>["/home/git/repositories/internal/bloot.git", "0000000000000000000000000000000000000000", "9f64b7dabe0db1d3a938dc6e1cefc09bd7924365", "refs/heads/master", "key-1"]}
2013-09-17T16:24:35Z 6033 TID-owsqt0epw WARN: undefined method `commits_between' for nil:NilClass
2013-09-17T16:24:35Z 6033 TID-owsqt0epw WARN: /home/git/gitlab/vendor/bundle/ruby/2.0.0/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/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:48:in `block (3 levels) in process'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:115:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:115:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:117:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/retry_jobs.rb:62:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:117:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/logging.rb:22:in `with_context'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:117:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:120:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/middleware/chain.rb:120:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:47:in `block (2 levels) in process'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:102:in `stats'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:46:in `block in process'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:83:in `do_defer'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.14.0/lib/sidekiq/processor.rb:37:in `process'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `public_send'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `dispatch'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/celluloid-0.14.1/lib/celluloid/calls.rb:125:in `dispatch'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/celluloid-0.14.1/lib/celluloid/actor.rb:326:in `block in handle_message'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/celluloid-0.14.1/lib/celluloid/tasks.rb:42:in `block in initialize'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/celluloid-0.14.1/lib/celluloid/tasks/task_fiber.rb:11:in `block in create'
I've followed the steps to the letter, so how can this be occurring now?