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

wsarecv: An existing connection was forcibly closed by the remote host #3593

Open
bennyvanlyssebettens opened this issue Jul 15, 2024 · 4 comments

Comments

@bennyvanlyssebettens
Copy link

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue
Pulling the latest image mcr.microsoft.com/businesscentral:ltsc2022 fails (time after time, after time)
Scripts used to create container and cause the issue

New-BcImage -artifactUrl $artifactUrl -baseImage $baseImage -imageName $imageName -includeTestToolkit -includeTestLibrariesOnly

Full output of scripts

BcContainerHelper version 6.0.19
WinRM service is not running, will not try to use WinRM sessions
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.22621.3880
Image: businesscentral/onprem:24.3.21374.21517-w1-ltsc2022
businesscentral/onprem:24.3.21374.21517-w1-ltsc2022
Building image businesscentral/onprem:24.3.21374.21517-w1-ltsc2022 based on mcr.microsoft.com/businesscentral:ltsc2022 with https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/onprem/24.3.21374.21517/w1
Pulling latest image mcr.microsoft.com/businesscentral:ltsc2022
New-BcImage Telemetry Correlation Id: ddcd8ed5-d4e5-4e31-8727-13ddfa291e01
DockerDo : Error response from daemon: Get "https://mcr.microsoft.com/v2/": read tcp [2a02:1812:402:b500:8c0:2734:c223:8bf]:54307->[2603:1061:f:101::10]:443: wsarecv: An existing connection was forcibly c
losed by the remote host.
ExitCode: 1
Commandline: docker pull  mcr.microsoft.com/businesscentral:ltsc2022
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.19\ContainerHandling\New-NavImage.ps1:338 char:21
+ ...                  DockerDo -command pull -imageName $baseImage | Out-N ...
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo
 

PS C:\WINDOWS\system32> 

Additional context

  • does it happen all the time? Yes
  • did it use to work? Yes
@stefanJeady
Copy link

Also facing this exact issue.

@freddydk
Copy link
Contributor

can you perform this command manually: docker pull mcr.microsoft.com/businesscentral:ltsc2022

@bennyvanlyssebettens
Copy link
Author

Hi,
I don't have this only when I want to pull images from MS, but also frequently when I clone/sync repo's on Azure Devops.
So I started with some investigations... It seems I have all these errors only when I'm working "straight" on my providers connection. When I use one of my clients VPN's of the McAfee VPN service, all is ok.

Conclusion: Not related to BCContainerHelper or even Docker

@stefanJeady
Copy link

Can confirm, when using a VPN the issue goes away, however some of our VPN's also have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants