Skip to content
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

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

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
Member

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
973239 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47393
972520 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/928/merge to s Log maestro-auth-test/helix-queue-insights-test#928
972258 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/927/merge to s Log maestro-auth-test/helix-queue-insights-test#927
972218 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/926/merge to s Log maestro-auth-test/helix-queue-insights-test#926
971917 dotnet/sdk Checkout dotnet/sdk@refs/pull/47358/merge to s Log dotnet/sdk#47358
971918 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47358
970879 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47318
970810 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47312
970743 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/924/merge to s Log maestro-auth-test/helix-queue-insights-test#924
970235 dotnet/runtime Checkout dotnet/runtime@refs/pull/113027/merge to s Log dotnet/runtime#113027
969669 dotnet/sdk Checkout dotnet/sdk@refs/pull/47289/merge to s Log dotnet/sdk#47289
969670 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47289
968979 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/917/merge to s Log maestro-auth-test/helix-queue-insights-test#917
968840 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/915/merge to s Log maestro-auth-test/helix-queue-insights-test#915
967783 dotnet/sdk Checkout dotnet/sdk@refs/pull/47229/merge to s Log dotnet/sdk#47229
967298 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/912/merge to s Log maestro-auth-test/helix-queue-insights-test#912
965842 dotnet/runtime Checkout dotnet/runtime@refs/pull/112794/merge to s Log dotnet/runtime#112794
965686 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47192
965687 dotnet/sdk Checkout dotnet/sdk@refs/pull/47192/merge to s Log dotnet/sdk#47192
965684 dotnet/sdk Checkout dotnet/sdk@refs/pull/47191/merge to s Log dotnet/sdk#47191
965685 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47191
965425 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47187
965414 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47171
965415 dotnet/sdk Checkout dotnet/sdk@refs/pull/47171/merge to s Log dotnet/sdk#47171
965416 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47171
965269 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/910/merge to s Log maestro-auth-test/helix-queue-insights-test#910
965182 dotnet/sdk Checkout dotnet/sdk@refs/pull/47175/merge to s Log dotnet/sdk#47175
965183 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47175
964988 dotnet/sdk Checkout dotnet/sdk@refs/pull/47112/merge to s Log dotnet/sdk#47112
965066 dotnet/sdk Checkout dotnet/sdk@refs/pull/47169/merge to s Log dotnet/sdk#47169
965067 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47169
964829 dotnet/sdk Checkout dotnet/sdk@refs/pull/47159/merge to s Log dotnet/sdk#47159
964920 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/909/merge to s Log maestro-auth-test/helix-queue-insights-test#909
964830 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47159
964769 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47161
964770 dotnet/sdk Checkout dotnet/sdk@refs/pull/47161/merge to s Log dotnet/sdk#47161
964771 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47161
964776 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/908/merge to s Log maestro-auth-test/helix-queue-insights-test#908
964597 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47155
964599 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47155
964684 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/907/merge to s Log maestro-auth-test/helix-queue-insights-test#907
964598 dotnet/sdk Checkout dotnet/sdk@refs/pull/47155/merge to s Log dotnet/sdk#47155
964073 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47144
964065 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47138
964269 dotnet/runtime Checkout dotnet/runtime@refs/pull/112972/merge to s Log dotnet/runtime#112972
963682 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47139
963819 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47136
963821 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47136
963544 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#46967
963820 dotnet/sdk Checkout dotnet/sdk@refs/pull/47136/merge to s Log dotnet/sdk#47136
963720 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/906/merge to s Log maestro-auth-test/helix-queue-insights-test#906
963553 dotnet/sdk Checkout dotnet/sdk@refs/pull/47127/merge to s Log dotnet/sdk#47127
962735 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47107
962830 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47024
962734 dotnet/sdk Checkout dotnet/sdk@refs/pull/47107/merge to s Log dotnet/sdk#47107
962834 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47024
962833 dotnet/sdk Checkout dotnet/sdk@refs/pull/47024/merge to s Log dotnet/sdk#47024
962116 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47078
960793 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47052
960795 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47052
960794 dotnet/sdk Checkout dotnet/sdk@refs/pull/47052/merge to s Log dotnet/sdk#47052
959014 dotnet/sdk Checkout dotnet/sdk@refs/pull/47017/merge to s Log dotnet/sdk#47017
959589 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/902/merge to s Log maestro-auth-test/helix-queue-insights-test#902
959004 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47019
959003 dotnet/sdk Checkout dotnet/sdk@refs/pull/47019/merge to s Log dotnet/sdk#47019
958860 dotnet/sdk Checkout dotnet/sdk@refs/pull/47011/merge to s Log dotnet/sdk#47011
958861 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47011
958734 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47009
958735 dotnet/sdk Checkout dotnet/sdk@refs/pull/47009/merge to s Log dotnet/sdk#47009
958736 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47009
958512 dotnet/machinelearning Checkout dotnet/machinelearning@refs/pull/7394/merge to s Log dotnet/machinelearning#7394
957414 dotnet/sdk Checkout dotnet/sdk@refs/pull/46968/merge to s Log dotnet/sdk#46968
958290 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/899/merge to s Log maestro-auth-test/helix-queue-insights-test#899
957553 dotnet/sdk Checkout dotnet/sdk@refs/pull/46978/merge to s Log dotnet/sdk#46978
958239 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/898/merge to s Log maestro-auth-test/helix-queue-insights-test#898
958070 dotnet/runtime Checkout dotnet/runtime@refs/pull/112505/merge to s Log dotnet/runtime#112505
958042 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60523/merge to s Log dotnet/aspnetcore#60523
958044 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60523/merge to s Log dotnet/aspnetcore#60523
957973 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/896/merge to s Log maestro-auth-test/helix-queue-insights-test#896
957949 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60521/merge to s Log dotnet/aspnetcore#60521
957950 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60521/merge to s Log dotnet/aspnetcore#60521
957262 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60508/merge to s Log dotnet/aspnetcore#60508
957264 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60508/merge to s Log dotnet/aspnetcore#60508
957263 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60508/merge to s Log dotnet/aspnetcore#60508
957197 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/895/merge to s Log maestro-auth-test/helix-queue-insights-test#895
957070 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#46962
957069 dotnet/sdk Checkout dotnet/sdk@refs/pull/46962/merge to s Log dotnet/sdk#46962
956959 dotnet/runtime Checkout dotnet/runtime@refs/pull/112712/merge to s Log dotnet/runtime#112712
957014 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/894/merge to s Log maestro-auth-test/helix-queue-insights-test#894
956829 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#46956
956830 dotnet/sdk Checkout dotnet/sdk@refs/pull/46956/merge to s Log dotnet/sdk#46956
956831 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#46956
956108 dotnet/sdk Checkout dotnet/sdk@refs/pull/46932/merge to s Log dotnet/sdk#46932
956637 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#46951
956638 dotnet/sdk Checkout dotnet/sdk@refs/pull/46951/merge to s Log dotnet/sdk#46951
956639 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#46951
956262 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#46945
955520 dotnet/sdk Checkout dotnet/sdk@refs/pull/46917/merge to s Log dotnet/sdk#46917
955628 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/892/merge to s Log maestro-auth-test/helix-queue-insights-test#892
955528 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/60470/merge to s Log dotnet/aspnetcore#60470
Displaying 100 of 159 results

Summary

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

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
Member

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
Member

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
Member 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
Member

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
Member 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
Member

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