Can't run application locally

Rahul Wadhokar 0 Reputation points
2024-06-14T09:03:07.1766667+00:00

Hi Team,

I hope this message finds you well. I am facing an issue with running the Azure IoT Edge module container locally for debugging purposes. Here's the setup on my machines:

Windows Machine Setup:

  • Visual Studio Code
  • .NET Core 8 SDK
  • Python and pip
  • iotedgedevhub

Ubuntu Machine Setup:

  • Docker
  • .NET Core 8 SDK
  • Python and pip
  • iotedgedevhub
  • iotedge

When attempting to run the container using the command below, I encountered the following error: "<4>filtermodule.ModuleBackgroundService[0] Connection changed: Status: Disconnected_Retrying Reason: Communication_Error". Please refer to the attached screenshot of the error for more details.

docker container error

Additionally, after pushing the code to the device, the status of the modules shows an error. Please find the attached screenshot of this error for your reference.

Device Error

Thank you for your assistance in resolving these issues.

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.
557 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 30,711 Reputation points MVP
    2024-06-14T09:22:22.38+00:00

    Hello @Rahul Wadhokar,

    welcome to this moderated Azure community forum.

    The error is not very descriptive and there is going on a lot so it's hard to relate what is going on.

    It seems the default temperature simulation module is not running.

    Please try to have that one running first (nothing else) and then add the other (custom) modules one at a time.

    Azure IoT Edge is a great solution but there are many dependencies so doing ''baby steps' is the way to go.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.