Rack::Timeout::RequestTimeoutException: /api/v4/internal/allowed
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/173/events/5876b1821fab4eaf869474647a1fb24c/?project=3
Kibana link: https://log.gprd.gitlab.net/app/r/s/lLaOS
Problem
I see requests to /api/v4/internal/allowed
that fail because of the timeout. Their backtrace includes a feature flag skip_committer_email_check
status validation defined signed_by_gitlab?
.
json.cpu_s
is pretty high for these requests: 38.153
We need to investigate why it is so slow.
Rack::Timeout::RequestTimeoutException: Request ran for longer than 60000ms
from <internal:kernel>:21:in `class'
from activerecord (7.0.8.1) lib/active_record/attribute_methods.rb:215:in `respond_to?'
from flipper (0.26.2) lib/flipper/types/actor.rb:14:in `initialize'
from flipper (0.26.2) lib/flipper/type.rb:6:in `new'
from flipper (0.26.2) lib/flipper/type.rb:6:in `wrap'
from flipper (0.26.2) lib/flipper/feature.rb:103:in `enabled?'
from lib/feature.rb:323:in `block in current_feature_value'
from lib/feature.rb:338:in `with_feature'
from lib/feature.rb:319:in `current_feature_value'
from lib/feature.rb:130:in `enabled?'
from lib/gitlab/checks/base_single_checker.rb:35:in `signed_by_gitlab?'
from lib/gitlab/checks/commits_check.rb:22:in `check_signed_commit_authorship!'
from lib/gitlab/checks/commits_check.rb:14:in `block (2 levels) in validate!'
from lib/gitlab/lazy.rb:21:in `each'
from lib/gitlab/lazy.rb:21:in `method_missing'
from lib/gitlab/checks/commits_check.rb:13:in `block in validate!'
from lib/gitlab/checks/timed_logger.rb:27:in `log_timed'
from lib/gitlab/checks/commits_check.rb:12:in `validate!'
from lib/gitlab/checks/single_change_access.rb:61:in `commits_check'
from lib/gitlab/checks/single_change_access.rb:34:in `validate!'
from lib/gitlab/checks/changes_access.rb:115:in `block in single_access_checks!'
from lib/gitlab/checks/changes_access.rb:114:in `each'
from lib/gitlab/checks/changes_access.rb:114:in `single_access_checks!'
from lib/gitlab/checks/changes_access.rb:26:in `validate!'
from lib/gitlab/git_access.rb:362:in `check_access!'
from lib/gitlab/git_access.rb:350:in `check_change_access!'
from ee/lib/ee/gitlab/git_access.rb:99:in `check_change_access!'
from lib/gitlab/git_access.rb:333:in `check_push_access!'
from lib/gitlab/git_access.rb:93:in `check'
from ee/lib/ee/gitlab/git_access.rb:20:in `check'
Edited by 🤖 GitLab Bot 🤖