git push 500 Internal Server Error

gitaly Error

{"command.count":1,"command.inblock":0,"command.majflt":0,"command.maxrss":46852,"command.minflt":142,"command.oublock":0,"command.real_time_ms":33,"command.system_time_ms":2,"command.user_time_ms":0,"correlation_id":"01FB98M3DJDGQWG7KBA79Y2NW2","grpc.code":"OK","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"HasLocalBranches","grpc.request.deadline":"2021-07-23T08:45:09.990Z","grpc.request.fullMethod":"/gitaly.RepositoryService/HasLocalBranches","grpc.request.glProjectPath":"jicki/gin","grpc.request.glRepository":"project-2","grpc.request.repoPath":"@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git","grpc.request.repoStorage":"default","grpc.service":"gitaly.RepositoryService","grpc.start_time":"2021-07-23T08:45:00.770Z","grpc.time_ms":42.452,"level":"info","msg":"finished unary call with code OK","peer.address":"10.244.23.26:47312","pid":9,"remote_ip":"10.244.23.145","span.kind":"server","system":"grpc","time":"2021-07-23T08:45:00.813Z","username":"jicki"}
{"correlation_id":"01FB98M3DJDGQWG7KBA79Y2NW2","error":"rpc error: code = NotFound desc = not found: .gitattributes","grpc.code":"NotFound","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"TreeEntry","grpc.request.deadline":"2021-07-23T08:45:30.035Z","grpc.request.fullMethod":"/gitaly.CommitService/TreeEntry","grpc.request.glProjectPath":"jicki/gin","grpc.request.glRepository":"project-2","grpc.request.repoPath":"@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git","grpc.request.repoStorage":"default","grpc.service":"gitaly.CommitService","grpc.start_time":"2021-07-23T08:45:00.835Z","grpc.time_ms":18.232,"level":"info","msg":"finished streaming call with code NotFound","peer.address":"10.244.23.26:47312","pid":9,"remote_ip":"10.244.23.145","span.kind":"server","system":"grpc","time":"2021-07-23T08:45:00.853Z","username":"jicki"}

webservice Error


*** /var/log/gitlab/production.log ***
Started POST "/api/v4/projects/jicki%2Fgin/repository/commits" for 10.244.23.145 at 2021-07-23 09:06:57 +0000
Processing by Gitlab::RequestForgeryProtection::Controller#index as HTML
Completed 200 OK in 3ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 241)
Processing by Gitlab::RequestForgeryProtection::Controller#index as HTML
Completed 200 OK in 0ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 107)

GRPC::NotFound (5:not found: .gitattributes. debug_error_string:{"created":"@1627031217.322504522","description":"Error received from peer ipv4:10.244.20.6:8075","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"not found: .gitattributes","grpc_status":5}):
  /srv/gitlab/vendor/bundle/ruby/2.7.0/gems/grpc-1.30.2-x86_64-linux/src/ruby/lib/grpc/generic/active_call.rb:29:in `check_status'
  /srv/gitlab/vendor/bundle/ruby/2.7.0/gems/grpc-1.30.2-x86_64-linux/src/ruby/lib/grpc/generic/active_call.rb:180:in `attach_status_results_and_complete_call'
  /srv/gitlab/vendor/bundle/ruby/2.7.0/gems/grpc-1.30.2-x86_64-linux/src/ruby/lib/grpc/generic/active_call.rb:169:in `receive_and_check_status'
  /srv/gitlab/vendor/bundle/ruby/2.7.0/gems/grpc-1.30.2-x86_64-linux/src/ruby/lib/grpc/generic/active_call.rb:337:in `each_remote_read_then_finish'
  puma: cluster worker 0: 11 [gitlab-puma-worker]:in `each'



*** /var/log/gitlab/api_json.log ***
{"time":"2021-07-23T09:14:17.032Z","severity":"INFO","duration_s":0.12113,"db_duration_s":0.00637,"view_duration_s":0.11476,"status":500,"method":"POST","path":"/api/v4/projects/jicki%2Fgin/repository/commits","params":[{"key":"branch","value":"master"},{"key":"commit_message","value":"更新README.md"},{"key":"actions","value":[{"action":"create","file_path":"README.md","content":"[FILTERED]","encoding":"text","last_commit_id":""}]}],"host":"prod-code.deee.ai","remote_ip":"10.24.32.183, 10.244.20.163, 10.244.22.183","ua":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36","route":"/api/:version/projects/:id/repository/commits","user_id":2,"username":"jicki","exception.class":"GRPC::NotFound","exception.message":"5:not found: .gitattributes. debug_error_string:{\"created\":\"@1627031657.025055477\",\"description\":\"Error received from peer ipv4:10.244.20.6:8075\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":1055,\"grpc_message\":\"not found: .gitattributes\",\"grpc_status\":5}","exception.backtrace":[],"queue_duration_s":0.032848,"gitaly_calls":2,"gitaly_duration_s":0.046979,"redis_calls":5,"redis_duration_s":0.004586,"redis_read_bytes":691,"redis_write_bytes":916,"redis_cache_calls":4,"redis_cache_duration_s":0.003134,"redis_cache_read_bytes":515,"redis_cache_write_bytes":213,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.001452,"redis_shared_state_read_bytes":176,"redis_shared_state_write_bytes":703,"db_count":8,"db_write_count":0,"db_cached_count":1,"cpu_s":0.093903,"mem_objects":18142,"mem_bytes":1705423,"mem_mallocs":4256,"correlation_id":"01FB9A9PDCAXZH0KGRJ4GZ7NWH","meta.user":"jicki","meta.project":"jicki/gin","meta.root_namespace":"jicki","meta.caller_id":"/api/:version/projects/:id/repository/commits","meta.remote_ip":"10.244.22.183","meta.feature_category":"source_code_management","meta.client_id":"user/2","content_length":"181"}

*** /var/log/gitlab/exceptions_json.log ***
{"severity":"ERROR","time":"2021-07-23T09:14:17.030Z","correlation_id":"01FB9A9PDCAXZH0KGRJ4GZ7NWH","exception.class":"GRPC::NotFound","exception.message":"5:not found: .gitattributes. debug_error_string:{\"created\":\"@1627031657.025055477\",\"description\":\"Error received from peer ipv4:10.244.20.6:8075\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":1055,\"grpc_message\":\"not found: .gitattributes\",\"grpc_status\":5}","exception.backtrace":[],"user.username":"jicki","tags.program":"web","tags.locale":"zh_CN","tags.feature_category":"source_code_management","tags.correlation_id":"01FB9A9PDCAXZH0KGRJ4GZ7NWH"}
Edited by 小炒肉