Undefined method `route_setting' in lib/api/api_guard.rb
Since https://gitlab.com/gitlab-org/gitlab-ee/commit/e21352487fe50a2ea6ea049e7b2955218938c5f1 has been in 9.5.0, I'm inclined to think this is some issue with unicorn being stale, but I'm not sure.
https://sentry.gitlap.com/gitlab/gitlabcom/issues/44901/
NoMethodError: undefined method `empty?' for nil:NilClass
lib/gitlab/checks/change_access.rb:188:in `branch_name_allowed_by_push_rule?'
return true if @branch_name.empty?
lib/gitlab/metrics/instrumentation.rb:156:in `block in branch_name_allowed_by_push_rule?'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/metrics/method_call.rb:23:in `measure'
retval = yield
lib/gitlab/metrics/instrumentation.rb:156:in `branch_name_allowed_by_push_rule?'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/checks/change_access.rb:164:in `push_rule_check'
unless branch_name_allowed_by_push_rule?(push_rule)
...
(138 additional frame(s) were not displayed)
NoMethodError: undefined method `route_setting' for #<#<Class:0x007ff934ae1b38>:0x007ff91bf657e0>
lib/api/api_guard.rb:109:in `route_authentication_setting'
route_setting(:authentication) || {}
lib/api/api_guard.rb:96:in `find_user_by_job_token'
if route_authentication_setting[:job_token_allowed]
lib/api/helpers.rb:389:in `block in initial_current_user'
@initial_current_user ||= find_user_by_job_token
lib/gitlab/auth/unique_ips_limiter.rb:17:in `limit_user!'
user ||= yield if block_given?
lib/api/helpers.rb:385:in `initial_current_user'
Gitlab::Auth::UniqueIpsLimiter.limit_user! do
...
(109 additional frame(s) were not displayed)
NoMethodError: undefined method `route_setting' for #<#<Class:0x007ff934ae1b38>:0x007ff91bf657e0>