Skip to content

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

Description

@carlossanlop

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 Repository Step Name Console log Pull Request
1629695 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2953/merge to s Log maestro-auth-test/build-result-analysis-test#2953
1629694 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2953/merge to s Log maestro-auth-test/build-result-analysis-test#2953
1629579 dotnet/maui Checkout dotnet/maui@inflight/candidate to s Log
1629043 dotnet/runtime Checkout dotnet/runtime@refs/pull/135452/merge to s Log dotnet/runtime#135452
1628811 dotnet/maui Checkout dotnet/maui@inflight/current to s Log
1628485 dotnet/runtime Checkout dotnet/runtime@refs/pull/121892/merge to s Log dotnet/runtime#121892
1627925 dotnet/runtime Checkout dotnet/runtime@refs/pull/135167/merge to s Log dotnet/runtime#135167
1627279 dotnet/runtime Checkout dotnet/runtime@refs/pull/135323/merge to s Log dotnet/runtime#135323
1627078 dotnet/runtime Checkout dotnet/runtime@refs/pull/135370/merge to s Log dotnet/runtime#135370
1627082 dotnet/runtime Checkout dotnet/runtime@refs/pull/135371/merge to s Log dotnet/runtime#135371
1626941 dotnet/runtime Checkout dotnet/runtime@refs/pull/135302/merge to s Log dotnet/runtime#135302
1626691 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/69326/merge to s Log dotnet/aspnetcore#69326
1626690 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/69327/merge to s Log dotnet/aspnetcore#69327
1626692 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/69327/merge to s Log dotnet/aspnetcore#69327
1626694 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/69327/merge to s Log dotnet/aspnetcore#69327
1626584 dotnet/runtime Checkout dotnet/runtime@refs/pull/135341/merge to s Log dotnet/runtime#135341
1626565 dotnet/runtime Checkout dotnet/runtime@refs/pull/135311/merge to s Log dotnet/runtime#135311
1626567 dotnet/runtime Checkout dotnet/runtime@refs/pull/135312/merge to s Log dotnet/runtime#135312
1626476 dotnet/maui Checkout dotnet/maui@inflight/current to s Log
1626464 dotnet/maui Checkout dotnet/maui@refs/pull/39062/merge to s Log dotnet/maui#39062
1626468 dotnet/maui Checkout dotnet/maui@refs/pull/39185/merge to s Log dotnet/maui#39185
1626473 dotnet/maui Checkout dotnet/maui@refs/pull/36474/merge to s Log dotnet/maui#36474
1626281 dotnet/runtime Checkout dotnet/runtime@refs/pull/135277/merge to s Log dotnet/runtime#135277
1625681 dotnet/runtime Checkout dotnet/runtime@release/11.0 to s Log
1625616 dotnet/runtime Checkout dotnet/runtime@refs/pull/135065/merge to s Log dotnet/runtime#135065
1625636 dotnet/sdk Checkout dotnet/sdk@refs/pull/56526/merge to s Log dotnet/sdk#56526
1625430 dotnet/diagnostics Checkout dotnet/diagnostics@refs/pull/6086/merge to s Log dotnet/diagnostics#6086
1625607 dotnet/maui Checkout dotnet/maui@inflight/current to s Log
1625326 dotnet/sdk Checkout dotnet/sdk@refs/pull/56524/merge to s Log dotnet/sdk#56524
1625330 dotnet/sdk Checkout dotnet/sdk@refs/pull/56525/merge to s Log dotnet/sdk#56525
1625635 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#56526
1625370 dotnet/maui Checkout dotnet/maui@refs/pull/38782/merge to s Log dotnet/maui#38782
1625281 dotnet/runtime Checkout dotnet/runtime@refs/pull/132591/merge to s Log dotnet/runtime#132591
1625410 dotnet/runtime Checkout dotnet/runtime@refs/pull/135305/merge to s Log dotnet/runtime#135305
1625424 dotnet/runtime Checkout dotnet/runtime@refs/pull/135306/merge to s Log dotnet/runtime#135306
1625253 dotnet/runtime Checkout dotnet/runtime@refs/pull/135248/merge to s Log dotnet/runtime#135248
1625061 dotnet/maui Checkout dotnet/maui@net11.0 to s Log
1625038 dotnet/runtime Checkout dotnet/runtime@refs/pull/135280/merge to s Log dotnet/runtime#135280
1624868 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2947/merge to s Log maestro-auth-test/build-result-analysis-test#2947
1624867 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2947/merge to s Log maestro-auth-test/build-result-analysis-test#2947
1624254 dotnet/arcade-services Checkout dotnet/arcade-services@refs/pull/6755/merge to s Log dotnet/arcade-services#6755
1623979 dotnet/runtime Checkout dotnet/runtime@refs/pull/130935/merge to s Log dotnet/runtime#130935
1622931 dotnet/runtime Checkout dotnet/runtime@refs/pull/135160/merge to s Log dotnet/runtime#135160
1621950 dotnet/runtime Checkout dotnet/runtime@refs/pull/135153/merge to s Log dotnet/runtime#135153
1621972 dotnet/runtime Checkout dotnet/runtime@refs/pull/134562/merge to s Log dotnet/runtime#134562
1621123 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2937/merge to s Log maestro-auth-test/build-result-analysis-test#2937
1621124 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2937/merge to s Log maestro-auth-test/build-result-analysis-test#2937
1620511 dotnet/sdk Checkout dotnet/sdk@refs/pull/56471/merge to s Log dotnet/sdk#56471
1620531 dotnet/runtime Checkout dotnet/runtime@refs/pull/134843/merge to s Log dotnet/runtime#134843
1620461 dotnet/runtime Checkout dotnet/runtime@refs/pull/135048/merge to s Log dotnet/runtime#135048
1620251 dotnet/sdk Checkout dotnet/sdk@refs/pull/54577/merge to s Log dotnet/sdk#54577
1620213 dotnet/runtime Checkout dotnet/runtime@refs/pull/134484/merge to s Log dotnet/runtime#134484
1620011 dotnet/maui Checkout dotnet/maui@refs/pull/39063/merge to s Log dotnet/maui#39063
1619676 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2930/merge to s Log maestro-auth-test/build-result-analysis-test#2930
1619675 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2930/merge to s Log maestro-auth-test/build-result-analysis-test#2930
1619391 dotnet/maui Checkout dotnet/maui@refs/pull/37953/merge to s Log dotnet/maui#37953
1618546 dotnet/runtime Checkout dotnet/runtime@refs/pull/134979/merge to s dotnet/runtime#134979
1618179 dotnet/arcade Checkout dotnet/arcade@refs/pull/17638/merge to s Log #17638
1617974 dotnet/machinelearning Checkout dotnet/machinelearning@refs/pull/7712/merge to s Log dotnet/machinelearning#7712
1617975 dotnet/machinelearning Checkout dotnet/machinelearning@refs/pull/7712/merge to s Log dotnet/machinelearning#7712
1617776 dotnet/maui Checkout dotnet/maui@refs/pull/38985/merge to s Log dotnet/maui#38985
1617832 dotnet/roslyn Checkout dotnet/roslyn@refs/pull/85842/merge to s Log dotnet/roslyn#85842
1617778 dotnet/maui Checkout dotnet/maui@refs/pull/38985/merge to s Log dotnet/maui#38985
1617777 dotnet/maui Checkout dotnet/maui@refs/pull/39013/merge to s Log dotnet/maui#39013
1617143 dotnet/performance Checkout dotnet/performance@refs/pull/5328/merge to s Log dotnet/performance#5328
1617159 dotnet/runtime Checkout dotnet/runtime@refs/pull/134616/merge to s Log dotnet/runtime#134616
1617112 dotnet/runtime Checkout dotnet/runtime@refs/pull/134899/merge to s Log dotnet/runtime#134899
1617122 dotnet/runtime Checkout dotnet/runtime@refs/pull/134875/merge to s Log dotnet/runtime#134875
1617075 dotnet/runtime Checkout dotnet/runtime@refs/pull/134769/merge to s Log dotnet/runtime#134769
1616403 dotnet/maui Checkout dotnet/maui@refs/pull/38083/merge to s Log dotnet/maui#38083
1616303 dotnet/runtime Checkout dotnet/runtime@refs/pull/134675/merge to s Log dotnet/runtime#134675
1615096 dotnet/diagnostics Checkout dotnet/diagnostics@refs/pull/6068/merge to s Log dotnet/diagnostics#6068
1614548 dotnet/maui Checkout dotnet/maui@refs/pull/38804/merge to s Log dotnet/maui#38804
1614394 dotnet/runtime Checkout dotnet/runtime@main to s Log
1614253 dotnet/runtime Checkout dotnet/runtime@refs/pull/134322/merge to s Log dotnet/runtime#134322
1612532 dotnet/maui Checkout dotnet/maui@refs/pull/38777/merge to s Log dotnet/maui#38777
1612301 dotnet/arcade-services Checkout dotnet/arcade-services@refs/pull/6731/merge to s Log dotnet/arcade-services#6731
1612009 dotnet/runtime Checkout dotnet/runtime@refs/pull/134527/merge to s dotnet/runtime#134527
1611911 dotnet/runtime Checkout dotnet/runtime@refs/pull/134040/merge to s Log dotnet/runtime#134040
1611719 dotnet/maui Checkout dotnet/maui@refs/pull/38858/merge to s Log dotnet/maui#38858
1611649 dotnet/runtime Checkout dotnet/runtime@refs/pull/134629/merge to s Log dotnet/runtime#134629
1611462 dotnet/sdk Checkout dotnet/sdk@refs/pull/56356/merge to s Log dotnet/sdk#56356
1606628 dotnet/sdk Checkout dotnet/sdk@refs/pull/56371/merge to s Log dotnet/sdk#56371
1610915 dotnet/diagnostics Checkout dotnet/diagnostics@refs/pull/6064/merge to s Log dotnet/diagnostics#6064
1610845 dotnet/maui Checkout dotnet/maui@refs/pull/38603/merge to s Log dotnet/maui#38603
1610658 dotnet/maui Checkout dotnet/maui@inflight/current to s Log
1610648 dotnet/maui Checkout dotnet/maui@refs/pull/38843/merge to s Log dotnet/maui#38843
1610177 dotnet/maui Checkout dotnet/maui@refs/pull/38822/merge to s Log dotnet/maui#38822
1609321 dotnet/maui Checkout dotnet/maui@net11.0 to s Log
1609094 dotnet/runtime Checkout dotnet/runtime@refs/pull/134405/merge to s Log dotnet/runtime#134405
1609088 dotnet/runtime Checkout dotnet/runtime@refs/pull/134404/merge to s Log dotnet/runtime#134404
1608718 dotnet/maui Checkout dotnet/maui@refs/pull/38777/merge to s Log dotnet/maui#38777
1608456 dotnet/runtime Checkout dotnet/runtime@refs/pull/134497/merge to s Log dotnet/runtime#134497
1607980 dotnet/maui Checkout dotnet/maui@refs/pull/38441/merge to s Log dotnet/maui#38441
1607982 dotnet/maui Checkout dotnet/maui@refs/pull/38367/merge to s Log dotnet/maui#38367
1607955 dotnet/maui Checkout dotnet/maui@refs/pull/38659/merge to s Log dotnet/maui#38659
1607191 dotnet/sdk Checkout dotnet/sdk@refs/pull/56367/merge to s Log dotnet/sdk#56367
1607115 dotnet/sdk Checkout dotnet/sdk@refs/pull/56374/merge to s Log dotnet/sdk#56374
1606843 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2886/merge to s Log maestro-auth-test/build-result-analysis-test#2886
1606842 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2886/merge to s Log maestro-auth-test/build-result-analysis-test#2886
Displaying 100 of 134 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 43 134

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

Activity

  1. ChadNedzlek commented on Apr 12, 2022

    @ChadNedzlek
    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.

  2. ulisesh commented on Apr 13, 2022

    @ulisesh
    Contributor

    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.

  3. markwilkie commented on Apr 13, 2022

    @markwilkie
    Contributor

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

  4. ulisesh commented on Apr 13, 2022

    @ulisesh
    Contributor

    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"

  5. self-assigned this
    on Apr 19, 2022
  6. removed their assignment
    on Jun 22, 2022
  7. changed the title [-]Checkout dotnet/runtime step failure: "Git fetch failed with exit code 128"[/-] [+]Checkout failure: "Git fetch failed with exit code 128"[/+] on Oct 7, 2022
  8. ViktorHofer commented on Jan 11, 2023

    @ViktorHofer
    Member

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

  9. premun commented on Jan 11, 2023

    @premun
    Member

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

  10. dougbu commented on Jan 8, 2024

    @dougbu
    Contributor

    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❔

  11. carlossanlop commented on Jan 8, 2024

    @carlossanlop
    ContributorAuthor

    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.

  12. dougbu commented on Jan 8, 2024

    @dougbu
    Contributor

    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.

  13. carlossanlop commented on Jan 8, 2024

    @carlossanlop
    ContributorAuthor

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

  14. AlitzelMendez commented on Jan 8, 2024

    @AlitzelMendez
    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

  15. dougbu commented on Jan 8, 2024

    @dougbu
    Contributor

    updated the description to try retries

  16. AlitzelMendez commented on Jan 8, 2024

    @AlitzelMendez
    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 :)

  17. AlitzelMendez commented on Jan 16, 2024

    @AlitzelMendez
    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.

  18. removed their assignment
    on Jan 16, 2024
  19. added
    Ops - FacilelyOperations issues that are easily accomplished or attained
    on Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions