Skip to content

CI infrastructure failure: Unable to pull image mcr.microsoft.com/... #2209

Closed

Description

@jkotas

I have seen this intermittent error on number of different CI jobs in last few days.

cc @dotnet/runtime-infrastructure

Activity

  1. added
    untriaged
    on Jan 26, 2020
  2. jkotas commented on Jan 26, 2020

    @jkotas
    MemberAuthor

    Failed in #2203 :

    Output:
    Unable to pull image mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64-61052b7-20190723211353
    Exit Code:-4
    
  3. jkotas commented on Jan 27, 2020

    @jkotas
    MemberAuthor

    Failed in #2212

    Output:
    Unable to pull image mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64-61052b7-20190723211353
    Exit Code:-4
    
  4. safern commented on Jan 27, 2020

    @safern
    Member

    cc: @MattGal could you take a look at this please? It seems like helix is sometimes failing to pull down the image to run the tests.

  5. MattGal commented on Jan 27, 2020

    @MattGal
    Member

    cc: @MattGal could you take a look at this please? It seems like helix is sometimes failing to pull down the image to run the tests.

    Taking a look...

  6. MattGal commented on Jan 27, 2020

    @MattGal
    Member

    Relevant Kusto query:

    WorkItems
    | where QueueName == "windows.10.amd64.serverrs5.open" and ExitCode == -4
    | summarize count() by MachineName
    

    In short, this has only happened once, on three machines in history for Windows, and it seems like something really horked Docker starting from the first work item on these machines.

    The machines in question are all recycled; if this reproduces again, we need to get on a machine and investigate the state of the Docker windows service, as we've never seen this in 1.5 years of Windows docker support. I'd recommend closing this and pinging dnceng asap if you ever see it again.

  7. jkotas commented on Jan 27, 2020

    @jkotas
    MemberAuthor

    Ok, thanks for taking a look.

  8. jkotas commented on Feb 1, 2020

    @jkotas
    MemberAuthor
  9. reopened this on Feb 1, 2020
  10. MattGal commented on Feb 1, 2020

    @MattGal
    Member

    This is totally different from the last time, other than I use -4 to indicate docker problems... linux vs. windows, this time it's an http 500 from mcr.microsoft.com versus a problem talking to the daemon:

    2020-01-31T23:19:59.127Z	INFO   	servicebusrepository(109)	renew_workitem_lock	Renewed work item lock. Status Code: 200
    2020-01-31T23:20:28.397Z	WARNING	dockerhelper(63)	pull	Hit exception trying to pull: 500 Server Error: Internal Server Error ("Get https://mcr.microsoft.com/v2/dotnet-buildtools/prereqs/manifests/fedora-29-helix-a12566d-20191210224553: dial tcp 40.112.242.159:443: i/o timeout") Retrying up to 5 times
    2020-01-31T23:20:44.128Z	INFO   	servicebusrepository(99)	renew_workitem_lock	Entering renew_workitem_lock for https://nethelix.servicebus.windows.net/ubuntu.1604.amd64.open/messages/97039465/3f424dd8-9ed5-4c2a-b2ec-c53e175ce09e
    

    @MichaelSimons / @mthalman do you guys have a recommended support path for asking mcr for "did stuff happen in this time frame?"

  11. MichaelSimons commented on Feb 3, 2020

    @MichaelSimons
    Member

    @MattGal - you could log an issue on the internal MCR repo or ask on the internal MCR-Talk teams channel

  12. added
    blocking-clean-ci
    on Feb 4, 2020
  13. ViktorHofer commented on Feb 13, 2020

    @ViktorHofer
    Member

    Just happened again in CI: https://dev.azure.com/dnceng/public/_build/results?buildId=519517&view=ms.vss-test-web.build-test-results-tab&runId=16423544&resultId=169297&paneView=attachments

    Executed on a0018G7 using docker image mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64-08e8e40-20200107182504
    running %HELIX_CORRELATION_PAYLOAD%\scripts\5d0d34f0b7e34c27828fb41b52c8f01f\execute.cmd in C:\h\w\949308AE\w\9FD308FB\e max 900 seconds
    
    Output:
    Unable to pull image mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64-08e8e40-20200107182504
    Exit Code:-4
    
  14. MichaelSimons commented on Feb 13, 2020

    @MichaelSimons
    Member

    @MattGal - Naive question, does this Helix logic have retry logic around pulling images?

  15. MattGal commented on Feb 18, 2020

    @MattGal
    Member

    @MattGal - Naive question, does this Helix logic have retry logic around pulling images?

    Correct, there are 5 retries waiting 10 seconds between each; however this one was not the HTTP 500 we've seen recently from MCR rather I think that machine's docker service itself failed. (it's long since been recycled)

  16. MattGal commented on Feb 19, 2020

    @MattGal
    Member

    @MichaelSimons I thought on this issue further and made this PR https://dnceng.visualstudio.com/internal/_git/dotnet-helix-machines/pullrequest/6269?_a=files which will cause work items to auto retry and the machine to reboot as well if failures happen in container pruning or pull operations (previously we only saw this symptom in run scenarios)

  17. MattGal commented on Feb 20, 2020

    @MattGal
    Member
  18. MattGal commented on Feb 20, 2020

    @MattGal
    Member

    Looks like it happened on 5 machines in the past day and they're all cleaned up now. This time the error seemed relevant to the container's mounts (the workaround should solve this regardless) so I'll investigate to see if a previous work item on the machines caused shenanigans too.

  19. jaredpar commented on Mar 2, 2020

    @jaredpar
    Member

    Closing as we haven't seen recent occurrences of this. Please re-open if they pop up again.

  20. MattGal commented on Mar 2, 2020

    @MattGal
    Member

    Closing as we haven't seen recent occurrences of this. Please re-open if they pop up again.

    I actually rolled out a fix for this last week :) that's awesome to hear, and fingers crossed it stays this way.

  21. ghost locked as resolved and limited conversation to collaborators on Dec 11, 2020
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

    area-Infrastructureblocking-clean-ciuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions