Redis error Deepstream 7.1

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 7.1 docker container gc tritin dev
• JetPack Version (valid for Jetson only)
• TensorRT Version 10.3.0.26-1+cuda12.5
• NVIDIA GPU Driver Version (valid for GPU only) 570.124.06
• Issue Type( questions, new requirements, bugs) unable to run test4 sample deepstream
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing) ./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-7.1/samples/streams/sample_720p.h264 -c cfg_redis.txt -p /opt/nvidia/deepstream/deepstream-7.1/lib/libnvds_redis_proto.so
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

cfg_redis.txt
[message-broker]
hostname=127.0.0.1
port=6379
#password=password
streamsize=10000
#payloadkey=metadata
#consumergroup=mygroup
#consumername=myname
#share-connection = 1
topic=deepstream_analytics
proto-lib=/opt/nvidia/deepstream/deepstream-7.1/lib/libnvds_redis_proto.so

error:
root@neo-Katana-17-B12VGK:/opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-test4# ./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-7.1/samples/streams/sample_720p.h264 -c cfg_redis.txt -p /opt/nvidia/deepstream/deepstream-7.1/lib/libnvds_redis_proto.so
0:00:00.035804699 472636 0x5cd8c67341e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:247:gst_nvmsgbroker_set_property: set_property
0:00:00.035848548 472636 0x5cd8c67341e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:247:gst_nvmsgbroker_set_property: set_property
0:00:00.035856781 472636 0x5cd8c67341e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:247:gst_nvmsgbroker_set_property: set_property
Now playing: /opt/nvidia/deepstream/deepstream-7.1/samples/streams/sample_720p.h264
0:00:00.202580087 472636 0x5cd8c67341e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:386:legacy_gst_nvmsgbroker_start: start

(deepstream-test4-app:472636): GLib-CRITICAL **: 15:50:48.353: g_strrstr: assertion ‘haystack != NULL’ failed
Failed to query video capabilities: Invalid argument
0:00:00.233985648 472636 0x5cd8c67341e0 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-7.1/samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine
Implicit layer support has been deprecated
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:327 [Implicit Engine Info]: layers num: 0

0:00:00.234052572 472636 0x5cd8c67341e0 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-7.1/samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine
0:00:00.243828829 472636 0x5cd8c67341e0 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus: [UID 1]: Load new model:dstest4_pgie_config.txt sucessfully
Running…

(deepstream-test4-app:472636): GStreamer-CRITICAL **: 15:50:48.397: gst_debug_log_valist: assertion ‘category != NULL’ failed

(deepstream-test4-app:472636): GStreamer-CRITICAL **: 15:50:48.397: gst_debug_log_valist: assertion ‘category != NULL’ failed

(deepstream-test4-app:472636): GStreamer-CRITICAL **: 15:50:48.397: gst_debug_log_valist: assertion ‘category != NULL’ failed

(deepstream-test4-app:472636): GStreamer-CRITICAL **: 15:50:48.397: gst_debug_log_valist: assertion ‘category != NULL’ failed
mimetype is video/x-raw
0:00:00.353460933 472636 0x71ea8c0010e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:356:gst_nvmsgbroker_set_caps: set_caps
Frame Number = 0 Vehicle Count = 9 Person Count = 6
Frame Number = 1 Vehicle Count = 13 Person Count = 7
Frame Number = 2 Vehicle Count = 10 Person Count = 5
Frame Number = 3 Vehicle Count = 11 Person Count = 6
0:00:00.534793154 472636 0x71ea8c0010e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:513:legacy_gst_nvmsgbroker_render: render
0:00:00.534921233 472636 0x71ea8c0010e0 WARN nvmsgbroker gstnvmsgbroker.cpp:559:legacy_gst_nvmsgbroker_render: error: failed to send the message. err(1)
ERROR from element nvmsg-broker: GStreamer encountered a general supporting library error.
Error details: gstnvmsgbroker.cpp(559): legacy_gst_nvmsgbroker_render (): /GstPipeline:dstest4-pipeline/GstNvMsgBroker:nvmsg-broker:
failed to send the message. err(1)
Returned, stopping playback
0:00:00.623001519 472636 0x5cd8c67341e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:468:legacy_gst_nvmsgbroker_stop: stop
Deleting pipeline
0:00:00.774269633 472636 0x5cd8c67341e0 DEBUG nvmsgbroker gstnvmsgbroker.cpp:331:gst_nvmsgbroker_finalize: finalize

the command-line is not correct. please refer to the readme of test4. you can try the following two cmd.

$ ./deepstream-test4-app -i <H264 filename> -p <Proto adaptor library> --conn-str=<Connection string> --topic=<topicname> -s <0/1>
$ ./deepstream-test4-app dstest4_config.yml

i tried both

./deepstream-test4-app dstest4_config.yml

msg2p_meta = 0
Using file: dstest4_config.yml
Running…
ERROR from element nvmsg-broker: Could not configure supporting library.
Error details: gstnvmsgbroker.cpp(437): legacy_gst_nvmsgbroker_start (): /GstPipeline:dstest4-pipeline/GstNvMsgBroker:nvmsg-broker:
unable to connect to broker library
Returned, stopping playback
Deleting pipeline

  1. could you share the dstest4_config.yml? you need to set the custom configuration for msgbroker.
  2. from the “unable to connect to broker library”, seems the client can’t connect to the server. you can use the tool in /opt/nvidia/deepstream/deepstream/sources/libs/redis_protocol_adaptor/ to test the client library. please refer to the readme under the directory.