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

IoT Edge Install fails because it can't get the IP Address of the host #2587

Closed
ckcampbell248 opened this issue Feb 25, 2020 · 3 comments
Closed

Comments

@ckcampbell248
Copy link

ckcampbell248 commented Feb 25, 2020

#Expected Behavior
Initialize-IoTEdge step should have completed and started the edgeAgent container.

Current Behavior

Initialize-IoTEdge failed with "Initialize-IoTEdge : The property 'IPAddress' cannot be found on this object. Verify that the property exists."

Steps to Reproduce

Provide a detailed set of steps to reproduce the bug.

  1. Ensure you are running the latest version of Docker Desktop (I'm on 2.2.0.3 (42716))
  2. Follow the steps at: https://docs.microsoft.com/en-us/azure/iot-edge/how-to-install-iot-edge-windows-with-linux.
  3. Initialize-IoTEdge will fail

Context (Environment)

Windows 10 build 19041 / Docker Desktop 2.2.0.3 (42716)

Output of iotedge check

Would not run because install didn't complete

Please provide any additional information that may be helpful in understanding the issue.

After the failure, I looked into the IotEdgeSecurityDaemon.ps1 script located at aka.ms/iotedge-win. To assign the IP address, it is referencing a network connection on the local machine called "vEthernet (DockerNAT)". This does not exist on my machine. Instead I have "vEthernet (Default Switch)". I downloaded the script to my local machine and modified it to look for "vEthernet (Default Switch)". After doing this, running Initialize-IotEdge pointing at the local version of the script worked and IoT Edge is now running on my machine.

Per this issue: docker/for-win#5538, Docker has removed the DockerNAT connection.

After the script change and completion of Initialize-IotEdge, the edgeAgent is running and I can now run iotedge check. I have deployed a module and things seem to be working so it appears that the removal of DockerNAT is the issue.

@lfitchett
Copy link
Contributor

Thank you for your report. Feel free to open a pull request to fix the issue! If you don't want to do so, let me know and I'll file it as a bug in our backlog.

Note that since this is a dev only scenario (no production impact) it will be lower priority.

@sandervandevelde
Copy link

I and several others encountered the same issue today also during a workshop. Is this filed as a bug already?

Although this is a dev only scenario, this is the only scenario for new IoT Edge developers to setup a proper dev environment (on Windows). So it's 'blocking' for the future generation of IoT Edgers :-)

image

@veyalla
Copy link
Contributor

veyalla commented Apr 1, 2020

FYI - this is fixed in the 1.0.9 release.

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

5 participants