Skip to content

Checkout failure: "Git fetch failed with exit code 128" #9009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
carlossanlop opened this issue Apr 8, 2022 · 14 comments
Open
2 tasks

Checkout failure: "Git fetch failed with exit code 128" #9009

carlossanlop opened this issue Apr 8, 2022 · 14 comments
Labels
Known Build Error Ops - Facilely Operations issues that are easily accomplished or attained

Comments

@carlossanlop
Copy link
Contributor

carlossanlop commented Apr 8, 2022

Build

https://dev.azure.com/dnceng/public/_build/results?buildId=1706886&view=results

Build leg reported

Libraries Test Run release coreclr Linux_musl x64 Release

Pull Request

Rolling build for runtime

Action required for the engineering services team

To triage this issue (First Responder / @dotnet/dnceng):

  • Open the failing build above and investigate
  • Add a comment explaining your findings

If this is an issue that is causing build breaks across multiple builds and would get benefit from being listed on the build analysis check, follow the next steps:

  1. Add the label "Known Build Error"
  2. Edit this issue and add an error string in the Json below that can help us match this issue with future build breaks. You should use the known issues documentation
{
   "ErrorMessage" : "Git fetch failed with exit code: 128",
   "BuildRetry": true
}

Additional information about the issue reported

The Checkout dotnet/runtime@main to s step is the one that failed. Here is the end of the log output:

remote: Compressing objects:  29% (30070/103687)        
remote: Compressing objects:  30% (31107/103687)        
remote: Compressing objects:  31% (32143/103687)        
remote: Compressing objects:  31% (32322/103687)        
remote: Compressing objects:  32% (33180/103687)        
remote: Compressing objects:  33% (34217/103687)        
remote: Compressing objects:  33% (35247/103687)        
remote: Compressing objects:  34% (35254/103687)        
remote: Compressing objects:  35% (36291/103687)        
remote: Compressing objects:  36% (37328/103687)        
remote: Compressing objects:  37% (38365/103687)        
remote: Compressing objects:  37% (38926/103687)        
remote: Compressing objects:  38% (39402/103687)        
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: protocol error: bad pack header
##[error]Git fetch failed with exit code: 128
Finishing: Checkout dotnet/runtime@main to s

Report

Build Definition Step Name Console log Pull Request
1049515 dotnet/runtime Checkout dotnet/runtime@refs/pull/115935/merge to s Log dotnet/runtime#115935
1047975 dotnet/machinelearning Checkout dotnet/machinelearning@refs/pull/7463/merge to s Log dotnet/machinelearning#7463
1047974 dotnet/machinelearning Checkout dotnet/machinelearning@refs/pull/7463/merge to s Log dotnet/machinelearning#7463
1047579 dotnet/runtime Checkout dotnet/runtime@refs/pull/115545/merge to s Log dotnet/runtime#115545
1047055 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/62040/merge to s Log dotnet/aspnetcore#62040
1047056 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/62040/merge to s Log dotnet/aspnetcore#62040
1046940 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/62032/merge to s Log dotnet/aspnetcore#62032
1046941 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/62032/merge to s Log dotnet/aspnetcore#62032
1046627 dotnet/runtime Checkout dotnet/runtime@refs/pull/115791/merge to s Log dotnet/runtime#115791
1045738 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/62000/merge to s Log dotnet/aspnetcore#62000
1045739 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/62000/merge to s Log dotnet/aspnetcore#62000
1045352 dotnet/runtime Checkout dotnet/runtime@refs/pull/115730/merge to s Log dotnet/runtime#115730
1045351 dotnet/runtime Checkout dotnet/runtime@refs/pull/115730/merge to s Log dotnet/runtime#115730
1044174 dotnet/runtime Checkout dotnet/runtime@refs/pull/115545/merge to s Log dotnet/runtime#115545
1044014 dotnet/sdk Checkout dotnet/sdk@refs/pull/49024/merge to s Log dotnet/sdk#49024
1044015 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#49024
1043401 dotnet/sdk Checkout dotnet/sdk@refs/pull/49006/merge to s Log dotnet/sdk#49006
1042896 dotnet/runtime Checkout dotnet/runtime@release/8.0 to s Log
1042015 dotnet/runtime Checkout dotnet/runtime@refs/pull/114867/merge to s Log dotnet/runtime#114867
1041617 dotnet/sdk Checkout dotnet/sdk@refs/pull/48959/merge to s Log dotnet/sdk#48959
1041565 dotnet/sdk Checkout dotnet/sdk@refs/pull/48954/merge to s Log dotnet/sdk#48954
1041566 dotnet/sdk Checkout dotnet/sdk@refs/pull/48955/merge to s Log dotnet/sdk#48955
1040784 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61922/merge to s Log dotnet/aspnetcore#61922
1040024 dotnet/runtime Checkout dotnet/runtime@refs/pull/114881/merge to s Log dotnet/runtime#114881
1039879 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61889/merge to s Log dotnet/aspnetcore#61889
1039880 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61889/merge to s Log dotnet/aspnetcore#61889
1039878 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61889/merge to s Log dotnet/aspnetcore#61889
1039353 dotnet/sdk Checkout dotnet/sdk@refs/pull/48887/merge to s Log dotnet/sdk#48887
1038783 dotnet/runtime Checkout dotnet/runtime@refs/pull/113359/merge to s Log dotnet/runtime#113359
1038200 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/1002/merge to s Log maestro-auth-test/helix-queue-insights-test#1002
1038181 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/1001/merge to s Log maestro-auth-test/helix-queue-insights-test#1001
1038123 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/1000/merge to s Log maestro-auth-test/helix-queue-insights-test#1000
1037623 dotnet/sdk Checkout dotnet/sdk@refs/pull/48883/merge to s Log dotnet/sdk#48883
1037167 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48876
1037092 dotnet/sdk Checkout dotnet/sdk@refs/pull/48875/merge to s Log dotnet/sdk#48875
1037091 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48875
1037093 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48875
1036923 dotnet/runtime Checkout dotnet/runtime@refs/pull/115388/merge to s Log dotnet/runtime#115388
1036939 dotnet/runtime Checkout dotnet/runtime@refs/pull/114867/merge to s Log dotnet/runtime#114867
1036947 dotnet/runtime Checkout dotnet/runtime@refs/pull/115402/merge to s Log dotnet/runtime#115402
1036955 dotnet/runtime Checkout dotnet/runtime@refs/pull/115395/merge to s Log dotnet/runtime#115395
1036814 dotnet/runtime Checkout dotnet/runtime@refs/pull/115354/merge to s Log dotnet/runtime#115354
1036420 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61833/merge to s Log dotnet/aspnetcore#61833
1036421 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61833/merge to s Log dotnet/aspnetcore#61833
1035187 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/998/merge to s Log maestro-auth-test/helix-queue-insights-test#998
1035114 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/997/merge to s Log maestro-auth-test/helix-queue-insights-test#997
1034681 dotnet/arcade-services Checkout dotnet/arcade-services@refs/pull/4802/merge to s Log dotnet/arcade-services#4802
1033972 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/994/merge to s Log maestro-auth-test/helix-queue-insights-test#994
1033840 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61798/merge to s Log dotnet/aspnetcore#61798
1033842 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61798/merge to s Log dotnet/aspnetcore#61798
1032679 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/993/merge to s Log maestro-auth-test/helix-queue-insights-test#993
1032281 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61774/merge to s Log dotnet/aspnetcore#61774
1032282 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61774/merge to s Log dotnet/aspnetcore#61774
1031876 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/991/merge to s Log maestro-auth-test/helix-queue-insights-test#991
1031829 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/990/merge to s Log maestro-auth-test/helix-queue-insights-test#990
2698702 dotnet-sdk Checkout dotnet-sdk@refs/pull/49634/merge to s Log #49634
1030253 dotnet/runtime Checkout dotnet/runtime@refs/pull/115170/merge to s Log dotnet/runtime#115170
2698703 dotnet-sdk Checkout dotnet-sdk@refs/pull/49633/merge to s Log #49633
1029880 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61736/merge to s Log dotnet/aspnetcore#61736
1029878 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61736/merge to s Log dotnet/aspnetcore#61736
1029650 dotnet/runtime Checkout dotnet/runtime@refs/pull/114619/merge to s Log dotnet/runtime#114619
2698073 dotnet-sdk Checkout dotnet-sdk@refs/pull/49589/merge to s Log #49589
1028865 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48757
1028866 dotnet/sdk Checkout dotnet/sdk@refs/pull/48757/merge to s Log dotnet/sdk#48757
1028867 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48757
1028691 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61725/merge to s Log dotnet/aspnetcore#61725
1028368 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/984/merge to s Log maestro-auth-test/helix-queue-insights-test#984
1027314 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61707/merge to s Log dotnet/aspnetcore#61707
1027316 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61707/merge to s Log dotnet/aspnetcore#61707
1026939 dotnet/sdk Checkout dotnet/sdk@refs/pull/48724/merge to s Log dotnet/sdk#48724
1026938 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48724
1026880 dotnet/runtime Checkout dotnet/runtime@refs/pull/115059/merge to s Log dotnet/runtime#115059
1026788 dotnet/sdk Checkout dotnet/sdk@refs/pull/48721/merge to s Log dotnet/sdk#48721
1026789 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48721
1026787 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48721
1026580 dotnet/sdk Checkout dotnet/sdk@refs/pull/48700/merge to s Log dotnet/sdk#48700
1026024 dotnet/runtime Checkout dotnet/runtime@refs/pull/115020/merge to s Log dotnet/runtime#115020
1026059 dotnet/sdk Checkout dotnet/sdk@refs/pull/48706/merge to s Log dotnet/sdk#48706
2695045 dotnet-aspnetcore Checkout dotnet-aspnetcore@refs/pull/49477/merge to s Log #49477
1026058 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48706
2695027 dotnet-aspnetcore Checkout dotnet-aspnetcore@refs/pull/49475/merge to s Log #49475
1026060 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48706
1025483 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48694
1025485 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48694
1025385 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48691
1025472 dotnet/sdk Checkout dotnet/sdk@refs/pull/48693/merge to s Log dotnet/sdk#48693
1025256 dotnet/runtime Checkout dotnet/runtime@refs/pull/114989/merge to s Log dotnet/runtime#114989
1025176 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61655/merge to s Log dotnet/aspnetcore#61655
1025174 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61655/merge to s Log dotnet/aspnetcore#61655

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 16 89

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=323960
Error message validated: Git fetch failed with exit code: 128
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/28/2023 9:15:14 PM UTC

@ChadNedzlek
Copy link
Contributor

So this is... interesting. I agree this seems like essentially a random network failure that is not the fault of the code. Also... it doesn't seem like there is anything to be done other than retry the build.

@ulisesh and @AlitzelMendez. This seems like another instance of a "known issue" that would really benefit from the ability to get retried automatically. I think Carlos did the right thing by opening the known issue, but his PR (and any future PR that hits this) is still going to be blocked, since the build doesn't run at all in this case, because the checkout failed. And it would be great to help folks that hit this.

@ulisesh
Copy link
Contributor

ulisesh commented Apr 13, 2022

I created the issue to track how often it was happening and measure the impact of the problem. It might be hard to get traction on networking problems but having the number of impacted builds has great value in my opinion.

In the last 24 hours, we had 37 builds failed with the same error. cc @markwilkie who might find this data interesting.

I think automatic retries for known issues will be the next feature after we are done with analyzing builds retroactively, we can discuss this if people think we should change priorities.

@markwilkie
Copy link
Member

So 37 builds were caught with the known issues feature @ulisesh ? Could I get the query please? (super exciting)

@ulisesh
Copy link
Contributor

ulisesh commented Apr 13, 2022

I saw 37 hits in the office but now I only see 33 🤔. There are 33 failed jobs in 2 different builds. Sorry if I misused the terms but I still think it is great that we can track these build breaks 😄

This is the query:

KnownIssues
| where IssueId == 9009 and IssueRepository == "dotnet/arcade"

@ilyas1974 ilyas1974 self-assigned this Apr 19, 2022
@ilyas1974 ilyas1974 removed their assignment Jun 22, 2022
@ilyas1974 ilyas1974 removed Ops - First Responder Detected By - Customer Issue was reported by a customer labels Jun 22, 2022
@danmoseley danmoseley changed the title Checkout dotnet/runtime step failure: "Git fetch failed with exit code 128" Checkout failure: "Git fetch failed with exit code 128" Oct 7, 2022
@ViktorHofer
Copy link
Member

ViktorHofer commented Jan 11, 2023

This happened 36 times in the last 24 hours. Should we add a retry (assuming that's possible)?

@premun
Copy link
Member

premun commented Jan 11, 2023

GitHub reported degraded git operations yesterday: https://www.githubstatus.com/incidents/00km0kwpz23b
We saw problems cloning all over. Maybe it's related to that?

@dougbu
Copy link
Contributor

dougbu commented Jan 8, 2024

This issue may have started in early 2022 but seems to remain w/ 29 matching failures in the last 24 hours. https://www.githubstatus.com/ and various Azure / Azure DevOps status pages aren't showing any current or recent degradations. Unclear what's going on this time beyond what appears to be DNS flakiness. I looked at the last 7 reports; all but one showed fatal: unable to access 'https://github.com/dotnet/runtime/': Could not resolve host: github.com and a few also showed fatal: unable to access 'https://github.com/dotnet/runtime/': Failed to connect to github.com port 443 after 75012 ms: Couldn't connect to server.

Without more information, I think the best we could do is auto retry when the problem occurs. @AlitzelMendez and @carlossanlop what are your thoughts on including "BuildRetry": true in the JSON content in this description❔

@carlossanlop
Copy link
Contributor Author

It's fine, we can try that, as long as we monitor it closely, because if we keep seeing the failure even with a retry, I think we should just go back to "BuildRetry": false, to avoid wasting resources.

@dougbu
Copy link
Contributor

dougbu commented Jan 8, 2024

you mean "BuildRetry": true was tried in the past and didn't help much @carlossanlop❔ if the extra time it takes PR creators to click the Rerun failed builds actually helps avoid issues in the retry, I'd lean toward leaving things as-is.

@carlossanlop
Copy link
Contributor Author

I do not know if it was tried in the past.

@AlitzelMendez
Copy link
Member

sounds like a good plan @dougbu, let's try "BuildRetry": true, I will put together a query to monitor if it is helpful for this issue

@dougbu
Copy link
Contributor

dougbu commented Jan 8, 2024

updated the description to try retries

@AlitzelMendez
Copy link
Member

query:

let buildIds =
KnownIssues
| where ingestion_time() > datetime(2024-01-08 23:10:44.8683418)
| where IssueId  == 9009
| distinct BuildId;
TimelineBuilds
| where BuildId  in (buildIds)
| summarize arg_max(FinishTime, *) by BuildId
| summarize count() by Result, bin(FinishTime, 1d)
| order by FinishTime asc 
| render columnchart with (xcolumn=FinishTime)

I will check this on Monday to see how it is going, posting here the query so I don't loose it :)

@AlitzelMendez
Copy link
Member

the success rate (having a green build) after the retry was between 30% to 50% per day, so this doesn't solve the issue, it just helps to mitigate it a little bit.

@AlitzelMendez AlitzelMendez removed their assignment Jan 16, 2024
@ilyas1974 ilyas1974 added the Ops - Facilely Operations issues that are easily accomplished or attained label Feb 21, 2024
@garath garath added the Ops - P2 Operations task, priority 2 label Mar 28, 2024
@ilyas1974 ilyas1974 removed the Ops - P2 Operations task, priority 2 label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Known Build Error Ops - Facilely Operations issues that are easily accomplished or attained
Projects
None yet
Development

No branches or pull requests

10 participants