Hello @Athira Gopinath(UST,IN)
Adding to @VSawhney comments about IoT Edge Runtime on Ubuntu 24.04 LTS.
After the initial successful data transmission, if the IoT Edge modules continue running but stop sending data to IoT Hub, you can follow these troubleshooting steps:
Check Module Logs:
Examine the logs of your IoT Edge modules—especially edgeAgent
and edgeHub
—to identify any errors or warnings. You can retrieve these logs using:
sudo iotedge logs edgeAgent
sudo iotedge logs edgeHub
sudo iotedge logs <ModuleName>
These logs provide insights into module lifecycles and potential messaging issues.
Adjusting the MaxUpstreamBatchSize
environment variable can help by increasing the number of messages sent in a single batch, reducing round trips between the device and IoT Hub.
Incorrect DNS settings can prevent modules from communicating correctly. Ensure that the container engine is configured with the correct DNS server settings. If using Docker, modify the daemon.json
file:
{
"dns": ["8.8.8.8", "8.8.4.4"]
}
After updating, restart the Docker service:
sudo systemctl restart docker
Monitor IoT Events or Telemetry
To verify whether messages are reaching IoT Hub, use the following command in Azure CLI:
az iot hub monitor-events --output table --device-id <yourDeviceId> --hub-name <YourIoTHubName>
Check Network, Proxy, or Firewall Settings
Since your second Raspberry Pi with Ubuntu 24.04 LTS is working fine, but the first device is not receiving data, the issue might be network-related. Consider these steps:
- Verify if the device is behind a proxy server. If so, configure IoT Edge to communicate through a proxy using this Microsoft document
- Ensure the host firewall settings allow IoT Edge to communicate with Azure IoT Hub. Refer to this guide on managing host firewalls with Azure IoT.
Conclusion
Your issue seems to be network-related, as the second device works fine. Testing the same machine again with different network settings should help identify the root cause. If a proxy or firewall is blocking the messages, configuring them appropriately should resolve the issue.
Further Reading:
Hope this helps! If this answer resolves your issue, please click "Accept the answer" and upvote/click yes to help other community members.If you have any further questions, please click Comment.