I started a new project to figure out how to get my existing project to work. So, I created a helloworld C++ project using the torizon templates. Everything went swimmingly until near the end. there are a couple of warndings, but the error is at the end. Here are the logs:
Executing task: xonsh .conf/validate-deps-running.xsh
VALIDATING ENVIRONMENT
OS: Linux
OS Version: 6.6.87.2-microsoft-standard-WSL2
OS Arch: x86_64
Under WSL: Ubuntu-24.04
VS Code:
1.106.3
bf9252a2fb45be6893dd8870c0bf37e2e1766d61
x64
TOR Extension: toradex.apollox-vscode@3.2.3
Environment is valid!
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: bash -c [[ ! -z “192.168.6.241” ]] && true || false
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: bash -c [[ “arm64” == “arm64” ]] && true || false
-
Executing task: sshpass -p password scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PubkeyAuthentication=no /home/steve/HelloWorldcpp/docker-compose.yml torizon@192.168.6.241:~/
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: /home/steve/HelloWorldcpp/.conf/remove-dangling-images.xsh 192.168.6.241:2375
Waiting for prune lock on host 192.168.6.241:2375
Pruning dangling images on 192.168.6.241:2375
Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.41
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: docker compose -p torizon stop helloworldcpp helloworldcpp-debug && docker compose -p torizon rm -f helloworldcpp helloworldcpp-debug && sleep 1
No stopped containers
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: xonsh /home/steve/HelloWorldcpp/.conf/torizon-packages.xsh arm64
Applying torizonPackages.json:
Applying to Dockerfile.debug …
Dockerfile.debug
Applying to Dockerfile.sdk …
Dockerfile.sdk
Applying to Dockerfile …
Dockerfile
torizonPackages.json applied
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST= docker build --pull -f /home/steve/HelloWorldcpp/Dockerfile.sdk /home/steve/HelloWorldcpp -t cross-toolchain-arm64-helloworldcpp --build-arg IMAGE_ARCH=arm64 --build-arg GPU=-imx8 --build-arg APP_ROOT=/home/torizon/app
[+] Building 21.9s (8/8) FINISHED docker:default
=> [internal] load build definition from Dockerfile.sdk 0.0s
=> => transferring dockerfile: 1.06kB 0.0s
=> WARN: InvalidDefaultArgInFrom: Default value for ARG torizon/cross- 0.0s
=> [internal] load metadata for docker.io/torizon/cross-toolchain-arm6 2.3s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 56B 0.0s
=> [1/4] FROM docker.io/torizon/cross-toolchain-arm64:4@sha256:65007e 10.5s
=> => resolve docker.io/torizon/cross-toolchain-arm64:4@sha256:65007ec 0.0s
Lines Skipped due to post limitations
=> [2/4] RUN apt-get -q -y update && apt-get -q -y install && 4.4s
=> [3/4] RUN apt-get -q -y update && apt-get -q -y install && 4.2s
=> [4/4] WORKDIR /home/torizon/app 0.3s
=> exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:81fde3946f4fe5cb9c4ebff48b1ada9755488718c67 0.0s
=> => naming to Docker Hub Container Image Library | App Containerization 0.0s
1 warning found (use docker --debug to expand):
-
InvalidDefaultArgInFrom: Default value for ARG torizon/cross-toolchain-${IMAGE_ARCH}:${CROSS_SDK_BASE_TAG} results in empty or invalid base image name (line 16)
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: make ARCH=arm64 makedir
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST= docker run --rm -v /home/steve/HelloWorldcpp:/home/torizon/app cross-toolchain-arm64-helloworldcpp make ARCH=arm64 CC=aarch64-linux-gnu-g++ debug
aarch64-linux-gnu-g++ -Iincludes/ -c -g -o build-arm64/debug/main.o src/main.cpp
aarch64-linux-gnu-g++ -Iincludes/ -g build-arm64/debug/main.o -o build-arm64/debug/helloWorrldCpp
-
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 APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg DEBUG_SSH_PORT=2230 --build-arg GPU=-imx8 helloworldcpp-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Building 64.2s (11/11) FINISHED
=> [internal] load local bake definitions 0.0s
=> => reading from stdin 788B 0.0s
=> [internal] load build definition from Dockerfile.debug 0.0s
=> => transferring dockerfile: 2.43kB 0.0s
=> [internal] load metadata for docker.io/torizon/debian:4 1.8s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 56B 0.0s
=> [1/5] FROM docker.io/torizon/debian:4@sha256:eafcfdf5ee95136c719b21 2.5s
=> => resolve docker.io/torizon/debian:4@sha256:eafcfdf5ee95136c719b21 0.0s
=> => sha256:98c8a97f54c806a3a980ae48a6ebf6d19b41459a3 2.56kB / 2.56kB 0.0s
Lines Skipped due to post limitation
=> [2/5] RUN apt-get -q -y update && apt-get -q -y install op 36.9s
=> [3/5] RUN apt-get -q -y update && apt-get -q -y install && 11.0s
=> [4/5] RUN mkdir /var/run/sshd && sed 's@session\srequired\spa 0.6s
=> [5/5] RUN rm -r /etc/ssh/ssh*key && dpkg-reconfigure openssh-s 10.8s
=> exporting to image 0.3s
=> => exporting layers 0.3s
=> => writing image sha256:e5a65c83a3c23f09d5a064ec28b5025b24134e247d3 0.0s
=> => naming to localhost:5002/helloworldcpp-debug:arm64 0.0s
=> resolving provenance for metadata file 0.0s
[+] Building 1/1
localhost:5002/helloworldcpp-debug:arm64 Built 0.0s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: DOCKER_HOST= docker compose push helloworldcpp-debug
WARN[0000] The “DOCKER_LOGIN” variable is not set. Defaulting to a blank string.
[+] Pushing 2/16
⠋ Pushing localhost:5002/helloworldcpp-debug:arm64: d599356eaa20 Pushing 1.719MB0.1s
Lines skipped due to posting limitations
Pushing localhost:5002/helloworldcpp-debug:arm64: 3e5d01a55aea Pushed 2.4s
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: /home/steve/.local/bin/xonsh /home/steve/HelloWorldcpp/.conf/spin-up-down-registry.xsh down password torizon 192.168.6.241 /home/steve/HelloWorldcpp
Error response from daemon: No such container: torizon-ide-port-tunnel
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: /home/steve/.local/bin/xonsh /home/steve/HelloWorldcpp/.conf/spin-up-down-registry.xsh up password torizon 192.168.6.241 /home/steve/HelloWorldcpp
Container Runtime: docker
Run Arguments: --rm -d --network host torizonextras/ide-port-tunnel:0.0.0 sshpass -p password ssh -vv -N -R 5002:localhost:5002 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PubkeyAuthentication=no torizon@192.168.6.241
Container Name: torizon-ide-port-tunnel
Container does not exist. Starting …
Cmd: docker run --name torizon-ide-port-tunnel --rm -d --network host torizonextras/ide-port-tunnel:0.0.0 sshpass -p password ssh -vv -N -R 5002:localhost:5002 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PubkeyAuthentication=no torizon@192.168.6.241
Unable to find image ‘torizonextras/ide-port-tunnel:0.0.0’ locally
0.0.0: Pulling from torizonextras/ide-port-tunnel
2d35ebdb57d9: Pull complete
526f04333b05: Pull complete
Digest: sha256:bb97aed7c548f682f2da5858e9ac5e085363a6114de706cd635021033463d56c
Status: Downloaded newer image for torizonextras/ide-port-tunnel:0.0.0
d88c5d3b9e3dd4adc116bc66984fd57f107e1146f8e90198bf7bc0e11e85e0a6
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task: xonsh /home/steve/HelloWorldcpp/.conf/service-check.xsh registry password 22 torizon 192.168.6.241 ‘curl --silent --max-time 5 http://localhost:5002/v2/_catalog’
Error: Expected 7 arguments, but got 1.
Report on GitHub · Where software is built
Error cause: Invalid argument
- The terminal process “/usr/bin/bash ‘-c’, ‘xonsh /home/steve/HelloWorldcpp/.conf/service-check.xsh registry password 22 torizon 192.168.6.241 ‘curl --silent --max-time 5 http://localhost:5002/v2/_catalog’’” failed to launch (exit code: 22).
- Terminal will be reused by tasks, press any key to close it.
I see 7 arguments in the line. I find it odd that it only sees one…
Any ideas how to fix this?
Steve