Torizon VSCode Extension: rsync error 127 deploying Python application

  • Verdin iMX8M Plus
  • Dahlia rev1.1 carrier board
  • Visual Studio Code version 1.63.2 (run as admin)
  • Toradex Torizon Support extension v1.3.0
  • Windows 11 2200.434
  • Docker version 20.10.12
  • WSL version 2 kernel version 5.10.16
  • Connected to the board via SSH (wlan0)
  • Using the unmodified Torizon Python 3 console application example, target platform set to arm64v8-debian-python3_bullseye

Full output is below but it looks like I have two issues at hand:

  1. I get a warning “The requested image’s platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested”
  2. Rsync error 127 (what does this mean?)

Any help is appreciated!

[00-20 12:07:20.468] Initializing Torizon Extension

[00-20 12:07:20.470] Checking system setup...

[00-20 12:07:21.983] Checking Moses ...

[00-20 12:07:21.983] Starting backend local instance running on port 5000

[00-20 12:07:29.132] Torizon Backend version 1.0 API version: 1.0

[00-20 12:07:29.133] Torizon IDE backend started

[00-20 12:07:29.133] Checking Docker ...

[00-20 12:07:29.163] Docker version 20.10.12 build 459d0df

[00-20 12:07:29.366] Trying connect to Toradex Verdin iMX8M Plus WB on Verdin Development Board(06965639)

[00-20 12:07:30.245] ARM emulation enabled.

[00-20 12:07:30.526] Active configuration has been selected 23804943-d425-40ed-938c-3909bfccf7f0, updating it.

[00-20 12:07:30.528] Initializing Torizon Python application.

[00-20 12:07:30.585] Torizon: Python 3 arm64v8 bullseye - test - 23804943-d425-40ed-938c-3909bfccf7f0

[00-20 12:07:30.596] LA_OPT_NXP_Software_License v5 January 2019 EULA accepted

[00-20 12:08:35.824] Trying connect to Toradex Verdin iMX8M Plus WB on Verdin Development Board(06965639)

[00-20 12:09:15.372] Toradex Verdin iMX8M Plus WB on Verdin Development Board(06965639) connected

[00-20 12:09:15.451] Toradex Verdin iMX8M Plus WB on Verdin Development Board(06965639) connected

[00-20 12:09:15.452] Torizon: all devices refreshed

[00-20 12:09:45.612] Preparing debug environment for Python application...

[00-20 12:09:45.612] No preLaunchTask configured.

[00-20 12:09:45.613] Selecting device...

[00-20 12:09:45.617] Device 06965639 selected.

[00-20 12:09:45.617] Updating app configuration...

[00-20 12:09:45.666] Image is not up to date, building it (this may take some time)...

[00-20 12:09:45.994] Step 1/16 : FROM --platform=linux/arm64 torizon/debian:2-bullseye

[00-20 12:09:46.395] ---> 09f59e511484

[00-20 12:09:46.399] Step 2/16 : EXPOSE 6502

[00-20 12:09:46.400] ---> Using cache

[00-20 12:09:46.400] ---> d13d57318ed1

[00-20 12:09:46.400] Step 3/16 : ARG SSHUSERNAME=torizon

[00-20 12:09:46.401] ---> Using cache

[00-20 12:09:46.401] ---> 3a37a471a55c

[00-20 12:09:46.401] Step 4/16 : ENV DEBIAN_FRONTEND="noninteractive"

[00-20 12:09:46.402] ---> Using cache

[00-20 12:09:46.403] ---> 3f8041464702

[00-20 12:09:46.404] Step 5/16 : RUN apt-get update     && apt-get install -y --no-install-recommends     dos2unix     python3-minimal     python3-pip     python3-setuptools     && rm -rf /var/lib/apt/lists/*

[00-20 12:09:46.404] ---> Using cache

[00-20 12:09:46.405] ---> 0a94b77f6cd7

[00-20 12:09:46.405] Step 6/16 : RUN pip3 install --upgrade pip

[00-20 12:09:46.405] ---> Using cache

[00-20 12:09:46.406] ---> bc1b45fd2910

[00-20 12:09:46.406] Step 7/16 : RUN pip3 install debugpy

[00-20 12:09:46.407] ---> Using cache

[00-20 12:09:46.408] ---> 3ef21eb3728e

[00-20 12:09:46.408] Step 8/16 : RUN if [ ! -z "" ]; then     apt-get -q -y update     && apt-get -q -y install      && rm -rf /var/lib/apt/lists/* ;     fi

[00-20 12:09:46.428] ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

[00-20 12:09:46.431] ---> Running in 4de812f5a2ab

[00-20 12:09:47.230] ---> b22f28d5ff1f

[00-20 12:09:47.234] Step 9/16 : COPY work/setup.sh /setup.sh

[00-20 12:09:47.359] ---> b85e849240b9

[00-20 12:09:47.362] Step 10/16 : COPY work/cleanup.sh /cleanup.sh

[00-20 12:09:47.478] ---> d82969c92fb3

[00-20 12:09:47.481] Step 11/16 : COPY work/requirements.txt /requirements.txt

[00-20 12:09:47.580] ---> 36daacbbd00d

[00-20 12:09:47.583] Step 12/16 : WORKDIR /

[00-20 12:09:47.606] ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

[00-20 12:09:47.609] ---> Running in a8ba8030d9fc

[00-20 12:09:47.669] ---> b17ec0407a7c

[00-20 12:09:47.674] Step 13/16 : RUN dos2unix /requirements.txt &&    dos2unix /setup.sh &&    dos2unix /cleanup.sh &&    chmod a+x /setup.sh &&    chmod a+x /cleanup.sh &&    /setup.sh debug &&    pip install -r /requirements.txt &&    /cleanup.sh debug

[00-20 12:09:47.709] ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

[00-20 12:09:47.712] ---> Running in 6b08e88b0b5b

[00-20 12:09:48.136] e[91mdos2unix: e[0m

[00-20 12:09:48.140] e[91mconverting file /requirements.txt to Unix format...

e[0m

[00-20 12:09:48.165] e[91mdos2unix: e[0m

[00-20 12:09:48.170] e[91mconverting file /setup.sh to Unix format...

e[0m

[00-20 12:09:48.195] e[91mdos2unix: e[0m

[00-20 12:09:48.199] e[91mconverting file /cleanup.sh to Unix format...

e[0m

[00-20 12:09:48.287] This is a debug build

[00-20 12:09:49.723] e[91mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

e[0m

[00-20 12:09:49.873] This is a debug build

[00-20 12:09:50.266] ---> 77fbbac2b0f2

[00-20 12:09:50.270] Step 14/16 : RUN echo "#!/bin/sh" > /startptvsd &&     echo "cd /test" >> /startptvsd &&     echo "echo \"running test\"" >> /startptvsd &&     echo "/usr/bin/python3 -m debugpy --listen 0.0.0.0:6502 --wait-for-client main.py " >> /startptvsd &&     chmod a+x /startptvsd

[00-20 12:09:50.296] ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

[00-20 12:09:50.299] ---> Running in 1275fb83cc9e

[00-20 12:09:51.130] ---> 48e8de177f3b

[00-20 12:09:51.134] Step 15/16 : USER torizon

[00-20 12:09:51.159] ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

[00-20 12:09:51.164] ---> Running in aa34ed2800e6

[00-20 12:09:51.224] ---> 12c23ef88af4

[00-20 12:09:51.226] Step 16/16 : CMD /startptvsd

[00-20 12:09:51.250] ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

[00-20 12:09:51.253] ---> Running in 842afdf58ee4

[00-20 12:09:51.308] ---> 972bd5331725

[00-20 12:09:51.310] Successfully built 972bd5331725

[00-20 12:09:51.315] Successfully tagged test_arm64v8-debian-python3_bullseye_debug_23804943-d425-40ed-938c-3909bfccf7f0:latest

[00-20 12:09:51.375] Deploying image to device (may take a few minutes)...

[00-20 12:09:51.594] Image not found on target device.

[00-20 12:09:51.594] Exporting local image.

[00-20 12:09:53.765] Image exported, deploying to the target.

[00-20 12:11:12.816] Loading layer - e6712d2ce998

[00-20 12:11:12.946] Loading layer - e6712d2ce998

[00-20 12:11:12.993] Loading layer - d5e0ab35c28e

[00-20 12:11:13.038] Loading layer - d5e0ab35c28e

[00-20 12:11:13.185] Loading layer - 99c32cfebcb3

[00-20 12:11:13.235] Loading layer - 99c32cfebcb3

[00-20 12:11:13.368] Loading layer - 634402ff7a02

[00-20 12:11:13.458] Loading layer - 634402ff7a02

[00-20 12:11:13.537] Loading layer - 8c44b5463896

[00-20 12:11:13.579] Loading layer - 8c44b5463896

[00-20 12:11:13.733] Loaded image ID: sha256:972bd53317254e8c7c9475868b1a7f0361f73f2a17ca59fa9fe0c5b2a58524b8

[00-20 12:11:13.912] Deploying application to device...

[00-20 12:11:14.167] Image deployed.

[00-20 12:11:14.252] Rsync cmd: wsl rsync -r --copy-unsafe-links -p -g -o -t -q --delete --exclude-from=/mnt/host/c/Users/jpwri/Documents/test/.rsync-exclude-list /mnt/host/c/Users/jpwri/Documents/test/ /mnt/host/c/Users/jpwri/Documents/test/appconfig_0/work/test/

[00-20 12:11:14.252] Rsync error: 127

[00-20 12:11:14.252] Rsync error 127

OK I figured this out on my own, and naturally it was because I missed a step in the build instructions, namely installing rsync in the WSL Ubuntu distro: Configure Build Environment for Torizon Containers

I still get the warning about the requested image platform, although it does not seem to have an impact.

Good to hear you were able to work it out!

Regarding the platform warning. As you noticed this can be safely ignored with no consequence.

Best Regards,
Jeremias