RepositoryUpdateMirrorWorker::UpdateError: NameError: uninitialized constant Gitlab::Git::HooksService::PreReceiveError
https://sentry.gitlap.com/gitlab/gitlabcom/issues/251874/
NoMethodError: undefined method `commit_id' for nil:NilClass
gitlab/git/operation_service.rb:12:in `from_gitaly'
branch_update.commit_id,
gitlab/gitaly_client/operation_service.rb:137:in `user_ff_branch'
Gitlab::Git::OperationService::BranchUpdate.from_gitaly(branch_update)
gitlab/git/repository.rb:681:in `block in ff_merge'
gitaly_operation_client.user_ff_branch(user, source_sha, target_branch)
gitlab/git/repository.rb:1176:in `wrapped_gitaly_errors'
yield block
gitlab/git/repository.rb:680:in `ff_merge'
wrapped_gitaly_errors do
...
(52 additional frame(s) were not displayed)
NameError: uninitialized constant Gitlab::Git::HooksService::PreReceiveError
projects/update_mirror_service.rb:52:in `rescue in block in update_branches'
rescue Gitlab::Git::HooksService::PreReceiveError, Gitlab::Git::CommitError => e
projects/update_mirror_service.rb:50:in `block in update_branches'
begin
projects/update_mirror_service.rb:33:in `each'
repository.upstream_branches.each do |upstream_branch|
projects/update_mirror_service.rb:33:in `update_branches'
repository.upstream_branches.each do |upstream_branch|
projects/update_mirror_service.rb:19:in `execute'
update_branches
...
(39 additional frame(s) were not displayed)
RepositoryUpdateMirrorWorker::UpdateError: NameError: uninitialized constant Gitlab::Git::HooksService::PreReceiveError
repository_update_mirror_worker.rb:34:in `rescue in perform'
raise UpdateError, "#{ex.class}: #{ex.message}"
repository_update_mirror_worker.rb:39:in `perform'
end
sidekiq/processor.rb:187:in `execute_job'
worker.perform(*cloned_args)
sidekiq/processor.rb:169:in `block (2 levels) in process'
execute_job(worker, cloned(job_hash['args']))
sidekiq/middleware/chain.rb:128:in `block in invoke'
yield
...
(35 additional frame(s) were not displayed)
NameError: uninitialized constant Gitlab::Git::HooksService::PreReceiveError