Unable to connect to broker library in TX2

@Amycao Im getting the following error while running the deepstream kafka

%6|1626250700.321|FAIL|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 11ms in state APIVERSION_QUERY, 5 identical error(s) suppressed)
%3|1626250700.321|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
%3|1626250700.321|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 11ms in state APIVERSION_QUERY, 5 identical error(s) suppressed)

Did you get this error when run test4 app under virtual machine?

No this one I got while running deepstream-test4 in TX2

Where did you run with success? can you use the same software environments?

I’m using TX2 for the deepstream kafka test.The success was from TX2.

@Amycao
I have integrated kafka security protocol code in deepstream-test4 …
The following are the code which I have integrated in Main function after g_main_loo_run (loop);

rd_kafka_t *rk;         /* Producer instance handle */
  rd_kafka_conf_t *conf;  /* Temporary configuration object */
  char errstr[512];       /* librdkafka API error reporting buffer */
  char buf[512];          /* Message value temporary buffer */
  // const char *brokers;    /* Argument: broker list */
  // const char *topic;      /* Argument: topic to produce to */

  conf = rd_kafka_conf_new();
  rd_kafka_conf_set(conf, "security.protocol", "sasl_ssl", errstr, sizeof(errstr));
  rd_kafka_conf_set(conf, "sasl.mechanism", "PLAIN", errstr, sizeof(errstr));
  rd_kafka_conf_set(conf, "sasl.username", "xxxxxxxxx", errstr, sizeof(errstr));
  rd_kafka_conf_set(conf, "sasl.password", "xxxxxxxxx", errstr, sizeof(errstr));
  rd_kafka_conf_set(conf, "ssl.ca.location", "path for kismet kafka certificate", errstr, sizeof(errstr));


  while (run && fgets(buf, sizeof(buf), stdin)) {
    
    size_t len = strlen(buf);
    rd_kafka_resp_err_t err;

    if (buf[len-1] == '\n') /* Remove newline */
            buf[--len] = '\0';

    if (len == 0) {
            /* Empty line: only serve delivery reports */
            rd_kafka_poll(rk, 0/*non-blocking */);
            continue;
    }

 
retry:
    err = rd_kafka_producev(
            /* Producer handle */
            rk,
            /* Topic name */
            RD_KAFKA_V_TOPIC(topic),
            /* Make a copy of the payload. */
            RD_KAFKA_V_MSGFLAGS(RD_KAFKA_MSG_F_COPY),
            /* Message value and length */
            RD_KAFKA_V_VALUE(buf, len),
            /* Per-Message opaque, provided in
              * delivery report callback as
              * msg_opaque. */
            RD_KAFKA_V_OPAQUE(NULL),
            /* End sentinel */
            RD_KAFKA_V_END);

    if (err) {
            /*
              * Failed to *enqueue* message for producing.
              */
            fprintf(stderr,
                    "%% Failed to produce to topic %s: %s\n",
                    topic, rd_kafka_err2str(err));

            if (err == RD_KAFKA_RESP_ERR__QUEUE_FULL) {
                    rd_kafka_poll(rk, 1000/*block for max 1000ms*/);
                    goto retry;
            }
    } else {
            fprintf(stderr, "%% Enqueued message (%zd bytes) "
                    "for topic %s\n",
                    len, topic);
    }

My doubt is the code which I have added for security protocol is correct or not

From the code you pasted, you implement kafka client side message produce and send , we have nvmsgbroker which have implemented these functions, if you want TLS/SSL security enabled, you can do like below marked with bold fonts:

Build dependencies with installation instructions:

  • librdkafka
    Note that for using TLS/SSL security, make sure to build librdkafka with
    SSL suport enabled by using the enable_ssl option while running
    ‘configure’, as shown below.

    git clone GitHub - edenhill/librdkafka: The Apache Kafka C/C++ library
    cd librdkafka
    git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a
    ./configure --enable-ssl
    make
    sudo make install
    sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream/lib/
    sudo ldconfig

To learn more about security for Kafka, see
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_IoT.html#secure-edge-cloud-label

@Amycao To test in localhost I have tried the security protocol in VM
The following is the output came after I did as you mentioned in previous comment

 ./deepstream-test4-app -i ../../../../samples/streams/rajesh_face2.264 -p /opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_kafka_proto.so --conn-str=localhost:9092 --topic=cropped_images --no-display       
(gst-plugin-scanner:8206): GStreamer-WARNING **: 19:30:01.433: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory
Now playing: ../../../../samples/streams/rajesh_face2.264
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

Same I did in TX2 with Public IP the following are the results

./deepstream-test4-app -i ../../../../samples/streams/rajesh_face2.264  -p ../../../../../deepstream-5.1/lib/libnvds_kafka_proto.so  --conn-str="iotk0.gluecktech.com;7200" --topic=cropped_images --no-display
Now playing: ../../../../samples/streams/rajesh_face2.264
%6|1626349256.807|FAIL|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 8ms in state APIVERSION_QUERY)
%3|1626349256.807|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
Opening in BLOCKING MODE
Opening in BLOCKING MODE 
%6|1626349257.019|FAIL|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 8ms in state APIVERSION_QUERY, 1 identical error(s) suppressed)
%3|1626349257.019|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
%3|1626349258.222|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
ERROR: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test4/../../../../samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine open error
0:00:02.910769665 10796   0x55a7221150 WARN                 nvinfer gstnvinfer.cpp:616:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1691> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test4/../../../../samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed
0:00:02.910899330 10796   0x55a7221150 WARN                 nvinfer gstnvinfer.cpp:616:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1798> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test4/../../../../samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed, try rebuild
0:00:02.910942242 10796   0x55a7221150 INFO                 nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1716> [UID = 1]: Trying to create engine from model files
WARNING: INT8 not supported by platform. Trying FP16 mode.
%3|1626349260.676|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
INFO: [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.
%3|1626349270.704|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
%3|1626349278.776|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
INFO: [TRT]: Detected 1 inputs and 2 output network tensors.
0:00:24.209278861 10796   0x55a7221150 INFO                 nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1749> [UID = 1]: serialize cuda engine to file: /opt/nvidia/deepstream/deepstream-5.1/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_fp16.engine successfully
INFO: [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x368x640       
1   OUTPUT kFLOAT conv2d_bbox     16x23x40        
2   OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40         

0:00:24.345552134 10796   0x55a7221150 INFO                 nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary-nvinference-engine> [UID 1]: Load new model:dstest4_pgie_config.txt sucessfully
Running...
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
Frame Number = 0 Vehicle Count = 0 Person Count = 0
Frame Number = 1 Vehicle Count = 0 Person Count = 0
%3|1626349281.034|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 8ms in state APIVERSION_QUERY)
%3|1626349281.034|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 8ms in state APIVERSION_QUERY, 1 identical error(s) suppressed)
Frame Number = 2 Vehicle Count = 0 Person Count = 0
Frame Number = 3 Vehicle Count = 0 Person Count = 0
Frame Number = 4 Vehicle Count = 0 Person Count = 0
Frame Number = 5 Vehicle Count = 0 Person Count = 0
Frame Number = 6 Vehicle Count = 0 Person Count = 1
Frame Number = 7 Vehicle Count = 0 Person Count = 0
Frame Number = 8 Vehicle Count = 0 Person Count = 0
Frame Number = 9 Vehicle Count = 0 Person Count = 1
Frame Number = 10 Vehicle Count = 0 Person Count = 1
Frame Number = 11 Vehicle Count = 0 Person Count = 1
Frame Number = 12 Vehicle Count = 0 Person Count = 0
Frame Number = 13 Vehicle Count = 0 Person Count = 0
Frame Number = 14 Vehicle Count = 0 Person Count = 0
Frame Number = 15 Vehicle Count = 0 Person Count = 1
Frame Number = 16 Vehicle Count = 0 Person Count = 1
Frame Number = 17 Vehicle Count = 0 Person Count = 0
Frame Number = 18 Vehicle Count = 0 Person Count = 1
Frame Number = 19 Vehicle Count = 0 Person Count = 1
Frame Number = 20 Vehicle Count = 0 Person Count = 1
Frame Number = 21 Vehicle Count = 0 Person Count = 0
Frame Number = 22 Vehicle Count = 0 Person Count = 0
Frame Number = 23 Vehicle Count = 0 Person Count = 1
Frame Number = 24 Vehicle Count = 0 Person Count = 1
Frame Number = 25 Vehicle Count = 0 Person Count = 1
Frame Number = 26 Vehicle Count = 0 Person Count = 1
Frame Number = 27 Vehicle Count = 0 Person Count = 0
Frame Number = 28 Vehicle Count = 0 Person Count = 0
Frame Number = 29 Vehicle Count = 0 Person Count = 0
Frame Number = 30 Vehicle Count = 0 Person Count = 0
Frame Number = 31 Vehicle Count = 0 Person Count = 0
Frame Number = 32 Vehicle Count = 0 Person Count = 0
Frame Number = 33 Vehicle Count = 0 Person Count = 0
Frame Number = 34 Vehicle Count = 0 Person Count = 0
Frame Number = 35 Vehicle Count = 0 Person Count = 0
Frame Number = 36 Vehicle Count = 0 Person Count = 0
Frame Number = 37 Vehicle Count = 0 Person Count = 0
Frame Number = 38 Vehicle Count = 0 Person Count = 0
Frame Number = 39 Vehicle Count = 0 Person Count = 0
Frame Number = 40 Vehicle Count = 0 Person Count = 0
Frame Number = 41 Vehicle Count = 0 Person Count = 0
Frame Number = 42 Vehicle Count = 0 Person Count = 0
Frame Number = 43 Vehicle Count = 0 Person Count = 0
Frame Number = 44 Vehicle Count = 0 Person Count = 0
Frame Number = 45 Vehicle Count = 0 Person Count = 0
Frame Number = 46 Vehicle Count = 0 Person Count = 0
Frame Number = 47 Vehicle Count = 0 Person Count = 0
Frame Number = 48 Vehicle Count = 0 Person Count = 0
Frame Number = 49 Vehicle Count = 0 Person Count = 0
Frame Number = 50 Vehicle Count = 0 Person Count = 0
Frame Number = 51 Vehicle Count = 0 Person Count = 0
Frame Number = 52 Vehicle Count = 0 Person Count = 1
Frame Number = 53 Vehicle Count = 0 Person Count = 1
Frame Number = 54 Vehicle Count = 0 Person Count = 1
Frame Number = 55 Vehicle Count = 0 Person Count = 0
Frame Number = 56 Vehicle Count = 0 Person Count = 0
Frame Number = 57 Vehicle Count = 0 Person Count = 0
Frame Number = 58 Vehicle Count = 0 Person Count = 0
Frame Number = 59 Vehicle Count = 0 Person Count = 0
Frame Number = 60 Vehicle Count = 0 Person Count = 0
Frame Number = 61 Vehicle Count = 0 Person Count = 0
Frame Number = 62 Vehicle Count = 0 Person Count = 0
Frame Number = 63 Vehicle Count = 0 Person Count = 0
Frame Number = 64 Vehicle Count = 0 Person Count = 0
Frame Number = 65 Vehicle Count = 0 Person Count = 0
Frame Number = 66 Vehicle Count = 0 Person Count = 1
Frame Number = 67 Vehicle Count = 0 Person Count = 0
Frame Number = 68 Vehicle Count = 0 Person Count = 0
Frame Number = 69 Vehicle Count = 0 Person Count = 0
Frame Number = 70 Vehicle Count = 0 Person Count = 0
Frame Number = 71 Vehicle Count = 0 Person Count = 0
Frame Number = 72 Vehicle Count = 0 Person Count = 0
Frame Number = 73 Vehicle Count = 0 Person Count = 1
Frame Number = 74 Vehicle Count = 0 Person Count = 0
Frame Number = 75 Vehicle Count = 0 Person Count = 0
Frame Number = 76 Vehicle Count = 0 Person Count = 0
Frame Number = 77 Vehicle Count = 0 Person Count = 0
Frame Number = 78 Vehicle Count = 0 Person Count = 0
Frame Number = 79 Vehicle Count = 0 Person Count = 0
Frame Number = 80 Vehicle Count = 0 Person Count = 0
Frame Number = 81 Vehicle Count = 0 Person Count = 0
Frame Number = 82 Vehicle Count = 0 Person Count = 0
Frame Number = 83 Vehicle Count = 0 Person Count = 0
Frame Number = 84 Vehicle Count = 0 Person Count = 0
Frame Number = 85 Vehicle Count = 0 Person Count = 0
Frame Number = 86 Vehicle Count = 0 Person Count = 0
Frame Number = 87 Vehicle Count = 0 Person Count = 0
Frame Number = 88 Vehicle Count = 0 Person Count = 0
Frame Number = 89 Vehicle Count = 0 Person Count = 0
Frame Number = 90 Vehicle Count = 0 Person Count = 0
Frame Number = 91 Vehicle Count = 0 Person Count = 0
Frame Number = 92 Vehicle Count = 0 Person Count = 0
Frame Number = 93 Vehicle Count = 0 Person Count = 0
Frame Number = 94 Vehicle Count = 0 Person Count = 0
Frame Number = 95 Vehicle Count = 0 Person Count = 0
Frame Number = 96 Vehicle Count = 0 Person Count = 0
Frame Number = 97 Vehicle Count = 0 Person Count = 0
Frame Number = 98 Vehicle Count = 0 Person Count = 0
Frame Number = 99 Vehicle Count = 0 Person Count = 0
Frame Number = 100 Vehicle Count = 0 Person Count = 0
Frame Number = 101 Vehicle Count = 0 Person Count = 0
Frame Number = 102 Vehicle Count = 0 Person Count = 0
Frame Number = 103 Vehicle Count = 0 Person Count = 0
Frame Number = 104 Vehicle Count = 0 Person Count = 0
Frame Number = 105 Vehicle Count = 0 Person Count = 0
Frame Number = 106 Vehicle Count = 0 Person Count = 0
Frame Number = 107 Vehicle Count = 0 Person Count = 0
Frame Number = 108 Vehicle Count = 0 Person Count = 0
Frame Number = 109 Vehicle Count = 0 Person Count = 0
Frame Number = 110 Vehicle Count = 0 Person Count = 0
Frame Number = 111 Vehicle Count = 0 Person Count = 0
Frame Number = 112 Vehicle Count = 0 Person Count = 0
Frame Number = 113 Vehicle Count = 0 Person Count = 0
Frame Number = 114 Vehicle Count = 0 Person Count = 0
Frame Number = 115 Vehicle Count = 0 Person Count = 0
Frame Number = 116 Vehicle Count = 0 Person Count = 0
Frame Number = 117 Vehicle Count = 0 Person Count = 0
Frame Number = 118 Vehicle Count = 0 Person Count = 0
Frame Number = 119 Vehicle Count = 0 Person Count = 0
Frame Number = 120 Vehicle Count = 0 Person Count = 1
Frame Number = 121 Vehicle Count = 0 Person Count = 0
Frame Number = 122 Vehicle Count = 0 Person Count = 0
Frame Number = 123 Vehicle Count = 0 Person Count = 1
Frame Number = 124 Vehicle Count = 0 Person Count = 1
Frame Number = 125 Vehicle Count = 0 Person Count = 1
Frame Number = 126 Vehicle Count = 0 Person Count = 1
Frame Number = 127 Vehicle Count = 0 Person Count = 1
Frame Number = 128 Vehicle Count = 0 Person Count = 0
Frame Number = 129 Vehicle Count = 0 Person Count = 0
Frame Number = 130 Vehicle Count = 0 Person Count = 1
Frame Number = 131 Vehicle Count = 0 Person Count = 0
Frame Number = 132 Vehicle Count = 0 Person Count = 0
Frame Number = 133 Vehicle Count = 0 Person Count = 1
Frame Number = 134 Vehicle Count = 0 Person Count = 1
Frame Number = 135 Vehicle Count = 0 Person Count = 1
Frame Number = 136 Vehicle Count = 0 Person Count = 0
Frame Number = 137 Vehicle Count = 0 Person Count = 1
Frame Number = 138 Vehicle Count = 0 Person Count = 1
Frame Number = 139 Vehicle Count = 0 Person Count = 1
Frame Number = 140 Vehicle Count = 0 Person Count = 0
Frame Number = 141 Vehicle Count = 0 Person Count = 0
Frame Number = 142 Vehicle Count = 0 Person Count = 1
Frame Number = 143 Vehicle Count = 0 Person Count = 1
Frame Number = 144 Vehicle Count = 0 Person Count = 1
Frame Number = 145 Vehicle Count = 0 Person Count = 0
Frame Number = 146 Vehicle Count = 0 Person Count = 1
Frame Number = 147 Vehicle Count = 0 Person Count = 0
Frame Number = 148 Vehicle Count = 0 Person Count = 0
Frame Number = 149 Vehicle Count = 0 Person Count = 1
Frame Number = 150 Vehicle Count = 0 Person Count = 1
Frame Number = 151 Vehicle Count = 0 Person Count = 0
Frame Number = 152 Vehicle Count = 0 Person Count = 0
Frame Number = 153 Vehicle Count = 0 Person Count = 0
Frame Number = 154 Vehicle Count = 0 Person Count = 0
Frame Number = 155 Vehicle Count = 0 Person Count = 0
Frame Number = 156 Vehicle Count = 0 Person Count = 0
Frame Number = 157 Vehicle Count = 0 Person Count = 0
Frame Number = 158 Vehicle Count = 0 Person Count = 0
Frame Number = 159 Vehicle Count = 0 Person Count = 0
Frame Number = 160 Vehicle Count = 0 Person Count = 0
Frame Number = 161 Vehicle Count = 0 Person Count = 0
Frame Number = 162 Vehicle Count = 0 Person Count = 0
Frame Number = 163 Vehicle Count = 0 Person Count = 1
Frame Number = 164 Vehicle Count = 0 Person Count = 1
Frame Number = 165 Vehicle Count = 0 Person Count = 1
Frame Number = 166 Vehicle Count = 0 Person Count = 1
Frame Number = 167 Vehicle Count = 0 Person Count = 1
Frame Number = 168 Vehicle Count = 0 Person Count = 0
Frame Number = 169 Vehicle Count = 0 Person Count = 0
Frame Number = 170 Vehicle Count = 0 Person Count = 0
Frame Number = 171 Vehicle Count = 0 Person Count = 0
Frame Number = 172 Vehicle Count = 0 Person Count = 0
Frame Number = 173 Vehicle Count = 0 Person Count = 0
Frame Number = 174 Vehicle Count = 0 Person Count = 0
Frame Number = 175 Vehicle Count = 0 Person Count = 0
Frame Number = 176 Vehicle Count = 0 Person Count = 0
Frame Number = 177 Vehicle Count = 0 Person Count = 0
Frame Number = 178 Vehicle Count = 0 Person Count = 0
Frame Number = 179 Vehicle Count = 0 Person Count = 0
Frame Number = 180 Vehicle Count = 0 Person Count = 0
Frame Number = 181 Vehicle Count = 0 Person Count = 0
Frame Number = 182 Vehicle Count = 0 Person Count = 0
Frame Number = 183 Vehicle Count = 0 Person Count = 0
Frame Number = 184 Vehicle Count = 0 Person Count = 0
Frame Number = 185 Vehicle Count = 0 Person Count = 0
Frame Number = 186 Vehicle Count = 0 Person Count = 0
Frame Number = 187 Vehicle Count = 0 Person Count = 0
Frame Number = 188 Vehicle Count = 0 Person Count = 0
Frame Number = 189 Vehicle Count = 0 Person Count = 0
Frame Number = 190 Vehicle Count = 0 Person Count = 1
Frame Number = 191 Vehicle Count = 0 Person Count = 1
Frame Number = 192 Vehicle Count = 0 Person Count = 1
Frame Number = 193 Vehicle Count = 0 Person Count = 1
Frame Number = 194 Vehicle Count = 0 Person Count = 1
Frame Number = 195 Vehicle Count = 0 Person Count = 1
Frame Number = 196 Vehicle Count = 0 Person Count = 1
Frame Number = 197 Vehicle Count = 0 Person Count = 1
Frame Number = 198 Vehicle Count = 0 Person Count = 0
Frame Number = 199 Vehicle Count = 0 Person Count = 0
Frame Number = 200 Vehicle Count = 0 Person Count = 0
Frame Number = 201 Vehicle Count = 0 Person Count = 0
Frame Number = 202 Vehicle Count = 0 Person Count = 0
Frame Number = 203 Vehicle Count = 0 Person Count = 0
Frame Number = 204 Vehicle Count = 0 Person Count = 0
Frame Number = 205 Vehicle Count = 0 Person Count = 0
Frame Number = 206 Vehicle Count = 0 Person Count = 0
Frame Number = 207 Vehicle Count = 0 Person Count = 0
Frame Number = 208 Vehicle Count = 0 Person Count = 0
Frame Number = 209 Vehicle Count = 0 Person Count = 0
Frame Number = 210 Vehicle Count = 0 Person Count = 0
Frame Number = 211 Vehicle Count = 0 Person Count = 0
Frame Number = 212 Vehicle Count = 0 Person Count = 0
Frame Number = 213 Vehicle Count = 0 Person Count = 0
Frame Number = 214 Vehicle Count = 0 Person Count = 0
Frame Number = 215 Vehicle Count = 0 Person Count = 0
Frame Number = 216 Vehicle Count = 0 Person Count = 0
Frame Number = 217 Vehicle Count = 0 Person Count = 0
Frame Number = 218 Vehicle Count = 0 Person Count = 0
Frame Number = 219 Vehicle Count = 0 Person Count = 0
Frame Number = 220 Vehicle Count = 0 Person Count = 0
Frame Number = 221 Vehicle Count = 0 Person Count = 1
Frame Number = 222 Vehicle Count = 0 Person Count = 0
Frame Number = 223 Vehicle Count = 0 Person Count = 0
Frame Number = 224 Vehicle Count = 0 Person Count = 1
Frame Number = 225 Vehicle Count = 0 Person Count = 1
Frame Number = 226 Vehicle Count = 0 Person Count = 1
Frame Number = 227 Vehicle Count = 0 Person Count = 0
Frame Number = 228 Vehicle Count = 0 Person Count = 0
Frame Number = 229 Vehicle Count = 0 Person Count = 0
Frame Number = 230 Vehicle Count = 0 Person Count = 0
Frame Number = 231 Vehicle Count = 0 Person Count = 1
Frame Number = 232 Vehicle Count = 0 Person Count = 0
Frame Number = 233 Vehicle Count = 0 Person Count = 0
Frame Number = 234 Vehicle Count = 0 Person Count = 0
Frame Number = 235 Vehicle Count = 0 Person Count = 0
%6|1626349288.792|FAIL|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 9ms in state APIVERSION_QUERY, 5 identical error(s) suppressed)
%3|1626349288.792|ERROR|rdkafka#producer-1| [thrd:iotk0.gluecktech.com:7200/bootstrap]: 1/1 brokers are down
%3|1626349288.796|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 9ms in state APIVERSION_QUERY, 5 identical error(s) suppressed)

As stated before, please enable logging to get the log.
I see you use connection string iotk0.gluecktech.com;7200 on VM before, also get this error. can you try again with IP where the broker run on?

For the error, did you use original test4 sample?
%3|1626349281.034|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: iotk0.gluecktech.com:7200/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 8ms in state APIVERSION_QUERY)

Now I will enable log and test with local IP and Public IP

Im using deepstream-test4 app for testing Kafka

I have tested the application in VM using deepstream-test4. I have attached the log file here
ds.log (30.3 KB)

@Amycao I have attached the log file after testing in VM can you please help on this

Jul 16 13:18:12 glueck-virtual-machine deepstream-test4-app: DSLOG:NVDS_KAFKA_PROTO: Kafka connection string is invalid. hostname or port is empty
Jul 16 13:21:30 glueck-virtual-machine deepstream-test4-app: DSLOG:NVDS_KAFKA_PROTO: Kafka connection string is invalid. hostname or port is empty
Jul 16 13:27:24 glueck-virtual-machine deepstream-test4-app: DSLOG:NVDS_KAFKA_PROTO: Kafka connection successful
Jul 16 13:28:20 glueck-virtual-machine deepstream-test4-app: DSLOG:NVDS_KAFKA_PROTO: nvds_msgapi_send_async: payload={#012 “messageid” : “92b70d3e-c5cf-4af1-90ce-30cfce1879f7”,#012 “mdsversion” : “1.0”,#012@timestamp” : “2021-07-16T05:28:19.685Z”,#012 “place” : {#012 “id” : “1”,#012 “name” : “XYZ”,#012 “type” : “garage”,#012 “location” : {#012 “lat” : 30.32,#012 “lon” : -40.549999999999997,#012 “alt” : 100.0#012 },#012 “aisle” : {#012 “id” : “walsh”,#012 “name” : “lane1”,#012 “level” : “P2”,#012 “coordinate” : {#012 “x” : 1.0,#012 “y” : 2.0,#012 “z” : 3.0#012 }#012 }#012 },#012 “sensor” : {#012 “id” : “CAMERA_ID”,#012 “type” : “Camera”,#012 “description” : “"Entrance of Garage Right Lane"”,#012 “location” : {#012 “lat” : 45.293701446999997,#012 “lon” : -75.830391449900006,#012 “alt” : 48.155747933800001#012 },#012 “coordinate” : {#012 “x” : 5.2000000000000002,#012 “y” : 10.1,#012 “z” : 11.199999999999999#012 }#012 },#012 “analyticsModule” : {#012 “id” : “XYZ”,#012 “description” : “"Vehicle Detection and License Plate Recognition"”,#012 “source” : “OpenALR”,#012 “version” : “1.0”#012 },#012 “object” : {#012 “id” : “-1”,#012 “speed” : 0.0,#012 “direction” : 0.0,#012 “orientation” : 0.0,#012 “vehicle” : {#012 “type” : “”,#012 “make” : “”,#012 “model” : “”,#012 “color” : “”,#012 “licenseState” : “”,#012 “license” : “”,#012 “confidence” : 1.0#012 },#012 “bbox” : {#012 “topleftx” : 579,#012 “toplefty” : 328,#012 “bottomrightx” : 618,#012 “bottomrighty” : 393#012 },#012 “location” : {#012 “lat” : 0.0,#012 “lon” : 0.0,#012 “alt” : 0.0#012 },#012 “coordinate” : {#012 “x” : 0.0,#012 “y” : 0.0,#012 “z” : 0.0#012 }#012 },#012 “event” : {#012 “id” : “a0e83f71-a1f9-41f2-9d5b-05e1b5b9ebd4”,#012 “type” : “entry”#012 },#012 “videoPath” : “”#012} #012 topic = cropped_images
Jul 16 13:28:21 glueck-virtual-machine deepstream-test4-app: DSLOG:NVDS_KAFKA_PROTO: nvds_msgapi_do_work
From your log, the first 2 line suggests connection string is invalid. from the third line, the connection is ok. please use the connection string from third line used.

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