Deepstream-test4 error running container_builder & Azure Edge container error

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson
• DeepStream Version
6.0 GA on host, 5.1 on Jetson
• JetPack Version (valid for Jetson only)
4.5.1
• TensorRT Version
8
• NVIDIA GPU Driver Version (valid for GPU only)
470
• Issue Type( questions, new requirements, bugs)
Bug
• 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)

I’m following the tutorial here. When running sudo container_builder -c ds_test4_container_builder_jetson.yaml -d /opt/nvidia/graph-composer/config/target_aarch64.yaml, I get the following error:

2021-11-11 11:38:06,737 - ContainerBuilder.container_builder.docker_manager - INFO - Auto selected base image: nvcr.io/nvidia/deepstream-l4t:6.0-samples
2021-11-11 11:38:06,737 - ContainerBuilder.container_builder.docker_manager - INFO - start building stage image deepstream-test4-jetson
2021-11-11 11:38:06,754 - ContainerBuilder.container_builder.docker_templ.docker_templ_maker - INFO - writing docker content to /root/.cache/container_builder/.dockerfile_6908
2021-11-11 11:38:06,754 - ContainerBuilder.container_builder.docker_manager - INFO - docker file /root/.cache/container_builder/.dockerfile_6908 generated
2021-11-11 11:38:06,754 - ContainerBuilder.container_builder.docker_manager - INFO - start preparing work folder: /root/.cache/container_builder/.workfolder_6908
2021-11-11 11:38:06,754 - ContainerBuilder.container_builder.docker_workfolder - INFO - copying local files to work folder
2021-11-11 11:38:06,765 - ContainerBuilder.container_builder.docker_workfolder - INFO - Work folder: /root/.cache/container_builder/.workfolder_6908/final_image is ready
Traceback (most recent call last):
  File "container_builder/cli.py", line 13, in <module>
  File "container_builder/container_builder.py", line 88, in main
  File "container_builder/container_builder.py", line 47, in build
  File "container_builder/docker_manager.py", line 457, in build_main_yaml
  File "container_builder/docker_manager.py", line 514, in build_stage_image
  File "container_builder/docker_workfolder.py", line 105, in prepare_all
  File "container_builder/graph_handler.py", line 45, in __init__
  File "container_builder/graph_handler.py", line 49, in init_registry
  File "<frozen registry.core.core_interface>", line 28, in __init__
  File "<frozen registry.core.core>", line 54, in __init__
  File "<frozen registry.core.core>", line 1154, in _setup_logger
  File "logging/handlers.py", line 150, in __init__
  File "logging/handlers.py", line 57, in __init__
  File "logging/__init__.py", line 1032, in __init__
  File "logging/__init__.py", line 1061, in _open
PermissionError: [Errno 13] Permission denied: '/tmp/nvgraph_registry.log'
[6908] Failed to execute script cli

I can build the container using Graph Composer (Update: apparently the same issue can happen in Graph Composer as well). But deploying the container to Azure Edge device (Jetson Xavier NX) results in the following error:

2021-11-11 02:49:22.477 INFO  gxf/gxe/gxe.cpp@98: Creating context
2021-11-11 02:49:22.483 ERROR gxf/std/extension_loader.cpp@109: libcudart.so.10.2: cannot open shared object file: No such file or directory
2021-11-11 02:49:22.486 ERROR gxf/gxe/gxe.cpp@143: LoadExtensionManifest Error: GXF_EXTENSION_FILE_NOT_FOUND

I’m thinking the error on Jetson is probably related to the container_builder error. What should I do to resolve this?

Thank you.

Update 1:

I found a workaround by deleting /tmp/nvgraph_registry.log and /tmp/gxf_log, and then running registry repo sync -n ngc-public.

Now, running sudo container_builder -c ds_test4_container_builder_jetson.yaml -d /opt/nvidia/graph-composer/config/target_aarch64.yaml produces the error below:

2021-11-12 09:44:15,042 - ContainerBuilder.container_builder.docker_manager - INFO - Auto selected base image: nvcr.io/nvidia/deepstream-l4t:6.0-samples
2021-11-12 09:44:15,042 - ContainerBuilder.container_builder.docker_manager - INFO - start building stage image deepstream-test4-jetson
2021-11-12 09:44:15,059 - ContainerBuilder.container_builder.docker_templ.docker_templ_maker - INFO - writing docker content to /root/.cache/container_builder/.dockerfile_64677
2021-11-12 09:44:15,059 - ContainerBuilder.container_builder.docker_manager - INFO - docker file /root/.cache/container_builder/.dockerfile_64677 generated
2021-11-12 09:44:15,060 - ContainerBuilder.container_builder.docker_manager - INFO - start preparing work folder: /root/.cache/container_builder/.workfolder_64677
2021-11-12 09:44:15,060 - ContainerBuilder.container_builder.docker_workfolder - INFO - copying local files to work folder
2021-11-12 09:44:15,071 - ContainerBuilder.container_builder.docker_workfolder - INFO - Work folder: /root/.cache/container_builder/.workfolder_64677/final_image is ready
2021-11-12 09:44:16,310 - Registry - INFO - Installing graph ...
2021-11-12 09:44:16,342 - Registry - INFO - 
Requested target configuration: 
  arch: aarch64 os: linux distribution: ubuntu_18.04 cuda: 10.2 cudnn: 8.0.3 tensorrt: 8.0.1.6 deepstream: 6.0 vpi: 1.1.12 

Selected extension variants: 
MultimediaExtension 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 
StandardExtension 
  Version: 1.0.1 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 cuda: 10.2 
NvDsInterfaceExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsBaseExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsCloudMsgExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsInferenceExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsInferenceUtilsExt 
  Version: 0.0.5 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsSourceExt 
  Version: 0.0.6 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsMuxDemuxExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsOutputSinkExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsVisualizationExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsTemplateExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsSampleExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsSampleModelsExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 

2021-11-12 09:45:08,407 - ContainerBuilder.container_builder.docker_manager - INFO - work folder: /root/.cache/container_builder/.workfolder_64677 is ready
2021-11-12 09:45:08,407 - ContainerBuilder.container_builder.docker_manager - INFO - start build docker file /root/.cache/container_builder/.dockerfile_64677
Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 601, in urlopen
  File "urllib3/connectionpool.py", line 357, in _make_request
  File "http/client.py", line 1281, in request
  File "http/client.py", line 1327, in _send_request
  File "http/client.py", line 1276, in endheaders
  File "http/client.py", line 1042, in _send_output
  File "http/client.py", line 980, in send
  File "docker/transport/unixconn.py", line 30, in connect
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests/adapters.py", line 440, in send
  File "urllib3/connectionpool.py", line 639, in urlopen
  File "urllib3/util/retry.py", line 357, in increment
  File "urllib3/packages/six.py", line 685, in reraise
  File "urllib3/connectionpool.py", line 601, in urlopen
  File "urllib3/connectionpool.py", line 357, in _make_request
  File "http/client.py", line 1281, in request
  File "http/client.py", line 1327, in _send_request
  File "http/client.py", line 1276, in endheaders
  File "http/client.py", line 1042, in _send_output
  File "http/client.py", line 980, in send
  File "docker/transport/unixconn.py", line 30, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker/api/client.py", line 214, in _retrieve_server_version
  File "docker/api/daemon.py", line 181, in version
  File "docker/utils/decorators.py", line 46, in inner
  File "docker/api/client.py", line 237, in _get
  File "requests/sessions.py", line 521, in get
  File "requests/sessions.py", line 508, in request
  File "requests/sessions.py", line 618, in send
  File "requests/adapters.py", line 490, in send
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "container_builder/cli.py", line 13, in <module>
  File "container_builder/container_builder.py", line 88, in main
  File "container_builder/container_builder.py", line 47, in build
  File "container_builder/docker_manager.py", line 457, in build_main_yaml
  File "container_builder/docker_manager.py", line 528, in build_stage_image
  File "container_builder/docker_builder.py", line 113, in build_from
  File "container_builder/docker_builder.py", line 66, in _internal_build
  File "container_builder/docker_builder.py", line 47, in _ensure_client
  File "container_builder/docker_builder.py", line 37, in _create_client
  File "docker/client.py", line 101, in from_env
  File "docker/client.py", line 45, in __init__
  File "docker/api/client.py", line 197, in __init__
  File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
[64677] Failed to execute script cli

Did your docker running? and did you add user into docker group?
sudo usermod -aG docker “user name”

Yes. docker.service is running and user is added to the group. What causes [Errno 13] Permission denied: '/tmp/nvgraph_registry.log'? I get this error whenever I try to run container_builder or registry repo sync -n ngc-public.

As a workaround, I delete the log file before running container_builder but that doesn’t solve anything because it’d produce the FileNotFoundError from my first post.

Did you follow below to login:

Prerequisites

  1. Install right docker version Install Docker Engine on Ubuntu | Docker Documentation
  2. log into the server which you might need pull/push images. Run:

$ docker login server:port

If you need NGC images and resources, follow NVIDIA NGC to apply permission and get API_KEY token. Then run,

$ docker login nvcr.io

$ docker --version
Docker version 20.10.11, build dea9396
$ docker login nvcr.io
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /home/user/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

It seems like logging in to nvcr.io fixed my problem. But it’s kinda weird because Docker has already stored my NGC credentials together with Azure Container Registry’s:

$ sudo container_builder -c ds_test4_container_builder_jetson.yaml -d /opt/nvidia/graph-composer/config/target_aarch64.yaml
[sudo] password for user:         
2021-11-19 11:31:07,671 - ContainerBuilder.container_builder.docker_manager - INFO - Auto selected base image: nvcr.io/nvidia/deepstream-l4t:6.0-samples
2021-11-19 11:31:07,671 - ContainerBuilder.container_builder.docker_manager - INFO - start building stage image deepstream-test4-jetson
2021-11-19 11:31:07,688 - ContainerBuilder.container_builder.docker_templ.docker_templ_maker - INFO - writing docker content to /root/.cache/container_builder/.dockerfile_200539
2021-11-19 11:31:07,688 - ContainerBuilder.container_builder.docker_manager - INFO - docker file /root/.cache/container_builder/.dockerfile_200539 generated
2021-11-19 11:31:07,688 - ContainerBuilder.container_builder.docker_manager - INFO - start preparing work folder: /root/.cache/container_builder/.workfolder_200539
2021-11-19 11:31:07,688 - ContainerBuilder.container_builder.docker_workfolder - INFO - copying local files to work folder
2021-11-19 11:31:07,712 - ContainerBuilder.container_builder.docker_workfolder - INFO - Work folder: /root/.cache/container_builder/.workfolder_200539/final_image is ready
2021-11-19 11:31:08,956 - Registry - INFO - Installing graph ...
2021-11-19 11:31:08,988 - Registry - INFO - 
Requested target configuration: 
  arch: aarch64 os: linux distribution: ubuntu_18.04 cuda: 10.2 cudnn: 8.0.3 tensorrt: 8.0.1.6 deepstream: 6.0 vpi: 1.1.12 

Selected extension variants: 
MultimediaExtension 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 
StandardExtension 
  Version: 1.0.1 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 cuda: 10.2 
NvDsInterfaceExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsBaseExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsCloudMsgExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsInferenceExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsInferenceUtilsExt 
  Version: 0.0.5 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsSourceExt 
  Version: 0.0.6 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsMuxDemuxExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsOutputSinkExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsVisualizationExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsTemplateExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsSampleExt 
  Version: 0.0.3 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 
NvDsSampleModelsExt 
  Version: 0.0.4 Variant: arch: aarch64 os: linux distribution: ubuntu_18.04 deepstream: 6.0 

2021-11-19 11:32:01,214 - ContainerBuilder.container_builder.docker_manager - INFO - work folder: /root/.cache/container_builder/.workfolder_200539 is ready
2021-11-19 11:32:01,214 - ContainerBuilder.container_builder.docker_manager - INFO - start build docker file /root/.cache/container_builder/.dockerfile_200539
Step 1/10 : FROM  nvcr.io/nvidia/deepstream-l4t:6.0-samples AS final_image
 ---> 1e08ebd4f227
Step 2/10 : ARG DEBIAN_FRONTEND=noninteractive
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 7a83c669e362
Removing intermediate container 7a83c669e362
 ---> d6bf823c3c06
Step 3/10 : COPY ["final_image", "/"]
 ---> 8c3c55bd4ebc
Step 4/10 : RUN true
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in b24ea1546fc4
Removing intermediate container b24ea1546fc4
 ---> c0697673a400
Step 5/10 : ENV PATH="/opt/nvidia/graph-composer/:$PATH"
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 82696510d410
Removing intermediate container 82696510d410
 ---> 441cc2437dc5
Step 6/10 : ENV LD_LIBRARY_PATH="/opt/nvidia/graph-composer/:$LD_LIBRARY_PATH"
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 6ec1b538b53c
Removing intermediate container 6ec1b538b53c
 ---> 827bc3a6cbcb
Step 7/10 : ENV DISPLAY=":0"
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 95a3d9ef129f
Removing intermediate container 95a3d9ef129f
 ---> 88f5115c3753
Step 8/10 : WORKDIR /workspace/deepstream-test4/
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in a54bddb3dfce
Removing intermediate container a54bddb3dfce
 ---> a8f72f97c9f4
Step 9/10 : RUN apt install -y /tmp/graph_composer-1.0.0_arm64.deb && rm -rf /tmp/graph-composer-1.0.0_arm64.deb
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in d94111c37b3e
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'graph-composer' instead of '/tmp/graph_composer-1.0.0_arm64.deb'
The following additional packages will be installed:
  libpopt0 rsync
Suggested packages:
  openssh-client openssh-server
The following NEW packages will be installed:
  graph-composer libpopt0 rsync
0 upgraded, 3 newly installed, 0 to remove and 8 not upgraded.
Need to get 331 kB/23.3 MB of archives.
After this operation, 406 MB of additional disk space will be used.
Get:1 /tmp/graph_composer-1.0.0_arm64.deb graph-composer arm64 1.0.0 [23.0 MB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic/main arm64 libpopt0 arm64 1.16-11 [22.8 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 rsync arm64 3.1.2-2.1ubuntu1.1 [308 kB]
Fetched 331 kB in 2s (211 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpopt0:arm64.
(Reading database ... 38033 files and directories currently installed.)
Preparing to unpack .../libpopt0_1.16-11_arm64.deb ...
Unpacking libpopt0:arm64 (1.16-11) ...
Selecting previously unselected package rsync.
Preparing to unpack .../rsync_3.1.2-2.1ubuntu1.1_arm64.deb ...
Unpacking rsync (3.1.2-2.1ubuntu1.1) ...
Selecting previously unselected package graph-composer.
Preparing to unpack .../graph_composer-1.0.0_arm64.deb ...
Unpacking graph-composer (1.0.0) ...
Setting up libpopt0:arm64 (1.16-11) ...
Setting up rsync (3.1.2-2.1ubuntu1.1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up graph-composer (1.0.0) ...
update-alternatives: using /opt/nvidia/graph-composer/libgxf_core.so to provide /usr/lib/aarch64-linux-gnu/libgxf_core.so (gxf_core) in auto mode
update-alternatives: using /opt/nvidia/graph-composer/gxe to provide /usr/bin/gxe (gxe) in auto mode
update-alternatives: using /opt/nvidia/graph-composer/registry to provide /usr/bin/registry (registry) in auto mode
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Removing intermediate container d94111c37b3e
 ---> 2ce3229a0cc9
Step 10/10 : ENTRYPOINT [  "gxe",  "--manifest",  "deepstream-test4_manifest.yaml",  "--app",  "deepstream-test4.yaml,parameters.yaml"  ]
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 626685b6bcd9
Removing intermediate container 626685b6bcd9
 ---> a7169d310897
Successfully built a7169d310897
Successfully tagged deepstream-test4-jetson:latest
2021-11-19 11:32:18,093 - ContainerBuilder.container_builder.docker_builder - INFO - docker build image on file:/root/.cache/container_builder/.dockerfile_200539, successfully
2021-11-19 11:32:18,094 - ContainerBuilder.container_builder.docker_manager - INFO - build image deepstream-test4-jetson on dockerfile /root/.cache/container_builder/.dockerfile_200539 sucessfully
2021-11-19 11:32:18,094 - ContainerBuilder.container_builder.docker_manager - INFO - build final image deepstream-test4-jetson sucessfully
2021-11-19 11:32:18,094 - ContainerBuilder.container_builder.docker_manager - INFO - start pruning images
2021-11-19 11:32:18,191 - ContainerBuilder.container_builder.docker_manager - INFO - Container builder build config sucessfully

I uploaded the new container to Azure Container Registry and redeployed it as an Edge module. But I still encounter the same error on Jetson:

2021-11-22 02:49:14.261 INFO  gxf/gxe/gxe.cpp@98: Creating context
2021-11-22 02:49:14.268 ERROR gxf/std/extension_loader.cpp@109: libcudart.so.10.2: cannot open shared object file: No such file or directory
2021-11-22 02:49:14.269 ERROR gxf/gxe/gxe.cpp@143: LoadExtensionManifest Error: GXF_EXTENSION_FILE_NOT_FOUND

Can you find libcudart.so.10.2?
/usr/local/cuda-10.2/lib64/libcudart.so.10.2

The container doesn’t have libcudart.so.10.2.

root@1b79a7bb9318:/usr/local/cuda-10.2/lib64# ll
total 1544
drwxr-xr-x 1 root root   4096 Jul 23 18:19 ./
drwxr-xr-x 1 root root   4096 Jul 23 18:19 ../
-rw-r--r-- 1 root root 679636 Jul 23 18:11 libcudadevrt.a
-rw-r--r-- 1 root root 888074 Jul 23 18:11 libcudart_static.a
drwxr-xr-x 2 root root   4096 Jul 23 18:19 stubs/

This is weird because container_builder is pulling the base image from nvcr.io/nvidia/deepstream-l4t:6.0-samples as seen in the log. Am I missing anything or is this a bug?

Fixed the file not found issue by adding below args in deepstream_test4_jetson module’s Container Create Options on IoT Hub:

{
    "HostConfig": {
        "Runtime": "nvidia"
    }
}

However, I get a different error now that’s related to nvurisrcbin:

e[0m2021-11-22 09:15:22.626 INFO  gxf/gxe/gxe.cpp@98: Creating contexte[0m
e[0m2021-11-22 09:15:22.694 INFO  gxf/gxe/gxe.cpp@85: Loading app: 'deepstream-test4.yaml'e[0m
e[0m2021-11-22 09:15:22.694 INFO  gxf/std/yaml_file_loader.cpp@59: Loading GXF entities from YAML file 'deepstream-test4.yaml'...e[0m
e[0m2021-11-22 09:15:22.712 INFO  gxf/gxe/gxe.cpp@85: Loading app: 'parameters.yaml'e[0m
e[0m2021-11-22 09:15:22.712 INFO  gxf/std/yaml_file_loader.cpp@59: Loading GXF entities from YAML file 'parameters.yaml'...e[0m
e[0m2021-11-22 09:15:22.714 INFO  gxf/gxe/gxe.cpp@153: Initializing...e[0m
e[0m2021-11-22 09:15:22.783 INFO  extensions/nvdsbase/nvds_scheduler.cpp@266: This program is linked against GStreamer 1.14.5 
e[0m
e[0m2021-11-22 09:15:22.785 INFO  extensions/nvdssource/nvurisrcbin.hpp@24: initialize: nvurisrcbin nv_ds_single_src_input39..3c18
e[0m
e[0m2021-11-22 09:15:22.785 INFO  extensions/nvdsmuxdemux/nvstreammux.hpp@27: initialize: nvstreammux nv_ds_stream_mux42..36d8
e[0m
e[0m2021-11-22 09:15:22.785 INFO  extensions/nvdsinference/nvinferbin.hpp@24: initialize: nvinferbin nv_ds_infer46..d5c0
e[0m
e[0m2021-11-22 09:15:22.786 INFO  extensions/nvdsvisualization/nvosdbin.hpp@24: initialize: nvosdbin nv_ds_osd50..feb8
e[0m
e[0m2021-11-22 09:15:22.786 INFO  ./extensions/nvdsbase/tee.hpp@23: initialize: tee nv_ds_tee54..0748
e[0m
e[0m2021-11-22 09:15:22.786 INFO  extensions/nvdsoutputsink/nvvideorenderersinkbin.hpp@24: initialize: nvvideorenderersinkbin nv_ds_video_renderer58..acc0
e[0m
e[0m2021-11-22 09:15:22.787 INFO  extensions/nvdscloudmsg/nvmsgbrokersinkbin.hpp@23: initialize: nvmsgbrokersinkbin nv_ds_msg_conv_broker61..4748
e[0m
e[0m2021-11-22 09:15:22.788 INFO  gxf/gxe/gxe.cpp@160: Running...e[0m
e[0m2021-11-22 09:15:22.788 INFO  extensions/nvdsbase/nvds_scheduler.cpp@117: Scheduling 7 elements and 2 componentse[0m
e[0m2021-11-22 09:15:22.788 INFO  extensions/nvdssource/nvurisrcbin.hpp@32: create_element: nvurisrcbin nv_ds_single_src_input39..3c18
e[0m
e[1;31m2021-11-22 09:15:22.788 ERROR extensions/nvdssource/nvurisrcbin.hpp@37: Could not create GStreamer element 'nvurisrcbin'e[0m
e[1;31m2021-11-22 09:15:22.788 ERROR gxf/std/program.cpp@310: Couldn't run async. Deactivating...e[0m
e[1;31m2021-11-22 09:15:22.790 ERROR gxf/core/runtime.cpp@907: Graph run failed with error: GXF_FAILUREe[0m
e[1;31m2021-11-22 09:15:22.790 ERROR gxf/gxe/gxe.cpp@163: GxfGraphRunAsync Error: GXF_FAILUREe[0m

I see you use Jetpack 4.5.1, but the docker you deployed is based on deepstream version 6.0, on Jetson device, you need to make sure Jetpack version and deepstream version match.

I’m using Jetpack 4.5.1 because the tutorial put it as a prerequisite:

Prerequisites

I’ll flash the Jetson with Jetpack 4.6 & Deepstream 6 and update my finding here soon.

Still getting the same error after upgrading to Jetpack 4.6

2021-11-25 09:22:00.632 INFO  gxf/gxe/gxe.cpp@98: Creating context
2021-11-25 09:22:00.691 INFO  gxf/gxe/gxe.cpp@85: Loading app: 'deepstream-test4.yaml'
2021-11-25 09:22:00.691 INFO  gxf/std/yaml_file_loader.cpp@59: Loading GXF entities from YAML file 'deepstream-test4.yaml'...
2021-11-25 09:22:00.705 INFO  gxf/gxe/gxe.cpp@85: Loading app: 'parameters.yaml'
2021-11-25 09:22:00.705 INFO  gxf/std/yaml_file_loader.cpp@59: Loading GXF entities from YAML file 'parameters.yaml'...
2021-11-25 09:22:00.706 INFO  gxf/gxe/gxe.cpp@153: Initializing...
2021-11-25 09:22:00.765 INFO  extensions/nvdsbase/nvds_scheduler.cpp@266: This program is linked against GStreamer 1.14.5 

2021-11-25 09:22:00.766 INFO  extensions/nvdssource/nvurisrcbin.hpp@24: initialize: nvurisrcbin nv_ds_single_src_input39..3c18

2021-11-25 09:22:00.767 INFO  extensions/nvdsmuxdemux/nvstreammux.hpp@27: initialize: nvstreammux nv_ds_stream_mux42..36d8

2021-11-25 09:22:00.767 INFO  extensions/nvdsinference/nvinferbin.hpp@24: initialize: nvinferbin nv_ds_infer46..d5c0

2021-11-25 09:22:00.767 INFO  extensions/nvdsvisualization/nvosdbin.hpp@24: initialize: nvosdbin nv_ds_osd50..feb8

2021-11-25 09:22:00.768 INFO  ./extensions/nvdsbase/tee.hpp@23: initialize: tee nv_ds_tee54..0748

2021-11-25 09:22:00.768 INFO  extensions/nvdsoutputsink/nvvideorenderersinkbin.hpp@24: initialize: nvvideorenderersinkbin nv_ds_video_renderer58..acc0

2021-11-25 09:22:00.768 INFO  extensions/nvdscloudmsg/nvmsgbrokersinkbin.hpp@23: initialize: nvmsgbrokersinkbin nv_ds_msg_conv_broker61..4748

2021-11-25 09:22:00.769 INFO  gxf/gxe/gxe.cpp@160: Running...
2021-11-25 09:22:00.769 INFO  extensions/nvdsbase/nvds_scheduler.cpp@117: Scheduling 7 elements and 2 components
2021-11-25 09:22:00.769 INFO  extensions/nvdssource/nvurisrcbin.hpp@32: create_element: nvurisrcbin nv_ds_single_src_input39..3c18

2021-11-25 09:22:00.769 ERROR extensions/nvdssource/nvurisrcbin.hpp@37: Could not create GStreamer element 'nvurisrcbin'
2021-11-25 09:22:00.769 ERROR gxf/std/program.cpp@310: Couldn't run async. Deactivating...
2021-11-25 09:22:00.771 ERROR gxf/core/runtime.cpp@907: Graph run failed with error: GXF_FAILURE
2021-11-25 09:22:00.771 ERROR gxf/gxe/gxe.cpp@163: GxfGraphRunAsync Error: GXF_FAILURE
$ jetson_release -v
 - NVIDIA Jetson Xavier NX (Developer Kit Version)
   * Jetpack 4.6 [L4T 32.6.1]
   * NV Power Mode: MODE_10W_DESKTOP - Type: 5
   * jetson_stats.service: active
 - Board info:
   * Type: Xavier NX (Developer Kit Version)
   * SOC Family: tegra194 - ID:25
   * Module: P3668 - Board: P3509-000
   * Code Name: jakku
   * CUDA GPU architecture (ARCH_BIN): 7.2
   * Serial Number: 1424620042387
 - Libraries:
   * CUDA: 10.2.300
   * cuDNN: 8.2.1.32
   * TensorRT: 8.0.1.6
   * Visionworks: 1.6.0.501
   * OpenCV: 4.1.1 compiled CUDA: NO
   * VPI: ii libnvvpi1 1.1.12 arm64 NVIDIA Vision Programming Interface library
   * Vulkan: 1.2.70
 - jetson-stats:
   * Version 3.1.1
   * Works on Python 3.6.9

Looks like you did not install DS sdk. Please check that nvurisrcbin plugin actually exists

Sorry for the above, seems extension not synced well. you can run registry repo list [args] to check repositories after repo sync for extension. Registry Command Line Interface — DeepStream 6.0 Release documentation