# Deepstream module fails with AZure IoTEdge

**URL:** <https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865>\
**Category:** DeepStream SDK\
**Created:** [April 11, 2022, 12:00pm UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865 "2022-04-11T12:00:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarek.gas](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tarek.gas](https://forums.developer.nvidia.com/u/tarek.gas)\
**Post date:** [April 11, 2022, 12:00pm UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/1 "2022-04-11T12:00:23Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson nano)**  
\*\*• DeepStream Version 6.0.1  
**• JetPack Version 4.6**  
**• TensorRT Version**  
**• NVIDIA GPU Driver Version (valid for GPU only)**  
**• Issue Type( questions)**  
**• How to reproduce the issue ? (I used vs code as well as IoT central to deploy DeepStream module from Azure Marketplace)**  
**• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)**

I created an IoT edge device that runs on my Jetson nano where I deployed a Deepstream module from Azure repository. The moule always fail to start and when I investigated the logs on Azure IoT hub it show the following error message:  
Error NvidiaDeepStreamSDK  
\*\* ERROR: \<create\_primary\_gie\_bin:107\>: Failed to create ‘primary\_gie\_classifier’  
\*\* ERROR: \<create\_primary\_gie\_bin:161\>: create\_primary\_gie\_bin failed  
\*\* ERROR: \<create\_pipeline:1045\>: create\_pipeline failed  
\*\* ERROR: main:1096: Failed to create pipeline  
Quitting  
App run failed

---

<div class="post-metadata">

**Author:** ![kesong](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kesong/32/101255_2.png) [@kesong](https://forums.developer.nvidia.com/u/kesong)\
**Post date:** [April 12, 2022, 10:33am UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/3 "2022-04-12T10:33:08Z")

</div>

Do you test with DS samples? Which sample do you run?

---

<div class="post-metadata">

**Author:** ![tarek.gas](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tarek.gas](https://forums.developer.nvidia.com/u/tarek.gas)\
**Post date:** [April 12, 2022, 11:39am UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/4 "2022-04-12T11:39:53Z")

</div>

Hi Kesong,

Actually I didn’t test any sample as the module didn’t start at all, but when I investigated the IoT Edge manifest file I found the following:  
“image”: “[Azure Container Registry | Microsoft Azure](http://marketplace.azurecr.io/nvidia/deepstream-iot2-l4t:latest)”,

```
                        "createOptions": "{\"Entrypoint\":[\"/usr/bin/deepstream-test5-app\",\"-c\",\"DSConfig.txt\"],\"HostConfig\":{\"runtime\":\"nvidia\",\"NetworkMode\":\"host\",\"Binds\":[\"/data/misc/storage:/data/misc/storage\"]},\"NetworkingConfig\":{\"EndpointsConfig\":{\"host\":{}}},\"WorkingDir\":\"/data/misc/storage\"}"

```

So I think the module runs the deepstream-test5-app when it starts

---

<div class="post-metadata">

**Author:** ![kesong](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kesong/32/101255_2.png) [@kesong](https://forums.developer.nvidia.com/u/kesong)\
**Post date:** [April 13, 2022, 11:08am UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/5 "2022-04-13T11:08:10Z")

</div>

Can you run DS test5 standalone application on your platform?

---

<div class="post-metadata">

**Author:** ![tarek.gas](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tarek.gas](https://forums.developer.nvidia.com/u/tarek.gas)\
**Post date:** [April 13, 2022, 12:22pm UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/6 "2022-04-13T12:22:18Z")

</div>

I just test the **deepstream-test5-app -c configs/test5\_config\_file\_src\_infer\_azure\_iotedge.txt**

and I got the error below:

(deepstream-test5-app:18405): GLib-CRITICAL \*\*: 13:37:47.108: g\_strrstr: assertion ‘haystack != NULL’ failed  
Error: Time:Wed Apr 13 13:37:47 2022 File:/home/nvidia/azure/azure-iot-sdk-c/iothub\_client/src/iothub\_client\_core\_ll.c Func:retrieve\_edge\_environment\_variabes Line:177 Environment IOTEDGE\_AUTHSCHEME not set  
Error: Time:Wed Apr 13 13:37:47 2022 File:/home/nvidia/azure/azure-iot-sdk-c/iothub\_client/src/iothub\_client\_core\_ll.c Func:IoTHubClientCore\_LL\_CreateFromEnvironment Line:1186 retrieve\_edge\_environment\_variabes failed  
Error: Time:Wed Apr 13 13:37:47 2022 File:/home/nvidia/azure/azure-iot-sdk-c/iothub\_client/src/iothub\_client\_core.c Func:create\_iothub\_instance Line:924 Failure creating iothub handle  
ERROR: iotHubModuleClientHandle is NULL! connect failed  
\*\* ERROR: main:1455: Failed to set pipeline to PAUSED  
Quitting  
ERROR from sink\_sub\_bin\_sink2: Could not configure supporting library.  
Debug info: /dvs/git/dirty/git-master\_linux/deepstream/sdk/src/gst-plugins/gst-nvmsgbroker/gstnvmsgbroker.cpp(402): legacy\_gst\_nvmsgbroker\_start (): /GstPipeline:pipeline/GstBin:sink\_sub\_bin2/GstNvMsgBroker:sink\_sub\_bin\_sink2:  
unable to connect to broker library  
ERROR from sink\_sub\_bin\_sink2: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.  
Debug info: gstbasesink.c(5265): gst\_base\_sink\_change\_state (): /GstPipeline:pipeline/GstBin:sink\_sub\_bin2/GstNvMsgBroker:sink\_sub\_bin\_sink2:  
Failed to start  
App run failed

Any clue on how to fix it?

---

<div class="post-metadata">

**Author:** ![Amycao](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/amycao/32/11342_2.png) [@Amycao](https://forums.developer.nvidia.com/u/Amycao)\
**Post date:** [April 18, 2022, 8:47am UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/8 "2022-04-18T08:47:06Z")

</div>

Did you set connection string properly?  
Please follow README under sources/libs/azure\_protocol\_adaptor/module\_client/ to setup the dependency.

---

<div class="post-metadata">

**Author:** ![tarek.gas](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tarek.gas](https://forums.developer.nvidia.com/u/tarek.gas)\
**Post date:** [April 19, 2022, 12:05pm UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/9 "2022-04-19T12:05:54Z")

</div>

I just set up the connection string and it’s working pretty fine. Thank you

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [May 10, 2022, 2:52am UTC](https://forums.developer.nvidia.com/t/deepstream-module-fails-with-azure-iotedge/210865/11 "2022-05-10T02:52:47Z")

</div>

Closed on May 10, 2022, 2:52am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
