[go: up one dir, main page]

Gitlab::Git::CommandError: listing commits failed

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/709749

Problem

An attempt to access a commit fails with listing commits failed error.

Link to test: https://gitlab.com/tru-id/tru-sdk-ios/-/commits/1247c2140ca7468d0399687140be37e81fa81c02

I'm not sure what happened to this commit, but I cannot find it in the list of project commits.

When I try to fetch it via Git CLI:

> git fetch upstream  1247c2140ca7468d0399687140be37e81fa81c02
error: Could not read 10b41ce6dec5c52f82545c9f3fae30270dd32dad
remote: error: Could not read 10b41ce6dec5c52f82545c9f3fae30270dd32dad
remote: fatal: Failed to traverse parents of commit 4437860e127d787417794d2c442c829a2abf64ed
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: error executing git hook
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
GRPC::Internal: 13:listing commits failed.
  from grpc-1.62.0-x86_64 (linux) src/ruby/lib/grpc/generic/active_call.rb:29:in `check_status'
  from grpc-1.62.0-x86_64 (linux) src/ruby/lib/grpc/generic/active_call.rb:186:in `attach_status_results_and_complete_call'
  from grpc-1.62.0-x86_64 (linux) src/ruby/lib/grpc/generic/active_call.rb:175:in `receive_and_check_status'
  from config/initializers/grpc_patch.rb:21:in `receive_and_check_status'
  from grpc-1.62.0-x86_64 (linux) src/ruby/lib/grpc/generic/active_call.rb:338:in `each_remote_read_then_finish'
  from config/initializers/enumerator_next_patch.rb:11:in `block (2 levels) in <module:EnumeratorNextPatch>'
  from lib/gitlab/gitaly_client/call.rb:45:in `block (3 levels) in instrument_stream'
  from lib/gitlab/gitaly_client/call.rb:60:in `recording_request'
  from lib/gitlab/gitaly_client/call.rb:45:in `block (2 levels) in instrument_stream'
  from lib/gitlab/gitaly_client/call.rb:44:in `loop'
  from lib/gitlab/gitaly_client/call.rb:44:in `block in instrument_stream'
  from lib/gitlab/gitaly_client/commit_service.rb:628:in `each'
  from lib/gitlab/gitaly_client/commit_service.rb:628:in `each'
  from lib/gitlab/gitaly_client/commit_service.rb:628:in `flat_map'
  from lib/gitlab/gitaly_client/commit_service.rb:628:in `consume_commits_response'
  from lib/gitlab/gitaly_client/commit_service.rb:471:in `find_commits'
  from lib/gitlab/git/repository.rb:387:in `block in log'
  from lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'
  from lib/gitlab/git/repository.rb:386:in `log'
  from lib/gitlab/git/commit.rb:60:in `where'
  from app/models/repository.rb:169:in `commits'
  from app/controllers/projects/commits_controller.rb:105:in `set_commits'
Edited by 🤖 GitLab Bot 🤖