Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection

• Hardware Platform : A100
• DeepStream Version 5.1
• NVIDIA GPU Driver Version (valid for GPU only) 460

Have seen these two logs below, when used rtsp camera deployed on the same network.

Starting pipeline
0:00:17.046720481 39655 0x2e99ca0 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<secondary1-nvinference-engine> NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1702> [UID = 2]: deserialized trt engine from :/app/model/Secondary_CarColor/resnet18.caffemodel_b16_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:685 [Implicit Engine Info]: layers num: 2
0 INPUT kFLOAT input_1 3x224x224
1 OUTPUT kFLOAT predictions/Softmax 12x1x1
0:00:17.057234028 39655 0x2e99ca0 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<secondary1-nvinference-engine> NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1806> [UID = 2]: Use deserialized engine model: /app/model/Secondary_CarColor/resnet18.caffemodel_b16_gpu0_int8.engine
0:00:17.080750611 39655 0x2e99ca0 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<secondary1-nvinference-engine> [UID 2]: Load new model:config/Vehicle/PoC_sgie1_config.txt sucessfully
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_mot_klt.so
gstnvtracker: Optional NvMOT_RemoveStreams not implemented
gstnvtracker: Batch processing is OFF
gstnvtracker: Past frame output is OFF
0:00:17.181690013 39655 0x2e99ca0 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1702> [UID = 1]: deserialized trt engine from :/app/model/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:685 [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:17.181823236 39655 0x2e99ca0 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1806> [UID = 1]: Use deserialized engine model: /app/model/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
0:00:17.183529523 39655 0x2e99ca0 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:config/Vehicle/PoC_pgie_config.txt sucessfully
Decodebin child added: source
Warning: gst-resource-error-quark: Could not read from resource. (9): gstrtspsrc.c(5427): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.

and

Decodebin child added: sourceWarning: gst-resource-error-quark: Could not read from resource. (9): gstrtspsrc.c(5280): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
The server closed the connection.
Decodebin child added: decodebin0Decodebin child added: rtph264depay0Decodebin child added: h264parse0Decodebin child added: capsfilter0Error: gst-stream-error-quark: GStreamer encountered a general stream error. (1): gstdecodebin2.c(4695): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstDecodeBin:decodebin0:
all streams without buffers
Exiting appq flushed
Closing RMQ Connection

At this the deepstream pipeline get stuck…

Please use gst-launch pipeline to debug the two rtsp sources.

@Fiona.Chen
I found this…

ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Resource not found.
Additional debug info:
gstrtspsrc.c(7460): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
No valid RTSP URL was provided
0:00:00.223163093 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:4625:gst_rtsp_conninfo_connect:<rtspsrc1> sanitized uri rtsp://<ip>:554/
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...

Here is gst-launch

root@edge-deepstream-75ccf5dd89-qnddr:/app# gst-launch-1.0 --gst-debug=rtspsrc:5 rtspsrc rtsp://<ip>:554/ ! decodebin ! fakesink
0:00:00.205687747 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8617:gst_rtspsrc_uri_set_uri:<rtspsrc1> parsing URI
0:00:00.205771320 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8624:gst_rtspsrc_uri_set_uri:<rtspsrc1> configuring URI
0:00:00.205807579 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8640:gst_rtspsrc_uri_set_uri:<rtspsrc1> set uri: rtsp://<ip>:554/
0:00:00.205849369 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8642:gst_rtspsrc_uri_set_uri:<rtspsrc1> request uri is: rtsp://<ip>:554/
Setting pipeline to PAUSED ...
0:00:00.221345254 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8391:gst_rtspsrc_start:<rtspsrc1> starting
0:00:00.221447216 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8391:gst_rtspsrc_start:<rtspsrc0> starting
0:00:00.221648097 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc1> sending cmd OPEN
0:00:00.221671360 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd:<rtspsrc1> not interrupting busy cmd unknown
0:00:00.221796704 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd OPEN
0:00:00.221819201 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd:<rtspsrc0> not interrupting busy cmd unknown
Pipeline is live and does not need PREROLL ...
0:00:00.222001250 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread:<rtspsrc1> got command OPEN
0:00:00.222092428 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread:<rtspsrc0> got command OPEN
0:00:00.222151790 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc1> set flushing 0
0:00:00.222194742 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
0:00:00.222266505 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:4614:gst_rtsp_conninfo_connect:<rtspsrc1> creating connection (rtsp://<ip>:554/)...
0:00:00.222273355 276045 0x55939f241190 WARN                 rtspsrc gstrtspsrc.c:7460:gst_rtspsrc_retrieve_sdp:<rtspsrc0> error: No valid RTSP URL was provided
Progress: (open) Opening Stream
Progress: (open) Opening Stream
0:00:00.222737778 276045 0x55939f241190 WARN                 rtspsrc gstrtspsrc.c:7548:gst_rtspsrc_open:<rtspsrc0> can't get sdp
0:00:00.222810424 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread:<rtspsrc0> got command LOOP
0:00:00.222843723 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
0:00:00.222877475 276045 0x55939f241190 WARN                 rtspsrc gstrtspsrc.c:5628:gst_rtspsrc_loop:<rtspsrc0> we are not connected
0:00:00.222907379 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:5636:gst_rtspsrc_loop:<rtspsrc0> pausing task, reason flushing
0:00:00.222938818 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd WAIT
0:00:00.222968812 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:5585:gst_rtspsrc_loop_send_cmd:<rtspsrc0> cancel previous request LOOP
0:00:00.223001961 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush busy LOOP
0:00:00.223031118 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Resource not found.
Additional debug info:
gstrtspsrc.c(7460): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
No valid RTSP URL was provided
0:00:00.223163093 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:4625:gst_rtsp_conninfo_connect:<rtspsrc1> sanitized uri rtsp://<ip>:554/
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
0:00:00.223218652 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:4659:gst_rtsp_conninfo_connect:<rtspsrc1> connecting (rtsp://<ip>:554/)...
Setting pipeline to READY ...
0:00:00.223416422 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc1> sending cmd CLOSE
0:00:00.223441645 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5585:gst_rtspsrc_loop_send_cmd:<rtspsrc1> cancel previous request LOOP
0:00:00.223464349 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd:<rtspsrc1> connection flush busy OPEN
0:00:00.223491967 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc1> set flushing 1
0:00:00.223512336 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:4751:gst_rtspsrc_connection_flush:<rtspsrc1> connection flush
0:00:00.223554578 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd CLOSE
0:00:00.223574125 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush busy WAIT
0:00:00.223601668 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1
0:00:00.223635121 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread:<rtspsrc0> got command CLOSE
Setting pipeline to NULL ...
0:00:00.223671113 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
0:00:00.223709107 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:7569:gst_rtspsrc_close:<rtspsrc0> TEARDOWN...
0:00:00.223734804 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:7574:gst_rtspsrc_close:<rtspsrc0> not ready, doing cleanup
0:00:00.223767206 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:7637:gst_rtspsrc_close:<rtspsrc0> closing connection...
0:00:00.223742437 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8422:gst_rtspsrc_stop:<rtspsrc1> stopping
0:00:00.223798347 276045 0x55939f241190 DEBUG                rtspsrc gstrtspsrc.c:2058:gst_rtspsrc_cleanup:<rtspsrc0> cleanup
0:00:00.223848126 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc1> sending cmd WAIT
0:00:00.223908525 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5579:gst_rtspsrc_loop_send_cmd:<rtspsrc1> ignore, we were closing
0:00:00.223941446 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd:<rtspsrc1> connection flush busy OPEN
0:00:00.223970456 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc1> set flushing 1
0:00:00.395235341 276045 0x55939f241140 ERROR                rtspsrc gstrtspsrc.c:4702:gst_rtsp_conninfo_connect:<rtspsrc1> Could not connect to server. (Generic error)
0:00:00.395269448 276045 0x55939f241140 WARN                 rtspsrc gstrtspsrc.c:7469:gst_rtspsrc_retrieve_sdp:<rtspsrc1> error: Failed to connect. (Generic error)
0:00:00.395301058 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:7514:gst_rtspsrc_retrieve_sdp:<rtspsrc1> free connection
0:00:00.395310522 276045 0x55939f241140 DEBUG                rtspsrc gstrtspsrc.c:4721:gst_rtsp_conninfo_close:<rtspsrc1> freeing connection...
0:00:00.395324847 276045 0x55939f241140 WARN                 rtspsrc gstrtspsrc.c:7548:gst_rtspsrc_open:<rtspsrc1> can't get sdp
0:00:00.395388252 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:7569:gst_rtspsrc_close:<rtspsrc1> TEARDOWN...
0:00:00.395415047 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:7574:gst_rtspsrc_close:<rtspsrc1> not ready, doing cleanup
0:00:00.395425756 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:7637:gst_rtspsrc_close:<rtspsrc1> closing connection...
0:00:00.395435323 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:2058:gst_rtspsrc_cleanup:<rtspsrc1> cleanup
0:00:00.395485034 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:8422:gst_rtspsrc_stop:<rtspsrc0> stopping
0:00:00.395499070 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd WAIT
0:00:00.395509742 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush busy WAIT
0:00:00.395519952 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1
0:00:00.395609092 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:7569:gst_rtspsrc_close:<rtspsrc0> TEARDOWN...
0:00:00.395620072 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:7574:gst_rtspsrc_close:<rtspsrc0> not ready, doing cleanup
0:00:00.395628710 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:7637:gst_rtspsrc_close:<rtspsrc0> closing connection...
0:00:00.395636812 276045 0x55939f21aac0 DEBUG                rtspsrc gstrtspsrc.c:2058:gst_rtspsrc_cleanup:<rtspsrc0> cleanup
Freeing pipeline ...

The RTSP url is not correct. Please check it.

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