Skip to content

Google::Protobuf::TypeError: Invalid argument for string field 'oid' (given NilClass)

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

It's probably similar to another problem with a batch-loader (see comment).

Google::Protobuf::TypeError: Invalid argument for string field 'oid' (given NilClass).
  from lib/gitlab/gitaly_client/commit_service.rb:368:in `initialize'
  from lib/gitlab/gitaly_client/commit_service.rb:368:in `new'
  from lib/gitlab/gitaly_client/commit_service.rb:368:in `list_commits_by_oid'
  from lib/gitlab/git/commit.rb:195:in `block in batch_by_oid'
  from lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'
  from lib/gitlab/git/commit.rb:194:in `batch_by_oid'
  from app/models/repository.rb:140:in `commits_by'
  from app/models/commit.rb:131:in `block (2 levels) in lazy'
  from app/models/commit.rb:128:in `each'
  from app/models/commit.rb:128:in `block in lazy'
  from batch-loader (2.0.5) lib/batch_loader.rb:92:in `__ensure_batched'
  from batch-loader (2.0.5) lib/batch_loader.rb:53:in `__sync'
  from batch-loader (2.0.5) lib/batch_loader.rb:77:in `__sync!'
  from batch-loader (2.0.5) lib/batch_loader.rb:73:in `method_missing'
  from app/services/ci/expire_pipeline_cache_service.rb:87:in `update_etag_cache'
  from app/services/ci/expire_pipeline_cache_service.rb:13:in `execute'
  from app/services/ci/destroy_pipeline_service.rb:8:in `execute'
  from ee/app/services/ee/ci/destroy_pipeline_service.rb:10:in `execute'
  from app/services/projects/destroy_service.rb:252:in `block in destroy_ci_records!'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:71:in `each'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:71:in `block in find_each'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:138:in `block in find_in_batches'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:245:in `block in in_batches'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:229:in `loop'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:229:in `in_batches'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:137:in `find_in_batches'
  from activerecord (7.0.8.4) lib/active_record/relation/batches.rb:70:in `find_each'
  from app/services/projects/destroy_service.rb:246:in `destroy_ci_records!'
  from app/services/projects/destroy_service.rb:161:in `destroy_project_related_records'
  from ee/app/services/ee/projects/destroy_service.rb:41:in `block in destroy_project_related_records'
  from ee/app/services/ee/projects/destroy_service.rb:49:in `with_scheduling_epic_cache_update'
  from ee/app/services/ee/projects/destroy_service.rb:40:in `destroy_project_related_records'
  from app/services/projects/destroy_service.rb:151:in `attempt_destroy'
  from app/services/projects/destroy_service.rb:39:in `execute'
  from ee/app/services/ee/projects/destroy_service.rb:10:in `execute'
  from app/workers/project_destroy_worker.rb:22:in `perform'
Edited by 🤖 GitLab Bot 🤖