Cannot configure mail settings for CI Service
I attempt to setup email notifications for failing CI builds. I have an Omnibus 8.1 setup, but behind Apache instead of nginx.
On clicking 'Test Settings':
Started GET "/youless/youless-monitor/ci_services/mail/test" for x.x.x.x at 2015-10-23 09:29:45 +0200
Processing by Projects::CiServicesController#test as HTML
Parameters: {"namespace_id"=>"youless", "project_id"=>"youless-monitor", "id"=>"mail"}
Completed 500 Internal Server Error in 55ms (ActiveRecord: 6.9ms)
NoMethodError (undefined method `builds' for #<Project:0x00000005d836c8>):
app/controllers/projects/ci_services_controller.rb:25:in `test'
Started GET "/youless/youless-monitor/ci_services/mail/test" for x.x.x.x at 2015-10-23 09:29:45 +0200
Processing by Projects::CiServicesController#test as HTML
Parameters: {"namespace_id"=>"youless", "project_id"=>"youless-monitor", "id"=>"mail"}
Completed 500 Internal Server Error in 47ms (ActiveRecord: 6.5ms)
NoMethodError (undefined method `builds' for #<Project:0x0000000c899c28>):
app/controllers/projects/ci_services_controller.rb:25:in `test'
On saving a configuration:
Processing by Projects::CiServicesController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "service"=>{"active"=>"1", "email_recipients"=>"dev@example.com", "email_add_pusher"=>"1", "email_only_broken_builds"=>"1"}, "namespace_id"=>"youless", "project_id"=>"youless-monitor", "id"=>"mail"}
Completed 500 Internal Server Error in 53ms (ActiveRecord: 9.9ms)
NoMethodError (undefined method `update_attributes' for nil:NilClass):
app/controllers/projects/ci_services_controller.rb:17:in `update'
Even if I misconfigured GitLab, I presume this should not happen.