Gitlab::Git::CommandError (13:HasLocalBranches: cmd wait: exit status 128)
When attempting to access or delete a repo corrupted during an outage, GitLab returns 503: ``` Gitlab::Git::CommandError (13:HasLocalBranches: cmd wait: exit status 128): lib/gitlab/git/repository.rb:868:in `rescue in wrapped_gitaly_errors' lib/gitlab/git/repository.rb:861:in `wrapped_gitaly_errors' lib/gitlab/git/repository.rb:949:in `uncached_has_local_branches?' lib/gitlab/git/repository.rb:149:in `block in has_local_branches?' lib/gitlab/utils/strong_memoize.rb:26:in `strong_memoize' lib/gitlab/git/repository.rb:148:in `has_local_branches?' app/models/repository.rb:552:in `has_visible_content?' lib/gitlab/metrics/instrumentation.rb:159:in `block in _uncached_has_visible_ ``` ``` 2018-10-29_10:58:11.23084 time="2018-10-29T10:58:11Z" level=info msg="fatal: loose object 2b1e6cfc430594a106788bf63293c5ac1871416e (stored in /var/opt/gitlab/git-data/repositories/group/project.git/objects/2b/1e6cfc430594a106788bf63293c5ac1871416e) is corrupt" grpc.meta.auth_version=v1 grpc.meta.client_name=gitlab-sidekiq grpc.method=ListCommitsByOid grpc.request.glRepository=project-207 grpc.request.repoPath=group/project.git grpc.request.repoStorage=default grpc.request.topLevelGroup=group grpc.service=gitaly.CommitService peer.address=@ span.kind=server system=grpc ``` Reported on 11.4.3-ee in https://gitlab.zendesk.com/agent/tickets/107079 (for internal use)
issue