Error details: gstnvmsgbroker.c(388): legacy_gst_nvmsgbroker_start ():

Hi, I am trying to run deepstream-test4 from docker I am getting the error
here is the command I ran

root@e974ef231591:/opt/nvidia/deepstream/deepstream-5.0/sources/apps/sample_ap
ps/deepstream-test4# ./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 -p /opt/nvidia/deepstream/deepstream/lib/libnvds_kafka_proto.so --no-display -s 0 -c cfg_kafka.txt --conn-str = “localhost;9092;quickstart-events -topic=quickstart-events”

Here is the output

Now playing: /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4
Running…
ERROR from element nvmsg-broker: Could not configure supporting library.
Error details: gstnvmsgbroker.c(388): legacy_gst_nvmsgbroker_start (): /GstPipeline:dstest4-pipeline/GstNvMsgBroker:nvmsg-broker:
unable to connect to broker library
Returned, stopping playback
Deleting pipeline

Docker image.
docker pull nvcr.io/nvidia/deepstream:5.0.1-20.09-triton

Docker start command
docker run --gpus all -it image-id

Even followed this Apache Kafka but still the same issue.

• Hardware Platform (T4 GPU Docker)
• DeepStream Version Deepstream-5.0
• NVIDIA GPU Driver Version (NVIDIA-SMI 455.23.05)
• Issue Type(questions)

Can you add “–net=host --ipc=host” to docker run command?

When I am sending the message from deepstream docker by running

bin/kafka-console-producer.sh --topic quickstart-events --bootstrap-server localhost:9092

I am receiving it.

kafka connection string format: host;port

@Amycao @kayccc @Fiona.Chen thanks for the reply but still same issue when I ran the command.

./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 -p /opt/nvidia/deepstream/deepstream/lib/libnvds_kafka_proto.so --no-display -s 0 -c cfg_kafka.txt --conn-str = “kafka;9092;USER_CREATED_TOPIC -topic=USER_CREATED_TOPIC”

this is the output

Now playing: /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4
Running…
ERROR from element nvmsg-broker: Could not configure supporting library.
Error details: gstnvmsgbroker.c(388): legacy_gst_nvmsgbroker_start (): /GstPipeline:dstest4-pipeline/GstNvMsgBroker:nvmsg-broker:
unable to connect to broker library
Returned, stopping playback
Deleting pipeline

I tried this

./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 -p /opt/nvidia/deepstream/deepstream/lib/libnvds_kafka_proto.so --no-display -s 0 -c cfg_kafka.txt --conn-str = “kafka;9092;USER_CREATED_TOPIC”

this is the output

Now playing: /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4
Running…
ERROR from element nvmsg-broker: Could not configure supporting library.
Error details: gstnvmsgbroker.c(388): legacy_gst_nvmsgbroker_start (): /GstPipeline:dstest4-pipeline/GstNvMsgBroker:nvmsg-broker:
unable to connect to broker library
Returned, stopping playback
Deleting pipeline

I even tried this

./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 -p /opt/nvidia/deepstream/deepstream/lib/libnvds_kafka_proto.so --no-display -s 0 -c cfg_kafka.txt --conn-str = “kafka;9092”

this is the output

Now playing: /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4
Running…
ERROR from element nvmsg-broker: Could not configure supporting library.
Error details: gstnvmsgbroker.c(388): legacy_gst_nvmsgbroker_start (): /GstPipeline:dstest4-pipeline/GstNvMsgBroker:nvmsg-broker:
unable to connect to broker library
Returned, stopping playback
Deleting pipeline

but when I am sending a message through Kafka I am receiving a reply
this is how I am testing the kafa

bin/kafka-console-producer.sh --topic USER_CREATED_TOPIC --bootstrap-server kafka:9092

./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 -p /opt/nvidia/deepstream/deepstream/lib/libnvds_kafka_proto.so --no-display -s 0 -c cfg_kafka.txt --conn-str = “IP;9092” -t “topic name”

when I ran that command same output

When run within docker, you should use docker assigned IP.

docker0 Link encap:Ethernet HWaddr ***
inet addr:172.17.0.1 Bcast:172.17.255.255 Mask:255.255.0.0