GitLab CI fails on merge requests
Summary
I recently migrated from a GitLab source install to the Omnibus install upgrading to GitLab 7.11.4. GitLab now fails to connect to GitLab CI on merge requests, but has no issues on normal commits/pushes. It is also worth noting that when I push to a non-standard branch (ie not master) GitLab CE does not run a GitLab CI build.
Steps to reproduce
Ensure CI is working (pressing the test button for example) then opening a merge request.
Expected behavior
GitLab CE connects to GitLab CI and runs a build for merge requests.
Observed behavior
GitLab CE fails to contact GitLab CI and asks me to check my settings, I also see the below in the logs:
==> /var/log/gitlab/gitlab-ci/production.log <==
Started GET "/projects/3/refs/drone/commits/b1a4ccae1cd77249316e7a0ee2db50779c5cfce8/status.json?token=<redacted>" for 127.0.0.1 at 2015-06-16 21:32:15 +1000
Processing by CommitsController#status as JSON
Parameters: {"token"=>"<redacted>", "project_id"=>"3", "ref_id"=>"drone", "id"=>"b1a4ccae1cd77249316e7a0ee2db50779c5cfce8"}
Completed 404 Not Found in 4ms
ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound):
app/controllers/commits_controller.rb:23:in `commit'
==> /var/log/gitlab/nginx/gitlab_ci_access.log <==
192.168.10.33 - - [16/Jun/2015:21:32:15 +1000] "GET /projects/3/refs/drone/commits/b1a4ccae1cd77249316e7a0ee2db50779c5cfce8/status.json?token=<redacted> HTTP/1.1" 404 36 "-" "Ruby"
Output of checks
All clear.
Current Setup
System information
System: Ubuntu 14.04
Current User: git
Using RVM: no
Ruby Version: 2.1.6p336
Gem Version: 2.2.1
Bundler Version:1.5.3
Rake Version: 10.4.2
Sidekiq Version:3.3.0
GitLab information
Version: 7.11.4
Revision: b725318
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://git.<redacted>.com
HTTP Clone URL: https://git.<redacted>.com/some-project.git
SSH Clone URL: git@git.<redacted>.com:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 2.6.3
Repositories: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git