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
1015425 dotnet/sdk Checkout dotnet/sdk@refs/pull/48431/merge to s Log dotnet/sdk#48431
1015422 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48431
1015426 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48431
1014956 dotnet/runtime Checkout dotnet/runtime@refs/pull/114604/merge to s Log dotnet/runtime#114604
1013802 dotnet/runtime Checkout dotnet/runtime@refs/pull/114474/merge to s Log dotnet/runtime#114474
1013790 dotnet/runtime Checkout dotnet/runtime@refs/pull/114296/merge to s Log dotnet/runtime#114296
1013793 dotnet/runtime Checkout dotnet/runtime@refs/pull/114364/merge to s Log dotnet/runtime#114364
1013787 dotnet/runtime Checkout dotnet/runtime@refs/pull/114318/merge to s Log dotnet/runtime#114318
1013876 dotnet/runtime Checkout dotnet/runtime@refs/pull/114558/merge to s Log dotnet/runtime#114558
1013844 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48398
1013216 dotnet/runtime Checkout dotnet/runtime@refs/pull/114527/merge to s Log dotnet/runtime#114527
1012718 dotnet/runtime Checkout dotnet/runtime@refs/pull/114508/merge to s Log dotnet/runtime#114508
1012570 dotnet/sdk Checkout dotnet/sdk@refs/pull/48358/merge to s Log dotnet/sdk#48358
1012569 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48358
1012571 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48358
1012385 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/956/merge to s Log maestro-auth-test/helix-queue-insights-test#956
1012304 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/955/merge to s Log maestro-auth-test/helix-queue-insights-test#955
1012154 dotnet/runtime Checkout dotnet/runtime@refs/pull/114481/merge to s Log dotnet/runtime#114481
1011975 dotnet/sdk Checkout dotnet/sdk@refs/pull/48346/merge to s Log dotnet/sdk#48346
1011385 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48324
1011386 dotnet/sdk Checkout dotnet/sdk@refs/pull/48324/merge to s Log dotnet/sdk#48324
1011387 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48324
1011130 dotnet/runtime Checkout dotnet/runtime@refs/pull/114452/merge to s Log dotnet/runtime#114452
1010773 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48317
1010739 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48316
1010204 dotnet/runtime Checkout dotnet/runtime@refs/pull/114413/merge to s Log dotnet/runtime#114413
1009866 dotnet/installer Checkout dotnet/installer@refs/pull/20392/merge to s Log dotnet/installer#20392
1009472 dotnet/runtime Checkout dotnet/runtime@refs/pull/114386/merge to s Log dotnet/runtime#114386
1009446 dotnet/runtime Checkout dotnet/runtime@refs/pull/114385/merge to s Log dotnet/runtime#114385
1009377 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48258
1008981 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48249
1009015 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48034
1009017 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48034
1009016 dotnet/sdk Checkout dotnet/sdk@refs/pull/48034/merge to s Log dotnet/sdk#48034
1008406 dotnet/runtime Checkout dotnet/runtime@refs/pull/114343/merge to s Log dotnet/runtime#114343
1008179 dotnet/runtime Checkout dotnet/runtime@refs/pull/114224/merge to s Log dotnet/runtime#114224
1007777 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61318/merge to s Log dotnet/aspnetcore#61318
1007775 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61318/merge to s Log dotnet/aspnetcore#61318
1007435 dotnet/arcade-services Checkout dotnet/arcade-services@refs/pull/4631/merge to s Log dotnet/arcade-services#4631
1007096 dotnet/runtime Checkout dotnet/runtime@refs/pull/114316/merge to s Log dotnet/runtime#114316
1005302 dotnet/runtime Checkout dotnet/runtime@refs/pull/113948/merge to s Log dotnet/runtime#113948
1005308 dotnet/aspire Checkout dotnet/aspire@dev/ygerges/migrate-to-mtp to s Log
1005296 dotnet/runtime Checkout dotnet/runtime@release/8.0-staging to s Log
1004525 dotnet/runtime Checkout dotnet/runtime@refs/pull/114085/merge to s Log dotnet/runtime#114085
1004297 dotnet/runtime Checkout dotnet/runtime@refs/pull/113892/merge to s Log dotnet/runtime#113892
1003843 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48138
1003842 dotnet/sdk Checkout dotnet/sdk@refs/pull/48140/merge to s Log dotnet/sdk#48140
1002984 dotnet/runtime Checkout dotnet/runtime@refs/pull/113821/merge to s Log dotnet/runtime#113821
1002963 dotnet/runtime Checkout dotnet/runtime@refs/pull/113595/merge to s Log dotnet/runtime#113595
1002952 dotnet/runtime Checkout dotnet/runtime@refs/pull/113561/merge to s Log dotnet/runtime#113561
1002837 dotnet/runtime Checkout dotnet/runtime@refs/pull/113448/merge to s Log dotnet/runtime#113448
1002940 dotnet/runtime Checkout dotnet/runtime@refs/pull/113516/merge to s Log dotnet/runtime#113516
1002930 dotnet/runtime Checkout dotnet/runtime@refs/pull/113461/merge to s Log dotnet/runtime#113461
1003233 dotnet/runtime Checkout dotnet/runtime@refs/pull/114174/merge to s Log dotnet/runtime#114174
1003074 dotnet/runtime Checkout dotnet/runtime@refs/pull/114169/merge to s Log dotnet/runtime#114169
1003033 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61285/merge to s Log dotnet/aspnetcore#61285
1003034 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61285/merge to s Log dotnet/aspnetcore#61285
1002706 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/954/merge to s Log maestro-auth-test/helix-queue-insights-test#954
1002668 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/953/merge to s Log maestro-auth-test/helix-queue-insights-test#953
1001275 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48080
1001277 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48080
1001276 dotnet/sdk Checkout dotnet/sdk@refs/pull/48080/merge to s Log dotnet/sdk#48080
999584 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48032
999586 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#48032
999657 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/952/merge to s Log maestro-auth-test/helix-queue-insights-test#952
999175 dotnet/runtime Checkout dotnet/runtime@refs/pull/113648/merge to s Log dotnet/runtime#113648
999174 dotnet/runtime Checkout dotnet/runtime@refs/pull/113648/merge to s Log dotnet/runtime#113648
997881 dotnet/runtime Checkout dotnet/runtime@refs/pull/114025/merge to s Log dotnet/runtime#114025
997896 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2056/merge to s Log maestro-auth-test/build-result-analysis-test#2056
997897 maestro-auth-test/build-result-analysis-test Checkout maestro-auth-test/build-result-analysis-test@refs/pull/2056/merge to s Log maestro-auth-test/build-result-analysis-test#2056
997894 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/951/merge to s Log maestro-auth-test/helix-queue-insights-test#951
997805 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61218/merge to s Log dotnet/aspnetcore#61218
997807 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61218/merge to s Log dotnet/aspnetcore#61218
997472 dotnet/runtime Checkout dotnet/runtime@refs/pull/113130/merge to s Log dotnet/runtime#113130
997216 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47985
996067 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47954
996069 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47954
994570 dotnet/sdk Checkout dotnet/sdk@refs/pull/47914/merge to s Log dotnet/sdk#47914
993286 dotnet/sdk Checkout dotnet/sdk@refs/pull/47876/merge to s Log dotnet/sdk#47876
994228 dotnet/runtime Checkout dotnet/runtime@refs/pull/113914/merge to s Log dotnet/runtime#113914
994207 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47904
993364 dotnet/sdk Checkout dotnet/sdk@refs/pull/47878/merge to s Log dotnet/sdk#47878
992827 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47868
992587 dotnet/sdk Checkout dotnet/sdk@refs/pull/47863/merge to s Log dotnet/sdk#47863
992586 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47863
992588 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47863
992001 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/949/merge to s Log maestro-auth-test/helix-queue-insights-test#949
991748 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/947/merge to s Log maestro-auth-test/helix-queue-insights-test#947
989699 dotnet/sdk Checkout dotnet/sdk@refs/pull/47764/merge to s Log dotnet/sdk#47764
988040 dotnet/runtime Checkout dotnet/runtime@refs/pull/113738/merge to s Log dotnet/runtime#113738
987502 dotnet/sdk Checkout dotnet/sdk@refs/pull/47695/merge to s Log dotnet/sdk#47695
986937 dotnet/runtime Checkout dotnet/runtime@refs/pull/113723/merge to s Log dotnet/runtime#113723
986934 dotnet/runtime Checkout dotnet/runtime@refs/pull/113722/merge to s Log dotnet/runtime#113722
986535 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61027/merge to s Log dotnet/aspnetcore#61027
986536 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61027/merge to s Log dotnet/aspnetcore#61027
985899 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47733
985680 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#47722
985424 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61009/merge to s Log dotnet/aspnetcore#61009
985422 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61009/merge to s Log dotnet/aspnetcore#61009
985423 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/61009/merge to s Log dotnet/aspnetcore#61009
Displaying 100 of 115 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
4 36 115

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