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
edge hub does not start (same as issue #705) #2592
Comments
Thanks for the issue, do things work correctly if you disable or remove one of two NICs? |
We have disabled one NIC and the problem persists. |
Is this a production box or dev box? |
@lfitchett |
Ok, please open a support ticket as more extensive debugging is required. (difference between dev box and production is dev box might have a bunch of other stuff like sdks and compilers. sometimes people will have both moby and docker desktop in dev environments) |
@qusp66 Can you check if any other program is using ports 8883, 5671 or 443 on the device. The edge hub tries to bind to these ports by default and if that can't, this is the error you'll see on Windows. |
Likely same issue as #2752. Closing, please re-open if you still need assistance.. |
neral summary of the issue in the Title above
-->
Expected Behavior
Deploying iotedge on windows 10. Edge Hub starts.
Current Behavior
Edge Hub fails to start
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
Context (Environment)
windows 10, iotedge installed using the aka.ms script as per quickstart documentation)
Output of
iotedge check
√ config.yaml has correct URIs for daemon mgmt endpoint - OK
√ latest security daemon - OK
√ host time is close to real time - OK
√ container time is close to host time - OK
‼ DNS server - Warning
Container engine is not configured with DNS server setting, which may impact connectivity to IoT Hub.
Please see https://aka.ms/iotedge-prod-checklist-dns for best practices.
You can ignore this warning if you are setting DNS server per module in the Edge deployment.
caused by: Could not open container engine config file C:\ProgramData\iotedge-moby\config\daemon.json
caused by: The system cannot find the path specified. (os error 3)
‼ production readiness: certificates - Warning
Device is using self-signed, automatically generated certs.
Please see https://aka.ms/iotedge-prod-checklist-certs for best practices.
√ production readiness: certificates expiry - OK
√ production readiness: container engine - OK
‼ production readiness: logs policy - Warning
Container engine is not configured to rotate module logs which may cause it run out of disk space.
Please see https://aka.ms/iotedge-prod-checklist-logs for best practices.
You can ignore this warning if you are setting log policy per module in the Edge deployment.
caused by: Could not open container engine config file C:\ProgramData\iotedge-moby\config\daemon.json
caused by: The system cannot find the path specified. (os error 3)
Connectivity checks
√ host can connect to and perform TLS handshake with IoT Hub AMQP port - OK
√ host can connect to and perform TLS handshake with IoT Hub HTTPS / WebSockets port - OK
√ host can connect to and perform TLS handshake with IoT Hub MQTT port - OK
√ container on the IoT Edge module network can connect to IoT Hub AMQP port - OK
√ container on the IoT Edge module network can connect to IoT Hub HTTPS / WebSockets port - OK
√ container on the IoT Edge module network can connect to IoT Hub MQTT port - OK
× Edge Hub can bind to ports on host - Error
Could not check if port 5671 is available for Edge Hub to bind to
caused by: An attempt was made to access a socket in a way forbidden by its access permissions. (os error 10013)
16 check(s) succeeded.
4 check(s) raised warnings.
1 check(s) raised errors.
<6> 2020-02-26 14:30:57.794 +01:00 [INF] - Executing command: "Start module edgeHub"
<3> 2020-02-26 14:31:15.508 +01:00 [ERR] - Executing command for operation ["start"] failed.
Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling start module edgeHub: Could not start module edgeHub
caused by: Could not start module edgeHub
caused by: failed to create endpoint edgeHub on network nat: hnsCall failed in Win32: The process cannot access the file because it is being used by another process. (0x20), StatusCode:500, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in C:\agent_work\7\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\version_2019_01_30\ModuleManagementHttpClient.cs:line 194
at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func`1 func, String operation) in C:\agent_work\7\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\versioning\ModuleManagementHttpClientVersioned.cs:line 124
at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.StartModuleAsync(String name) in C:\agent_work\7\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\version_2019_01_30\ModuleManagementHttpClient.cs:line 149
at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent_work\7\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 60
no logs as teh module does not start
The text was updated successfully, but these errors were encountered: