[ ERROR :: push-container-torizon-debug-arm64 failed with exit code 1] - VS Code IDE Extension Issue Report (e343f24c37855abd4f2e66344c95a867)

OS: linux :: x64 :: WSL 2
Distro: Ubuntu 22.04.2 LTS
Extension activation logs:

 Activating Torizon IDE ...
 Telemetry is enabled
 Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information. Check: https://github.com/toradex/torizon-experimental-torizon-ide-v2-docs/blob/main/USAGE-DATA.md#opt-out
 Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
 Resolving host IP address ...
 Host IP address OK
 Docker installed OK
 Docker running OK
 Docker compose OK
 PowerShell OK
 git OK
 dig OK
 avahi-resolve OK
 nmap OK
 iputils-ping OK
 file OK
 sshpass OK
 net-tools OK
 Cloning project templates
 Project templates clone OK
 Checkout templates repo to dev OK
 Project templates updated
 Checking connected devices ...
 Scanning Torizon devices ...
 Configuring debug id_rsa ...
 Debug id_rsa OK
 Torizon IDE extension activated
 Checking host ip sanity ...
 Host ip is OK
 Device 192.168.1.26 set as Docker Host
 Debian bookworm packages list load OK
 Checking host ip sanity ...
 Host ip is OK
 Device 192.168.1.26 set as Docker Host
 Scanning Torizon devices ...
 WARNING :: Device verdin-imx8mp-15036658 is already registered
 Checking host ip sanity ...
 Host ip is OK
 Device 192.168.1.26 set as Docker Host
 ERROR :: push-container-torizon-debug-arm64 failed with exit code 1
 ERROR :: push-container-torizon-debug-arm64 failed with exit code 1

Tasks logs:

 *  Executing task: bash -c [[ ! -z "192.168.1.26" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: /bin/python3 -m pip install -r requirements-debug.txt 

Defaulting to user installation because normal site-packages is not writeable
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sleep 1 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/agriai/torizon/tflitedemo/docker-compose.yml torizon@192.168.1.26:~/ 

Warning: Permanently added '192.168.1.26' (ED25519) to the list of known hosts.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no torizon@192.168.1.26 LOCAL_REGISTRY=192.168.1.2 TAG=arm64 GPU=-vivante docker-compose down --remove-orphans 

Warning: Permanently added '192.168.1.26' (ED25519) to the list of known hosts.
time="2023-11-22T11:17:21Z" level=warning msg="The \"DOCKER_LOGIN\" variable is not set. Defaulting to a blank string."
 Container torizon-kiosk-1  Stopping
 Container torizon-portainer-1  Stopping
 Container torizon-portainer-1  Stopping
 Container torizon-weston-1  Stopping
 Container torizon-weston-1  Stopping
 Container torizon-kiosk-1  Stopping
 Container torizon-weston-1  Stopped
 Container torizon-weston-1  Removing
 Container torizon-weston-1  Removed
 Container torizon-portainer-1  Stopped
 Container torizon-portainer-1  Removing
 Container torizon-portainer-1  Removed
 Container torizon-kiosk-1  Stopped
 Container torizon-kiosk-1  Removing
 Container torizon-kiosk-1  Removed
 Network torizon_default  Removing
 Network torizon_default  Removed
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg IMAGE_ARCH=arm64 --build-arg SSH_DEBUG_PORT=6502 py-tflite-npu-demo-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Building 8272.3s (38/38) FINISHED                                                                                                                                                                               docker:default
 => [py-tflite-npu-demo-debug internal] load build definition from Dockerfile.debug                                                                                                                                           0.0s
 => => transferring dockerfile: 6.24kB                                                                                                                                                                                        0.0s
 => [py-tflite-npu-demo-debug internal] load .dockerignore                                                                                                                                                                    0.0s
 => => transferring context: 117B                                                                                                                                                                                             0.0s
 => [py-tflite-npu-demo-debug internal] load metadata for docker.io/torizon/debian:3-bookworm                                                                                                                                 3.0s
 => [py-tflite-npu-demo-debug auth] torizon/debian:pull token for registry-1.docker.io                                                                                                                                        0.0s
 => [py-tflite-npu-demo-debug internal] load build context                                                                                                                                                                    0.1s
 => => transferring context: 8.56MB                                                                                                                                                                                           0.1s
 => [py-tflite-npu-demo-debug tflite-build  1/14] FROM docker.io/torizon/debian:3-bookworm@sha256:6fbb1be1ee08cfd61024e0fa4258ba152a9e2d44d36c3542bf00ce4783b5db0b                                                            0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  2/14] RUN apt-get -y update && apt-get install -y   python3 python3-dev python3-numpy python3-pybind11   python3-pip python3-setuptools python3-wheel   && apt-get clean   0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  3/14] RUN apt-get -y update && apt-get install -y     cmake build-essential gcc g++ git wget unzip patchelf     autoconf automake libtool curl gfortran                    0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  4/14] RUN apt-get -y update && apt-get install -y     zlib1g zlib1g-dev libssl-dev     imx-gpu-viv-wayland-dev openssl libffi-dev libjpeg-dev                              0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  5/14] WORKDIR /build                                                                                                                                                       0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  6/14] COPY recipes /build                                                                                                                                                  0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  7/14] RUN chmod +x nn-imx_1.3.0.sh                                                                                                                                         0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  8/14] RUN ./nn-imx_1.3.0.sh                                                                                                                                                0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  9/14] RUN chmod +x tim-vx.sh                                                                                                                                               0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build 10/14] RUN ./tim-vx.sh                                                                                                                                                      0.0s
 => [py-tflite-npu-demo-debug tflite-build 11/14] RUN chmod +x tensorflow-lite_2.9.1.sh                                                                                                                                       0.4s
 => [py-tflite-npu-demo-debug tflite-build 12/14] RUN ./tensorflow-lite_2.9.1.sh                                                                                                                                           4266.1s
 => [py-tflite-npu-demo-debug tflite-build 13/14] RUN chmod +x tflite-vx-delegate.sh                                                                                                                                          0.8s
 => [py-tflite-npu-demo-debug tflite-build 14/14] RUN ./tflite-vx-delegate.sh                                                                                                                                              3459.1s
 => CACHED [py-tflite-npu-demo-debug debug  2/19] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server     rsync     file     screen     python3-minimal     python3-pip     python3-setupto  0.0s
 => CACHED [py-tflite-npu-demo-debug debug  3/19] RUN apt-get -q -y update &&     apt-get -q -y install     &&     apt-get clean && apt-get autoremove &&     rm -rf /var/lib/apt/lists/*                                     0.0s
 => CACHED [py-tflite-npu-demo-debug debug  4/19] RUN apt-get -y update && apt-get install -y   python3 python3-dev python3-numpy python3-pybind11   python3-pip python3-setuptools python3-wheel   && apt-get clean && apt-  0.0s
 => [py-tflite-npu-demo-debug debug  5/19] COPY --from=tflite-build /build /build                                                                                                                                             0.4s
 => [py-tflite-npu-demo-debug debug  6/19] RUN cp -r /build/* /                                                                                                                                                               1.0s
 => [py-tflite-npu-demo-debug debug  7/19] RUN pip3 install --break-system-packages --no-cache-dir /tflite_runtime-*.whl && rm -rf *.whl                                                                                      4.2s
 => [py-tflite-npu-demo-debug debug  8/19] RUN apt-get -y update && apt-get install -y     libovxlib                                                                                                                         39.3s
 => [py-tflite-npu-demo-debug debug  9/19] RUN apt-get -y update && apt-get install -y   wget unzip python3-pil imx-gpu-viv-wayland-dev   && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*              50.9s
 => [py-tflite-npu-demo-debug debug 10/19] RUN apt-get -y update && apt-get install -y --no-install-recommends      python3-opencv     && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*                161.1s
 => [py-tflite-npu-demo-debug debug 11/19] RUN apt-get -y update && apt-get install -y --no-install-recommends     pkg-config libavcodec-dev libavformat-dev libswscale-dev     libtbbmalloc2 libtbb-dev libjpeg-dev libpn  143.1s
 => [py-tflite-npu-demo-debug debug 12/19] RUN apt-get -y update && apt-get install -y --no-install-recommends libgstreamer1.0-0     gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad     gstre  80.6s
 => [py-tflite-npu-demo-debug debug 13/19] RUN python3 -m venv ${APP_ROOT}/.venv --system-site-packages                                                                                                                      20.4s
 => [py-tflite-npu-demo-debug debug 14/19] COPY requirements-debug.txt /requirements-debug.txt                                                                                                                                0.0s
 => [py-tflite-npu-demo-debug debug 15/19] RUN . ${APP_ROOT}/.venv/bin/activate &&     pip3 install --upgrade pip && pip3 install -r requirements-debug.txt &&     rm requirements-debug.txt                                 17.3s
 => [py-tflite-npu-demo-debug debug 16/19] COPY .conf/id_rsa.pub /id_rsa.pub                                                                                                                                                  0.0s
 => [py-tflite-npu-demo-debug debug 17/19] RUN mkdir /var/run/sshd &&     sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g'         -i /etc/pam.d/sshd &&     if test torizon != root ;         0.8s
 => [py-tflite-npu-demo-debug debug 18/19] RUN rm -r /etc/ssh/ssh*key &&     dpkg-reconfigure openssh-server                                                                                                                 13.9s
 => [py-tflite-npu-demo-debug debug 19/19] COPY demos .                                                                                                                                                                       0.1s
 => [py-tflite-npu-demo-debug] exporting to image                                                                                                                                                                             4.9s
 => => exporting layers                                                                                                                                                                                                       4.9s
 => => writing image sha256:9fa1ccc568824f76137beec3eea35aee10382cef582d290884f58491c5015da4                                                                                                                                  0.0s
 => => naming to localhost:5002/py-tflite-npu-demo-debug:arm64                                                                                                                                                                0.0s
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose push py-tflite-npu-demo-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
Get "http://localhost:5002/v2/": dial tcp [::1]:5002: connect: connection refused

 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST= docker compose push py-tflite-npu-demo-debug'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ ! -z "192.168.1.26" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: /bin/python3 -m pip install -r requirements-debug.txt 

Defaulting to user installation because normal site-packages is not writeable
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sleep 1 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/agriai/torizon/tflitedemo/docker-compose.yml torizon@192.168.1.26:~/ 

Warning: Permanently added '192.168.1.26' (ED25519) to the list of known hosts.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no torizon@192.168.1.26 LOCAL_REGISTRY=192.168.1.2 TAG=arm64 GPU=-vivante docker-compose down --remove-orphans 

Warning: Permanently added '192.168.1.26' (ED25519) to the list of known hosts.
time="2023-11-22T22:20:11Z" level=warning msg="The \"DOCKER_LOGIN\" variable is not set. Defaulting to a blank string."
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg IMAGE_ARCH=arm64 --build-arg SSH_DEBUG_PORT=6502 py-tflite-npu-demo-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Building 2.7s (38/38) FINISHED                                                                                                                                                                                  docker:default
 => [py-tflite-npu-demo-debug internal] load .dockerignore                                                                                                                                                                    0.0s
 => => transferring context: 117B                                                                                                                                                                                             0.0s
 => [py-tflite-npu-demo-debug internal] load build definition from Dockerfile.debug                                                                                                                                           0.0s
 => => transferring dockerfile: 6.24kB                                                                                                                                                                                        0.0s
 => [py-tflite-npu-demo-debug internal] load metadata for docker.io/torizon/debian:3-bookworm                                                                                                                                 2.5s
 => [py-tflite-npu-demo-debug auth] torizon/debian:pull token for registry-1.docker.io                                                                                                                                        0.0s
 => [py-tflite-npu-demo-debug internal] load build context                                                                                                                                                                    0.0s
 => => transferring context: 13.78kB                                                                                                                                                                                          0.0s
 => [py-tflite-npu-demo-debug tflite-build  1/14] FROM docker.io/torizon/debian:3-bookworm@sha256:6fbb1be1ee08cfd61024e0fa4258ba152a9e2d44d36c3542bf00ce4783b5db0b                                                            0.0s
 => CACHED [py-tflite-npu-demo-debug debug  2/19] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server     rsync     file     screen     python3-minimal     python3-pip     python3-setupto  0.0s
 => CACHED [py-tflite-npu-demo-debug debug  3/19] RUN apt-get -q -y update &&     apt-get -q -y install     &&     apt-get clean && apt-get autoremove &&     rm -rf /var/lib/apt/lists/*                                     0.0s
 => CACHED [py-tflite-npu-demo-debug debug  4/19] RUN apt-get -y update && apt-get install -y   python3 python3-dev python3-numpy python3-pybind11   python3-pip python3-setuptools python3-wheel   && apt-get clean && apt-  0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  2/14] RUN apt-get -y update && apt-get install -y   python3 python3-dev python3-numpy python3-pybind11   python3-pip python3-setuptools python3-wheel   && apt-get clean   0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  3/14] RUN apt-get -y update && apt-get install -y     cmake build-essential gcc g++ git wget unzip patchelf     autoconf automake libtool curl gfortran                    0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  4/14] RUN apt-get -y update && apt-get install -y     zlib1g zlib1g-dev libssl-dev     imx-gpu-viv-wayland-dev openssl libffi-dev libjpeg-dev                              0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  5/14] WORKDIR /build                                                                                                                                                       0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  6/14] COPY recipes /build                                                                                                                                                  0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  7/14] RUN chmod +x nn-imx_1.3.0.sh                                                                                                                                         0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  8/14] RUN ./nn-imx_1.3.0.sh                                                                                                                                                0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build  9/14] RUN chmod +x tim-vx.sh                                                                                                                                               0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build 10/14] RUN ./tim-vx.sh                                                                                                                                                      0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build 11/14] RUN chmod +x tensorflow-lite_2.9.1.sh                                                                                                                                0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build 12/14] RUN ./tensorflow-lite_2.9.1.sh                                                                                                                                       0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build 13/14] RUN chmod +x tflite-vx-delegate.sh                                                                                                                                   0.0s
 => CACHED [py-tflite-npu-demo-debug tflite-build 14/14] RUN ./tflite-vx-delegate.sh                                                                                                                                          0.0s
 => CACHED [py-tflite-npu-demo-debug debug  5/19] COPY --from=tflite-build /build /build                                                                                                                                      0.0s
 => CACHED [py-tflite-npu-demo-debug debug  6/19] RUN cp -r /build/* /                                                                                                                                                        0.0s
 => CACHED [py-tflite-npu-demo-debug debug  7/19] RUN pip3 install --break-system-packages --no-cache-dir /tflite_runtime-*.whl && rm -rf *.whl                                                                               0.0s
 => CACHED [py-tflite-npu-demo-debug debug  8/19] RUN apt-get -y update && apt-get install -y     libovxlib                                                                                                                   0.0s
 => CACHED [py-tflite-npu-demo-debug debug  9/19] RUN apt-get -y update && apt-get install -y   wget unzip python3-pil imx-gpu-viv-wayland-dev   && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*        0.0s
 => CACHED [py-tflite-npu-demo-debug debug 10/19] RUN apt-get -y update && apt-get install -y --no-install-recommends      python3-opencv     && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*           0.0s
 => CACHED [py-tflite-npu-demo-debug debug 11/19] RUN apt-get -y update && apt-get install -y --no-install-recommends     pkg-config libavcodec-dev libavformat-dev libswscale-dev     libtbbmalloc2 libtbb-dev libjpeg-dev   0.0s
 => CACHED [py-tflite-npu-demo-debug debug 12/19] RUN apt-get -y update && apt-get install -y --no-install-recommends libgstreamer1.0-0     gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad      0.0s
 => CACHED [py-tflite-npu-demo-debug debug 13/19] RUN python3 -m venv ${APP_ROOT}/.venv --system-site-packages                                                                                                                0.0s
 => CACHED [py-tflite-npu-demo-debug debug 14/19] COPY requirements-debug.txt /requirements-debug.txt                                                                                                                         0.0s
 => CACHED [py-tflite-npu-demo-debug debug 15/19] RUN . ${APP_ROOT}/.venv/bin/activate &&     pip3 install --upgrade pip && pip3 install -r requirements-debug.txt &&     rm requirements-debug.txt                           0.0s
 => CACHED [py-tflite-npu-demo-debug debug 16/19] COPY .conf/id_rsa.pub /id_rsa.pub                                                                                                                                           0.0s
 => CACHED [py-tflite-npu-demo-debug debug 17/19] RUN mkdir /var/run/sshd &&     sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g'         -i /etc/pam.d/sshd &&     if test torizon != root ;  0.0s
 => CACHED [py-tflite-npu-demo-debug debug 18/19] RUN rm -r /etc/ssh/ssh*key &&     dpkg-reconfigure openssh-server                                                                                                           0.0s
 => CACHED [py-tflite-npu-demo-debug debug 19/19] COPY demos .                                                                                                                                                                0.0s
 => [py-tflite-npu-demo-debug] exporting to image                                                                                                                                                                             0.0s
 => => exporting layers                                                                                                                                                                                                       0.0s
 => => writing image sha256:9fa1ccc568824f76137beec3eea35aee10382cef582d290884f58491c5015da4                                                                                                                                  0.0s
 => => naming to localhost:5002/py-tflite-npu-demo-debug:arm64                                                                                                                                                                0.0s
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose push py-tflite-npu-demo-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
Get "http://localhost:5002/v2/": dial tcp [::1]:5002: connect: connection refused

 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST= docker compose push py-tflite-npu-demo-debug'" failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

Reported by: @btj2

If you have more data that you think that is interesting from the context of the issue please reply below.

Thanks :robot:

Hi @btj2 ,

Do you need help on this?

If so, can you give more details on your issue? Apparently the extension couldnt push the debug image to the local registry created in your development PC, it looks like a connection or permission problem.

Best regards,
Lucas Akira