Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) NVIDIA GeForce RTX 4070 • DeepStream Version 7.1-gc-triton-devel • JetPack Version (valid for Jetson only) NA • TensorRT Version NA • NVIDIA GPU Driver Version (valid for GPU only) 566.14 • 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)
When I run this command
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh" to rootfs at "/opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh": create mount destination for /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh mount: cannot mkdir in /var/lib/docker/overlay2/2868b762a09cfb04be9975cc11d1834202a02f2c2bc28c68c139176b226c3cb6/merged/opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
failed to build models into local folder: bevfusion/model_root
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh" to rootfs at "/opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh": create mount destination for /opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh mount: cannot mkdir in /var/lib/docker/overlay2/eb8896fad311ef42fc67ea3c5161e019e62b4c38ac12ffa057c52bab1f169b74/merged/opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion/bevfusion/build_bevfusion_model.sh: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
failed to build models into local folder: bevfusion/model_root
This problem may be caused by Docker not being installed correctly. Try the following command line. The steps provided in the document can work properly. I have tried it.
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo reboot
The bevfusion uses the docker-in-docker feature, but Docker containers within Docker containers use the parent host’s Docker daemon, so any volumes mounted in the “docker-in-docker” situation are still referenced from the host, not from the container.
So you need to install deepstream sdk in the host first (no dependencies need to be installed, the runtime is completely in the container)
sudo rm -rf /opt/nvidia/deepstream/
wget --content-disposition 'https://api.ngc.nvidia.com/v2/resources/org/nvidia/deepstream/7.1/files?redirect=true&path=deepstream-7.1_7.1.0-1_amd64.deb' -O deepstream-7.1_7.1.0-1_amd64.deb
# Please ignore warnings or errors
sudo dpkg -i deepstream-7.1_7.1.0-1_amd64.deb
# start docker
docker run --gpus all -it --rm --net=host --privileged \
-v /usr/bin/docker:/usr/bin/docker \
-v /usr/libexec/docker:/usr/libexec/docker \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY nvcr.io/nvidia/deepstream:7.1-triton-multiarch
cd /opt/nvidia/deepstream/deepstream-7.1/sources/apps/sample_apps/deepstream-3d-lidar-sensor-fusion
# build bevfusion docker image
bevfusion/docker_build_bevfusion_image.sh nvcr.io/nvidia/deepstream:7.1-triton-multiarch
# generate the trt model
mkdir bevfusion/model_root
bevfusion/docker_run_generate_trt_engine_models.sh bevfusion/model_root
# run triton server
bevfusion/docker_run_triton_server_bevfusion.sh bevfusion/model_root/
I was getting the exact same error. It turns out that after a fresh reinstall of my graphics drivers my processor’s GPU was set as prime, so doing the following and a reboot fixed it: