Unsuccessfull building of a container

*• Hardware Platform x86
• DeepStream Version 6.1.1
. Graph composer 2.0.1
• JetPack Version 5.0.2
. Ubuntu 20.0.4.5 LTS
• Issue Type error

Hello,

I have a fresh installation of Jetpack 5.0.2 via sdkmanager, tar-ball install of deepstream 6.1.1 and graph composer (deb-install).

Excuting of a graph remote on Jetson device Xavier NX 16 GB is successful.

Error: Building an Container results in an error.

2022-09-05 11:06:38,126 - Composer - INFO - Loading model: /home/stefan/nvgraph/RTSP-multiple-cameras.yaml
Found a peer of nv_ds_dynamic_output1: nv_ds_on_request_input1
Found a peer of nv_ds_static_input4: nv_ds_static_output7
Found a peer of nv_ds_on_request_input1: nv_ds_dynamic_output1
Found a peer of nv_ds_on_request_input1: nv_ds_dynamic_output23
Found a peer of nv_ds_on_request_input1: nv_ds_dynamic_output27
Found a peer of nv_ds_on_request_input1: nv_ds_dynamic_output31
Found a peer of nv_ds_static_output2: nv_ds_static_input5
Found a peer of nv_ds_static_output4: nv_ds_probe_connector15
Found a peer of nv_ds_static_output4: nv_ds_static_input18
Found a peer of nv_ds_static_input5: nv_ds_static_output2
Found a peer of nv_ds_static_output7: nv_ds_static_input4
Found a peer of nv_ds_static_input8: nv_ds_static_output19
Found a peer of nv_ds_probe_connector15: nv_ds_static_output4
Found a peer of nv_ds_static_input18: nv_ds_static_output4
Found a peer of nv_ds_static_output19: nv_ds_static_input8
Found a peer of nv_ds_dynamic_output23: nv_ds_on_request_input1
Found a peer of nv_ds_dynamic_output27: nv_ds_on_request_input1
Found a peer of nv_ds_dynamic_output31: nv_ds_on_request_input1
2022-09-05 11:07:23,316 - ContainerBuilder.container_builder.docker_manager.builder_config - ERROR - graph field manifest_dst is required
2022-09-05 11:07:23,317 - ContainerBuilder.container_builder.docker_manager.builder_config - ERROR - graph check failed from config file
2022-09-05 11:07:23,317 - ContainerBuilder.container_builder.docker_manager.docker_manager - ERROR - check config failed.
2022-09-05 11:07:23,317 - ContainerBuilder.container_builder.docker_manager.docker_manager - ERROR - parse config file failed

Hello,
please give me some help on it!
Regards
Stefan

Can you build the sample container successfully? Container Builder — DeepStream 6.1.1 Release documentation

Hello! :-)

I am a step further. Can you please have a look at the error at the end of the debug log? Do you know what the error could be?

stefan@ubuntu20:/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1$ container_builder -c ds_test1_container_builder_jetson.yaml -d ../common/target_aarch64.yaml --log-level DEBUG
2022-09-08 08:00:07,788 - ContainerBuilder.__main__ - DEBUG - container_builder is running in PyInstaller
2022-09-08 08:00:07,795 - ContainerBuilder.container_builder.docker_manager.builder_config - DEBUG - Reading Docker Manager config file
2022-09-08 08:00:07,803 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - Auto selected base image: nvcr.io/nvidia/deepstream-l4t:6.1.1-samples
2022-09-08 08:00:07,804 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - start building stage image <docker-container-registry>:deepstream-test1-jetson
2022-09-08 08:00:07,804 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - searching templ_folder:clean_stage
2022-09-08 08:00:07,804 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - loading templ_file:clean_stage
2022-09-08 08:00:07,823 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - rendering docker base template context
2022-09-08 08:00:07,823 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - rendered dockerfile result:


FROM  nvcr.io/nvidia/deepstream-l4t:6.1.1-samples AS final_image
ARG DEBIAN_FRONTEND=noninteractive



RUN set -xe; apt-get update \
    && apt-get install -y --no-install-recommends \
    rsync \
    && rm -rf /var/lib/apt/lists/*






COPY ["final_image", "/"]
RUN true






ENV PATH="/opt/nvidia/graph-composer/:$PATH"
ENV LD_LIBRARY_PATH="/opt/nvidia/graph-composer/:$LD_LIBRARY_PATH"
ENV DISPLAY=":0"


WORKDIR /workspace/deepstream-test1/


RUN apt install -y /tmp/graph_composer-2.0.1_arm64.deb && rm -rf /tmp/graph_composer-2.0.1_arm64.deb




ENTRYPOINT [ \
 "gxe",  "--manifest",  "deepstream-test1_manifest.yaml",  "--app",  "deepstream-test1.yaml,parameters.yaml"  ]

2022-09-08 08:00:07,824 - ContainerBuilder.container_builder.docker_templ.docker_templ_maker - INFO - writing docker content to /home/stefan/.cache/container_builder/.dockerfile_3343
2022-09-08 08:00:07,824 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - docker file /home/stefan/.cache/container_builder/.dockerfile_3343 generated
2022-09-08 08:00:07,825 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - start preparing work folder: /home/stefan/.cache/container_builder/.workfolder_3343
2022-09-08 08:00:07,825 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - DEBUG - Start preparing folder: /home/stefan/.cache/container_builder/.workfolder_3343/final_image
2022-09-08 08:00:07,825 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - INFO - copying local files to work folder
2022-09-08 08:00:07,826 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - DEBUG - copying src: /opt/nvidia/graph-composer/grapstefan@ubuntu20:/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1$ container_builder -c ds_test1_container_builder_jetson.yaml -d ../common/target_aarch64.yaml --log-level DEBUG
2022-09-08 08:00:07,788 - ContainerBuilder.__main__ - DEBUG - container_builder is running in PyInstaller
2022-09-08 08:00:07,795 - ContainerBuilder.container_builder.docker_manager.builder_config - DEBUG - Reading Docker Manager config file
2022-09-08 08:00:07,803 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - Auto selected base image: nvcr.io/nvidia/deepstream-l4t:6.1.1-samples
2022-09-08 08:00:07,804 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - start building stage image <docker-container-registry>:deepstream-test1-jetson
2022-09-08 08:00:07,804 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - searching templ_folder:clean_stage
2022-09-08 08:00:07,804 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - loading templ_file:clean_stage
2022-09-08 08:00:07,823 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - rendering docker base template context
2022-09-08 08:00:07,823 - ContainerBuilder.container_builder.docker_templ.templ_render - DEBUG - rendered dockerfile result:


FROM  nvcr.io/nvidia/deepstream-l4t:6.1.1-samples AS final_image
ARG DEBIAN_FRONTEND=noninteractive



RUN set -xe; apt-get update \
    && apt-get install -y --no-install-recommends \
    rsync \
    && rm -rf /var/lib/apt/lists/*






COPY ["final_image", "/"]
RUN true






ENV PATH="/opt/nvidia/graph-composer/:$PATH"
ENV LD_LIBRARY_PATH="/opt/nvidia/graph-composer/:$LD_LIBRARY_PATH"
ENV DISPLAY=":0"


WORKDIR /workspace/deepstream-test1/


RUN apt install -y /tmp/graph_composer-2.0.1_arm64.deb && rm -rf /tmp/graph_composer-2.0.1_arm64.deb




ENTRYPOINT [ \
 "gxe",  "--manifest",  "deepstream-test1_manifest.yaml",  "--app",  "deepstream-test1.yaml,parameters.yaml"  ]

2022-09-08 08:00:07,824 - ContainerBuilder.container_builder.docker_templ.docker_templ_maker - INFO - writing docker content to /home/stefan/.cache/container_builder/.dockerfile_3343
2022-09-08 08:00:07,824 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - docker file /home/stefan/.cache/container_builder/.dockerfile_3343 generated
2022-09-08 08:00:07,825 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - start preparing work folder: /home/stefan/.cache/container_builder/.workfolder_3343
2022-09-08 08:00:07,825 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - DEBUG - Start preparing folder: /home/stefan/.cache/container_builder/.workfolder_3343/final_image
2022-09-08 08:00:07,825 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - INFO - copying local files to work folder
2022-09-08 08:00:07,826 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - DEBUG - copying src: /opt/nvidia/graph-composer/graph_composer-2.0.1_arm64.deb to dst: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/tmp
2022-09-08 08:00:07,880 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - DEBUG - copying src: /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/parameters.yaml to dst: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/workspace/deepstream-test1
2022-09-08 08:00:07,880 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - INFO - Work folder: /home/stefan/.cache/container_builder/.workfolder_3343/final_image is ready
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - getting registry version
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - get existing repo list: ngc-public,default
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - starting install graph /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - copying graph_file: /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml to dst: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/workspace/deepstream-test1/deepstream-test1.yaml
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - downloading extension archives into /home/stefan/.cache/container_builder/.workfolder_3343/final_image
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - generate graph manifest /workspace/deepstream-test1/deepstream-test1_manifest.yaml
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - installing registry on graph ['/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml']
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - installing graph in archive folder  /home/stefan/.cache/container_builder/.workfolder_3343/final_image
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - installing graph with prefix  /workspace/deepstream-test1/
2022-09-08 08:00:09,833 - Registry - INFO - Installing graph ...
2022-09-08 08:00:09,860 - Registry - INFO - 
Requested target configuration: 
  arch: aarch64 os: linux distribution: ubuntu_20.04 cuda: 11.4 cudnn: 8.4.1 tensorrt: 8.4.1 deepstream: 6.1.1 vpi: 2.1.5 

Selected extension variants: 
StandardExtension 
  Version: 2.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 cuda: 11.4 
MultimediaExtension 
  Version: 2.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 
NvDsInterfaceExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsBaseExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsSourceExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsMuxDemuxExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsInferenceExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsSampleModelsExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsOutputSinkExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsVisualizationExt 
  Version: 1.0.2 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsInferenceUtilsExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 

2022-09-08 08:02:39,181 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - unpacking extension archives: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/deepstream-test1.tar.gz
2022-09-08 08:02:44,899 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - graph /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml installed by registry
2022-09-08 08:02:44,899 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - get existing repo list: ngc-public,default
2022-09-08 08:02:44,899 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - registry closed
2022-09-08 08:02:44,900 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - work folder: /home/stefan/.cache/container_builder/.workfolder_3343 is ready
2022-09-08 08:02:44,900 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - start build docker file /home/stefan/.cache/container_builder/.dockerfile_3343
2022-09-08 08:02:44,900 - ContainerBuilder.container_builder.docker_manager.docker_builder - DEBUG - starting build image <docker-container-registry>:deepstream-test1-jetson with network host
Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 598, in urlopen
  File "urllib3/connectionpool.py", line 357, in _make_request
  File "http/client.py", line 1256, in request
  File "http/client.py", line 1302, in _send_request
  File "http/client.py", line 1251, in endheaders
  File "http/client.py", line 1050, in _send_output
  File "http/client.py", line 972, in send
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests/adapters.py", line 430, in send
  File "urllib3/connectionpool.py", line 638, 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 598, in urlopen
  File "urllib3/connectionpool.py", line 357, in _make_request
  File "http/client.py", line 1256, in request
  File "http/client.py", line 1302, in _send_request
  File "http/client.py", line 1251, in endheaders
  File "http/client.py", line 1050, in _send_output
  File "http/client.py", line 972, in send
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "container_builder/cli/cli.py", line 59, in <module>
  File "container_builder/cli/cli.py", line 53, in main
  File "container_builder/cli/container_builder_runtime.py", line 44, in build
  File "container_builder/docker_manager/docker_manager.py", line 457, in build_main_yaml
  File "container_builder/docker_manager/docker_manager.py", line 527, in build_stage_image
  File "container_builder/docker_manager/docker_builder.py", line 119, in build_from
  File "container_builder/docker_manager/docker_builder.py", line 69, in _internal_build
  File "docker/api/build.py", line 263, in build
  File "docker/utils/decorators.py", line 46, in inner
  File "docker/api/client.py", line 233, in _post
  File "requests/sessions.py", line 555, in post
  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.', ConnectionResetError(104, 'Connection reset by peer'))
[3343] Failed to execute script 'cli' due to unhandled exception!
h_composer-2.0.1_arm64.deb to dst: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/tmp
2022-09-08 08:00:07,880 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - DEBUG - copying src: /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/parameters.yaml to dst: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/workspace/deepstream-test1
2022-09-08 08:00:07,880 - ContainerBuilder.container_builder.docker_manager.docker_workfolder - INFO - Work folder: /home/stefan/.cache/container_builder/.workfolder_3343/final_image is ready
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - getting registry version
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - get existing repo list: ngc-public,default
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - starting install graph /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml
2022-09-08 08:00:09,829 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - copying graph_file: /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml to dst: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/workspace/deepstream-test1/deepstream-test1.yaml
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - downloading extension archives into /home/stefan/.cache/container_builder/.workfolder_3343/final_image
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - generate graph manifest /workspace/deepstream-test1/deepstream-test1_manifest.yaml
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - installing registry on graph ['/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml']
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - installing graph in archive folder  /home/stefan/.cache/container_builder/.workfolder_3343/final_image
2022-09-08 08:00:09,830 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - installing graph with prefix  /workspace/deepstream-test1/
2022-09-08 08:00:09,833 - Registry - INFO - Installing graph ...
2022-09-08 08:00:09,860 - Registry - INFO - 
Requested target configuration: 
  arch: aarch64 os: linux distribution: ubuntu_20.04 cuda: 11.4 cudnn: 8.4.1 tensorrt: 8.4.1 deepstream: 6.1.1 vpi: 2.1.5 

Selected extension variants: 
StandardExtension 
  Version: 2.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 cuda: 11.4 
MultimediaExtension 
  Version: 2.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 
NvDsInterfaceExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsBaseExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsSourceExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsMuxDemuxExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsInferenceExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsSampleModelsExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsOutputSinkExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsVisualizationExt 
  Version: 1.0.2 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 
NvDsInferenceUtilsExt 
  Version: 1.0.0 Variant: arch: aarch64 os: linux distribution: ubuntu_20.04 deepstream: 6.1.1 

2022-09-08 08:02:39,181 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - unpacking extension archives: /home/stefan/.cache/container_builder/.workfolder_3343/final_image/deepstream-test1.tar.gz
2022-09-08 08:02:44,899 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - graph /opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/deepstream-test1.yaml installed by registry
2022-09-08 08:02:44,899 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - get existing repo list: ngc-public,default
2022-09-08 08:02:44,899 - ContainerBuilder.container_builder.docker_manager.graph_handler - DEBUG - registry closed
2022-09-08 08:02:44,900 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - work folder: /home/stefan/.cache/container_builder/.workfolder_3343 is ready
2022-09-08 08:02:44,900 - ContainerBuilder.container_builder.docker_manager.docker_manager - INFO - start build docker file /home/stefan/.cache/container_builder/.dockerfile_3343
2022-09-08 08:02:44,900 - ContainerBuilder.container_builder.docker_manager.docker_builder - DEBUG - starting build image <docker-container-registry>:deepstream-test1-jetson with network host
Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 598, in urlopen
  File "urllib3/connectionpool.py", line 357, in _make_request
  File "http/client.py", line 1256, in request
  File "http/client.py", line 1302, in _send_request
  File "http/client.py", line 1251, in endheaders
  File "http/client.py", line 1050, in _send_output
  File "http/client.py", line 972, in send
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests/adapters.py", line 430, in send
  File "urllib3/connectionpool.py", line 638, 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 598, in urlopen
  File "urllib3/connectionpool.py", line 357, in _make_request
  File "http/client.py", line 1256, in request
  File "http/client.py", line 1302, in _send_request
  File "http/client.py", line 1251, in endheaders
  File "http/client.py", line 1050, in _send_output
  File "http/client.py", line 972, in send
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "container_builder/cli/cli.py", line 59, in <module>
  File "container_builder/cli/cli.py", line 53, in main
  File "container_builder/cli/container_builder_runtime.py", line 44, in build
  File "container_builder/docker_manager/docker_manager.py", line 457, in build_main_yaml
  File "container_builder/docker_manager/docker_manager.py", line 527, in build_stage_image
  File "container_builder/docker_manager/docker_builder.py", line 119, in build_from
  File "container_builder/docker_manager/docker_builder.py", line 69, in _internal_build
  File "docker/api/build.py", line 263, in build
  File "docker/utils/decorators.py", line 46, in inner
  File "docker/api/client.py", line 233, in _post
  File "requests/sessions.py", line 555, in post
  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.', ConnectionResetError(104, 'Connection reset by peer'))
[3343] Failed to execute script 'cli' due to unhandled exception!

Maybe the file “/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/ds_test1_container_builder_jetson.yaml” is not well configured.
My gitlab server (locally) is reached via ssh at gitlab.homebase.local at port 2223.

stefan@ubuntu20:/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1$ ssh -l git 192.168.30.200 -p 2223
PTY allocation request failed on channel 0
Welcome to GitLab, @root!
Connection to 192.168.30.200 closed.

Please have a look at the parameter “image_name”. It seems that the value in here isn`t correctly set.
What is your opinion?

“/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1/ds_test1_container_builder_jetson.yaml” :

%YAML 1.2
################################################################################
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA Corporation is strictly prohibited.
#
################################################################################
---
# final stage
unique_stage: final_image
base_image: auto
stage_model: clean_stage

local_copy_files:
- src: "/opt/nvidia/graph-composer/graph_composer-2.0.1_arm64.deb"
  dst: "/tmp/"
- src: "parameters.yaml"
  dst: "/workspace/deepstream-test1/" # ends with '/' is folder

apt_deps:
- rsync

custom_runs:
 - "apt install -y /tmp/graph_composer-2.0.1_arm64.deb && rm -rf /tmp/graph_composer-2.0.1_arm64.deb"

work_folder: /workspace/deepstream-test1/

env_list:
  PATH: "/opt/nvidia/graph-composer/:$PATH"
  LD_LIBRARY_PATH: "/opt/nvidia/graph-composer/:$LD_LIBRARY_PATH"
  DISPLAY: ":0"

# Setup entrypoint
entrypoint:
- "gxe"
- "--manifest"
- "deepstream-test1_manifest.yaml"
- "--app"
- "deepstream-test1.yaml,parameters.yaml"
---
# Container Builder Config
container_builder: main # required
graph:
  graph_files: [ deepstream-test1.yaml ]
  graph_dst: /workspace/deepstream-test1/
  manifest_dst: /workspace/deepstream-test1/deepstream-test1_manifest.yaml
  ext_install_root: /workspace/deepstream-test1/
docker_build:
    image_name: git@gitlab.homebase.local:2223/deepstream-test1-jetson

Had the solution found in setting the right name in attribute “Image_name” of “ds_test1_container_builder_jetson.yaml”. No sign @ seems to be allowed.

docker_build:
    image_name: stefan/deepstream-test1-jetson
stefan@ubuntu20:/opt/nvidia/deepstream/deepstream-6.1/reference_graphs/deepstream-test1$ docker images
REPOSITORY                                                  TAG             IMAGE ID       CREATED         SIZE
gitlab.homebase.local:2223/stefan/deepstream-test1-jetson   version1.0      00149d9807c7   23 hours ago    8.63GB
gitlab.homebase.local:2223/stefan/deepstream-test1-jetson   version1.1      00149d9807c7   23 hours ago    8.63GB
stefan/deepstream-test1-jetson                              latest          00149d9807c7   23 hours ago    8.63GB
stefan/deepstream-test1-jetson                              version1.0      00149d9807c7   23 hours ago    8.63GB
gitlab.homebase.local/stefan/deepstream-test1-jetson        version1.2      00149d9807c7   23 hours ago    8.63GB
ubuntu                                                      latest          2dc39ba059dc   7 days ago      77.8MB
nvcr.io/nvidia/deepstream-l4t                               6.1.1-samples   984790dbabf2   2 weeks ago     7.52GB
hello-world                                                 latest          feb5d9fea6a5   11 months ago   13.3kB

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