API errors masked by undefined local variable or method `request' for #<#<Class:0x00007f45f449e760>:0x00007f45fed761a8>
https://sentry.gitlap.com/gitlab/gitlabcom/issues/46166/
Rugged::OSError: failed to resolve path '/var/opt/gitlab/git-data-file07/repositories/namespace/project.git': Input/output error
lib/gitlab/metrics/instrumentation.rb:156:in `new'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/metrics/instrumentation.rb:156:in `block in new'
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 `new'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/git/repository.rb:94:in `block in rugged'
Rugged::Repository.new(path, alternates: alternate_object_directories)
...
(130 additional frame(s) were not displayed)
Gitlab::Git::Repository::NoRepository: no repository for such path
lib/gitlab/git/repository.rb:97:in `rescue in rugged'
raise NoRepository.new('no repository for such path')
lib/gitlab/git/repository.rb:95:in `rugged'
end
lib/gitlab/git/repository.rb:1118:in `tags_from_rugged'
rugged.references.each("refs/tags/*").map do |ref|
lib/gitlab/git/repository.rb:213:in `block in tags'
tags_from_rugged
lib/gitlab/gitaly_client.rb:115:in `block in migrate'
yield is_enabled
...
(125 additional frame(s) were not displayed)
NameError: undefined local variable or method `request' for #<#<Class:0x00007f45f449e760>:0x00007f45fed761a8>
Did you mean? require
lib/api/api_guard.rb:122:in `find_user_by_personal_access_token'
if AccessTokenValidationService.new(access_token, request: request).include_any_scope?(scopes)
lib/api/api_guard.rb:89:in `find_user_by_private_token'
find_user_by_authentication_token(token_string) || find_user_by_personal_access_token(token_string, scopes)
lib/api/helpers.rb:426:in `block in initial_current_user'
@initial_current_user ||= find_user_by_private_token(scopes: scopes_registered_for_endpoint)
lib/gitlab/auth/unique_ips_limiter.rb:17:in `limit_user!'
user ||= yield if block_given?
lib/api/helpers.rb:425:in `initial_current_user'
Gitlab::Auth::UniqueIpsLimiter.limit_user! do
...
(110 additional frame(s) were not displayed)
NameError: undefined local variable or method `request' for #<#<Class:0x00007f45f449e760>:0x00007f45fed761a8>
Did you mean? require
Edited by Stan Hu