Azure-docs: ERROR: Error during pull for image mcr.microsoft.com/azureiotedge-hub:1.0 : 500 Server Error

Created on 28 Feb 2019  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

When following this guide I got following error at _"Build and debug single C# module"_ 2. :

ERROR: Error during pull for image mcr.microsoft.com/azureiotedge-hub:1.0 : 500 Server Error: Internal Server Error ("Get https://mcr.microsoft.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")

My setup:

OS Name: Microsoft Windows 10 Pro
Version: 10.0.17763 Build 17763

VisualStudio.15.Release/15.9.7+28307.423
Docker version 18.09.2, build 6247962
iotedgehubdev, version 0.7.0

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cxp iot-edgsvc product-question triaged

All 7 comments

@LMtx please provide us with the link to the document you are following so we can better asssist

@MicahMcKittrick-MSFT sorry, I thought that this link will be included by default - was following this document and opened issue from link on the bottom on page: https://docs.microsoft.com/en-us/azure/iot-edge/how-to-visual-studio-develop-csharp-module

@LMtx , seems there's connectivity issue when pulling image. Could you please run the following command from your cmd console:

docker pull mcr.microsoft.com/azureiotedge-hub:1.0

If the issue remains, you may need follow https://docs.docker.com/network/proxy/ to set up proxy for your docker.

I was able to pull above image. When I try to build project in VS a get following error:

ERROR: Could not start container: 4a9e930dfee046da06e1c05a3cb66f7da363c86939bc0c3e15ed34e8598ed32a : 500 Server Error: Internal Server Error ("driver failed programming external connectivity on endpoint edgeHubDev (a05550ccaf59be28a11fa6b1f6cdd7c6a2b3cf2f00fbd7f5b3d389b6b38c0b5d): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8883:tcp:172.19.0.2:8883: input/output error")

After adding proxy (172.19.0.2:8883) in Docker for Windows I got following error on build:

ERROR: Error during pull for image mcr.microsoft.com/azureiotedge-hub:1.0 : 500 Server Error: Internal Server Error ("Get https://mcr.microsoft.com/v2/: proxyconnect tcp: dial tcp 172.19.0.2:8883: connect: no route to host")

When I changed proxy to 0.0.0.0:8883 I got:

ERROR: Error during pull for image mcr.microsoft.com/azureiotedge-hub:1.0 : 500 Server Error: Internal Server Error ("Get https://mcr.microsoft.com/v2/: proxyconnect tcp: dial tcp 0.0.0.0:8883: connect: connection refused")

I do not understand why pull from powershell is working but it fail in VS :(

All of the sudden the same setup worked (without proxy, no additional changes). I guess that this issue is related to Docker on Windows which is not mature solution yet (IMHO). Thank you for your help!

@LMtx Thanks for the update!

I got the same error earlier but i realized that I was running Docker for Linux which was causing issue. Once I switched back to Docker for Windows this issue gone.

Was this page helpful?
0 / 5 - 0 ratings