Nvmsg-broker could not open shared library

• Hardware Platform GPU
• DeepStream Version 5.0
• TensorRT Version 7.0
• NVIDIA GPU Driver Version 440.59

So I have some code working on Jetson platform getting events and sending to Azure. I have taken this code and added it to the deepstream:5.0-dp-20.04-iot on a dGPU, and now i keeping getting the below error.

ERROR from element nvmsg-broker: Could not initialize supporting library.
Error details: gstnvmsgbroker.c(303): gst_nvmsgbroker_start (): /GstPipeline:nvdsanalytics-test-pipeline/GstNvMsgBroker:nvmsg-broker:
unable to open shared library

I am using the same /opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_azure_edge_proto.so and I can see the file. Sometimes the application will run but the detections are not send downstream.

Any help greatly appreciated

It is unable to open the library even from the test as per below:

opt/nvidia/deepstream/deepstream-5.0/sources/libs/azure_protocol_adaptor/device_client$ ./test_azure_proto_sync /opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_azure_proto.so 
unable to open shared library

Okay I was able to get the test_azure_proto_sync to work and can see the messages coming to iothub. But when I try and run deepstream-test4 i get the following:

Error: Time:Thu Jun  4 12:53:59 2020 File:/home/arg/azure/azure-iot-sdk-c/iothub_client/src/iothub_client_core_ll.c Func:IoTHubClientCore_LL_CreateFromConnectionString Line:939 Tokenizer error
Error: Time:Thu Jun  4 12:53:59 2020 File:/home/arg/azure/azure-iot-sdk-c/iothub_client/src/iothub_client_core_ll.c Func:IoTHubClientCore_LL_CreateFromConnectionString Line:1077 iotHubName is not found
Error: Time:Thu Jun  4 12:53:59 2020 File:/home/arg/azure/azure-iot-sdk-c/iothub_client/src/iothub_client_core.c Func:create_iothub_instance Line:924 Failure creating iothub handle
Running...

The Iot hub connection string is the same for both, even tried the same file location

Hi
Can you share the command you used to run test4?
and enable logging may provide some more information.

chmod u+x ~/deepstream_sdk_on_$ARCH/sources/tools/nvds_logger/setup_nvds_logger.sh
sudo ~/deepstream_sdk_on_$ARCH/sources/tools/nvds_logger/setup_nvds_logger.sh