Not able to run sample applications in docker. "One element could not be created. Exiting."

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) NVIDIA GeForce RTX 3080 Laptop GPU
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only)
• TensorRT Version 8.2.3.0
• NVIDIA GPU Driver Version (valid for GPU only) 470.182.03
• Issue Type( questions, new requirements, bugs)
• 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) Pulled the developers deepstream 6.2 container [ nvcr.io/nvidia/deepstream:6.2-devel] and trying to run the deepstream-test1-app. Followed the steps provided in the README.
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

The application is exiting with: “One element could not be created. Exiting.”

Can you share the command and the full log?
You can add GST_DEBUG=3 before the command thus more logs can be printed.

Command: deepstream-test1-app dstest1_config.yml

Log:
0:00:00.014304757 17 0x55fac3e2e950 WARN GST_ELEMENT_FACTORY gstelementfactory.c:458:gst_element_factory_make: no such element factory “nvstreammux”!
One element could not be created. Exiting.

Did you install nvidia-container-toolkit? (point 2 in Docker Containers — DeepStream 6.2 Release documentation (nvidia.com))
And what’s your command to start docker?

Installation of nvidia-container-toolkit: The instructions were followed for the installation but while running: “sudo docker run --rm --runtime=nvidia --gpus all nvidia/cuda:11.6.2-base-ubuntu20.04 nvidia-smi” getting the following error message: “docker: Error response from daemon: Unknown runtime specified nvidia”

The command to start docker: docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro nvcr.io/nvidia/deepstream:6.2-devel

Seems the driver is not installed correctly, and your current driver seems to be too old, you may upgrade to new driver (>525) and retest.

Hi @yingliu,
I already have DeepStream 6.0 installed on my system and I am able to run the sample applications there. I wanted to try out the lidar inferencing app that is introduced in 6.2. Hence, I pulled the docker container nvcr.io/nvidia/deepstream:6.2-develand I am trying to test out the samples there. Is it possible to do so, running applications in DS6.2 by accessing the container in bash?

Yes, this is the normal way to use devel docker.
Please refer to the prerequisite of installing docker and nvidia-docker-toolkit here: Docker Containers — DeepStream 6.2 Release documentation (nvidia.com), and command to start docker can be found on ngc deepstream page: DeepStream | NVIDIA NGC.

I have followed the steps in : Docker Containers — DeepStream 6.2 Release documentation (nvidia.com) and pulled the devel docker again.

“sudo docker run --rm --runtime=nvidia --gpus all nvidia/cuda:11.6.2-base-ubuntu20.04 nvidia-smi” is giving error: “docker: Error response from daemon: Unknown runtime specified nvidia.” I am currently using Nvidia GPU driver version =

Tried starting the docker using "```
docker run --gpus all -it --rm --net=host --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.2 nvcr.io/nvidia/deepstream:6.2-devel

nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown."

I am able to start the docker using: docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY nvcr.io/nvidia/deepstream:6.2-devel

Tried running a sample application but it is exiting with the following message:
root@b48ff86e7be9:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-test1# deepstream-test1-app /opt/nvidia/deepstream/deepstream/samples/streams/sample_qHD.h264

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:12.913: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmpeg2dec.so': libmpeg2.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:12.930: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstopenmpt.so': libmpg123.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:12.932: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstchromaprint.so': libavcodec.so.58: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.024: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmpeg2enc.so': libmpeg2encpp-2.1.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.032: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmpg123.so': libmpg123.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.036: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.036: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.099: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_preprocess.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.100: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_eglglessink.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.101: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_tracker.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.104: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.107: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dewarper.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.112: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dsexample.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.113: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.139: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_nvblender.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.141: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libcustom2d_preprocess.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.143: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_deepstream_bins.so': libcuda.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.144: 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

(gst-plugin-scanner:26): GStreamer-WARNING **: 08:57:13.152: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistreamtiler.so': libcuda.so.1: cannot open shared object file: No such file or directory
One element could not be created. Exiting.

Any suggestions?

This seems more like the driver is not well installed. And the second command shows if you didn’t enable nvidia runtime it has no such error, but of course will not work as not able to access Nvidia hardware accelerators.

You may check this page Nvidia-Container-Cli Error: could not start driver service: load library failed: libnvidia-ml.so.1: cannot open · Issue #135 · NVIDIA/libnvidia-container (github.com) on driver update.

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