Does IoT Edge Runtime can be installed on Ubuntu 24.04 LTS

Athira Gopinath(UST,IN) 141 Reputation points
2025-02-26T11:09:03.4566667+00:00

Hi Team,

As part of our R&D efforts, we are attempting to install the IoT Edge Runtime on Ubuntu 24.04 LTS using the URL:

https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb.

The runtime was successfully installed, and the modules were pulled to the host. The IoT Hub connection was established, and data was initially sent to IoT Hub. However, we observed instability, as data is no longer being received at IoT Hub, despite the modules remaining up and running and continuing to send data.

Could someone please assist us in resolving this issue?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
594 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sampath 750 Reputation points Microsoft External Staff
    2025-03-06T07:15:12.2766667+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.