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 not connecting to IOT Hub #3393

Closed
IoTEdgeUser opened this issue Nov 9, 2023 · 2 comments
Closed

IoT Edge not connecting to IOT Hub #3393

IoTEdgeUser opened this issue Nov 9, 2023 · 2 comments
Labels
IoTSDK Tracks all IoT SDK issues across the board question Further information is requested.

Comments

@IoTEdgeUser
Copy link

Hi,

We have deployed IOT Edge on an on-premise system and are connecting to Azure IoT Hub from it via Site to SIte VPN. Outbound ports 443 and 5671 are enabled via site to site vpn for IoT Hub and 443 is enable for container registry. As the system does not have internet we have installed iotedge via packages and copied tar files of Edge Agent, Edge Hub from Microsoft container registry. On executing docker load command for these tar files, all the docker images are getting created for these modules. However no containers for them are available in docker ps -a. Only Edge Agent is up but with error. Where as Edge Hub is giving error. On running IoTEdge check we get error that the containers cannot resolve to the host name. However host connectivity works fine. We have added host entry in etc/hosts for the FQDN and IP. Our assumption is that the container has not got these details and hence the hostname is not able to resolve the IP. We tried to add hostname explicitly to the docker by using docker run add host for the Edge Agent and Hub but they are giving null exceptions. Kindly suggest how to resolve this issue.

@IoTEdgeUser IoTEdgeUser added the question Further information is requested. label Nov 9, 2023
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Nov 9, 2023
@rido-min
Copy link
Member

Hi @IoTEdgeUser, this issue is not related to the azure-iot-sdk, can you re-open it in https://github.com/Azure/iotedge/issues ?

@timtay-microsoft
Copy link
Member

Closing this thread since the thread has been opened in the right repo now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IoTSDK Tracks all IoT SDK issues across the board question Further information is requested.
Projects
None yet
Development

No branches or pull requests

3 participants