Project not running locally "filtermodule.ModuleBackgroundService[0] Connection changed: Status: Disconnected_Retrying Reason: Communication_Error". Please refer to the attached screenshot of the error for more details."

Rahul Wadhokar 0 Reputation points
2024-06-14T08:55:14.5333333+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.

Command used: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

Command used:

docker run -e IOTEDGE_DEVICEID="my-device1" -e IOTEDGE_WORKLOADURI=unix:///var/run/iotedge/workload.sock -e IOTEDGE_MODULEID="filtermodule" -e IOTEDGE_IOTHUBHOSTNAME="Az-IoT-Hub-1.azure-devices.net" -e IOTEDGE_AUTHSCHEME="sasToken" -e IOTEDGE_MODULEGENERATIONID="" acriotedge.azurecr.io/filtermodule:0.0.2-amd64

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