You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI infrastructure failure: Unable to pull image mcr.microsoft.com/... #2209
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.
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?"
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
@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)
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.
Activity
jkotas commentedon Jan 26, 2020
Failed in #2203 :
jkotas commentedon Jan 27, 2020
Failed in #2212
safern commentedon Jan 27, 2020
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.
MattGal commentedon Jan 27, 2020
Taking a look...
MattGal commentedon Jan 27, 2020
Relevant Kusto query:
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.
jkotas commentedon Jan 27, 2020
Ok, thanks for taking a look.
jkotas commentedon Feb 1, 2020
Hit by https://dev.azure.com/dnceng/public/_build/results?buildId=503475&view=ms.vss-test-web.build-test-results-tab&runId=15997016&resultId=177483&paneView=attachments :
MattGal commentedon Feb 1, 2020
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:
@MichaelSimons / @mthalman do you guys have a recommended support path for asking mcr for "did stuff happen in this time frame?"
MichaelSimons commentedon Feb 3, 2020
@MattGal - you could log an issue on the internal MCR repo or ask on the internal MCR-Talk teams channel
ViktorHofer commentedon Feb 13, 2020
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
MichaelSimons commentedon Feb 13, 2020
@MattGal - Naive question, does this Helix logic have retry logic around pulling images?
MattGal commentedon Feb 18, 2020
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)
MattGal commentedon Feb 19, 2020
@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)
safern commentedon Feb 20, 2020
Failed again on: https://dev.azure.com/dnceng/public/_build/results?buildId=529417&view=logs for multiple workitems.
https://helix.dot.net/api/2019-06-17/jobs/2e23327f-6e1e-4ee0-b137-1f8caa13ffb7/workitems/System.Numerics.Vectors.Tests/console
@MattGal I guess rollout will be next week?
MattGal commentedon Feb 20, 2020
Sorry about that yes, we're hoping to roll out the new infra retry behavior Tuesday, no blocking issues stopping that.
MattGal commentedon Feb 20, 2020
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.
jaredpar commentedon Mar 2, 2020
Closing as we haven't seen recent occurrences of this. Please re-open if they pop up again.
MattGal commentedon Mar 2, 2020
I actually rolled out a fix for this last week :) that's awesome to hear, and fingers crossed it stays this way.