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."
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.
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.
Thank you for your assistance in resolving these issues.